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

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

Issue 2453243003: Remove voe::Channel::StopReceive() and associated logic. (Closed)
Patch Set: comment Created 4 years, 1 month 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
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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_, second_channel_); 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_));
71 EXPECT_EQ(0, voe_base_->StartPlayout(second_channel_)); 70 EXPECT_EQ(0, voe_base_->StartPlayout(second_channel_));
72 EXPECT_EQ(0, voe_rtp_rtcp_->SetLocalSSRC(second_channel_, 5678)); 71 EXPECT_EQ(0, voe_rtp_rtcp_->SetLocalSSRC(second_channel_, 5678));
73 EXPECT_EQ(0, voe_base_->StartSend(second_channel_)); 72 EXPECT_EQ(0, voe_base_->StartSend(second_channel_));
74 73
75 // We'll set up the RTCP CNAME and SSRC to something arbitrary here. 74 // We'll set up the RTCP CNAME and SSRC to something arbitrary here.
76 voe_rtp_rtcp_->SetRTCP_CNAME(channel_, RTCP_CNAME); 75 voe_rtp_rtcp_->SetRTCP_CNAME(channel_, RTCP_CNAME);
77 } 76 }
78 77
79 void TearDown() { 78 void TearDown() {
80 EXPECT_EQ(0, voe_network_->DeRegisterExternalTransport(second_channel_)); 79 EXPECT_EQ(0, voe_network_->DeRegisterExternalTransport(second_channel_));
(...skipping 28 matching lines...) Expand all
109 108
110 Sleep(1000); 109 Sleep(1000);
111 110
112 unsigned int ssrc; 111 unsigned int ssrc;
113 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc)); 112 EXPECT_EQ(0, voe_rtp_rtcp_->GetLocalSSRC(channel_, ssrc));
114 EXPECT_EQ(local_ssrc, ssrc); 113 EXPECT_EQ(local_ssrc, ssrc);
115 114
116 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc)); 115 EXPECT_EQ(0, voe_rtp_rtcp_->GetRemoteSSRC(channel_, ssrc));
117 EXPECT_EQ(local_ssrc, ssrc); 116 EXPECT_EQ(local_ssrc, ssrc);
118 } 117 }
OLDNEW
« no previous file with comments | « webrtc/voice_engine/test/auto_test/standard/mixing_test.cc ('k') | webrtc/voice_engine/test/auto_test/voe_cpu_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698