| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |