Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_test.cc

Issue 1335353005: Remove channel ids from various interfaces. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_extensions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 static const char* const RTCP_CNAME = "Whatever"; 57 static const char* const RTCP_CNAME = "Whatever";
58 58
59 class RtpRtcpTest : public AfterStreamingFixture { 59 class RtpRtcpTest : public AfterStreamingFixture {
60 protected: 60 protected:
61 void SetUp() { 61 void SetUp() {
62 // We need a second channel for this test, so set it up. 62 // We need a second channel for this test, so set it up.
63 second_channel_ = voe_base_->CreateChannel(); 63 second_channel_ = voe_base_->CreateChannel();
64 EXPECT_GE(second_channel_, 0); 64 EXPECT_GE(second_channel_, 0);
65 65
66 transport_ = new LoopBackTransport(voe_network_); 66 transport_ = new LoopBackTransport(voe_network_, second_channel_);
67 EXPECT_EQ(0, voe_network_->RegisterExternalTransport(second_channel_, 67 EXPECT_EQ(0, voe_network_->RegisterExternalTransport(second_channel_,
68 *transport_)); 68 *transport_));
69 69
70 EXPECT_EQ(0, voe_base_->StartReceive(second_channel_)); 70 EXPECT_EQ(0, voe_base_->StartReceive(second_channel_));
71 EXPECT_EQ(0, voe_base_->StartPlayout(second_channel_)); 71 EXPECT_EQ(0, voe_base_->StartPlayout(second_channel_));
72 EXPECT_EQ(0, voe_rtp_rtcp_->SetLocalSSRC(second_channel_, 5678)); 72 EXPECT_EQ(0, voe_rtp_rtcp_->SetLocalSSRC(second_channel_, 5678));
73 EXPECT_EQ(0, voe_base_->StartSend(second_channel_)); 73 EXPECT_EQ(0, voe_base_->StartSend(second_channel_));
74 74
75 // We'll set up the RTCP CNAME and SSRC to something arbitrary here. 75 // We'll set up the RTCP CNAME and SSRC to something arbitrary here.
76 voe_rtp_rtcp_->SetRTCP_CNAME(channel_, RTCP_CNAME); 76 voe_rtp_rtcp_->SetRTCP_CNAME(channel_, RTCP_CNAME);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 110
111 Sleep(1000); 111 Sleep(1000);
112 112
113 unsigned int ssrc; 113 unsigned int ssrc;
114 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); 114 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc));
115 EXPECT_EQ(local_ssrc, ssrc); 115 EXPECT_EQ(local_ssrc, ssrc);
116 116
117 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); 117 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc));
118 EXPECT_EQ(local_ssrc, ssrc); 118 EXPECT_EQ(local_ssrc, ssrc);
119 } 119 }
OLDNEW
« no previous file with comments | « webrtc/voice_engine/test/auto_test/standard/rtp_rtcp_extensions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698