| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2013 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 configuration.outgoing_transport = &transport_; | 190 configuration.outgoing_transport = &transport_; |
| 191 rtp_rtcp_module_ = RtpRtcp::CreateRtpRtcp(configuration); | 191 rtp_rtcp_module_ = RtpRtcp::CreateRtpRtcp(configuration); |
| 192 | 192 |
| 193 rtp_feedback_.reset(new TestRtpFeedback(rtp_rtcp_module_)); | 193 rtp_feedback_.reset(new TestRtpFeedback(rtp_rtcp_module_)); |
| 194 | 194 |
| 195 rtp_receiver_.reset(RtpReceiver::CreateVideoReceiver( | 195 rtp_receiver_.reset(RtpReceiver::CreateVideoReceiver( |
| 196 &fake_clock, &receiver_, rtp_feedback_.get(), | 196 &fake_clock, &receiver_, rtp_feedback_.get(), |
| 197 &rtp_payload_registry_)); | 197 &rtp_payload_registry_)); |
| 198 | 198 |
| 199 rtp_rtcp_module_->SetSSRC(kTestSsrc); | 199 rtp_rtcp_module_->SetSSRC(kTestSsrc); |
| 200 rtp_rtcp_module_->SetRTCPStatus(kRtcpCompound); | 200 rtp_rtcp_module_->SetRTCPStatus(RtcpMode::kCompound); |
| 201 rtp_receiver_->SetNACKStatus(kNackRtcp); | 201 rtp_receiver_->SetNACKStatus(kNackRtcp); |
| 202 rtp_rtcp_module_->SetStorePacketsStatus(true, 600); | 202 rtp_rtcp_module_->SetStorePacketsStatus(true, 600); |
| 203 EXPECT_EQ(0, rtp_rtcp_module_->SetSendingStatus(true)); | 203 EXPECT_EQ(0, rtp_rtcp_module_->SetSendingStatus(true)); |
| 204 rtp_rtcp_module_->SetSequenceNumber(kTestSequenceNumber); | 204 rtp_rtcp_module_->SetSequenceNumber(kTestSequenceNumber); |
| 205 rtp_rtcp_module_->SetStartTimestamp(111111); | 205 rtp_rtcp_module_->SetStartTimestamp(111111); |
| 206 | 206 |
| 207 transport_.SetSendModule(rtp_rtcp_module_, &rtp_payload_registry_, | 207 transport_.SetSendModule(rtp_rtcp_module_, &rtp_payload_registry_, |
| 208 rtp_receiver_.get()); | 208 rtp_receiver_.get()); |
| 209 | 209 |
| 210 VideoCodec video_codec; | 210 VideoCodec video_codec; |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 342 |
| 343 TEST_F(RtpRtcpRtxNackTest, RtxNack) { | 343 TEST_F(RtpRtcpRtxNackTest, RtxNack) { |
| 344 RunRtxTest(kRtxRetransmitted, 10); | 344 RunRtxTest(kRtxRetransmitted, 10); |
| 345 EXPECT_EQ(kTestSequenceNumber, *(receiver_.sequence_numbers_.begin())); | 345 EXPECT_EQ(kTestSequenceNumber, *(receiver_.sequence_numbers_.begin())); |
| 346 EXPECT_EQ(kTestSequenceNumber + kTestNumberOfPackets - 1, | 346 EXPECT_EQ(kTestSequenceNumber + kTestNumberOfPackets - 1, |
| 347 *(receiver_.sequence_numbers_.rbegin())); | 347 *(receiver_.sequence_numbers_.rbegin())); |
| 348 EXPECT_EQ(kTestNumberOfPackets, receiver_.sequence_numbers_.size()); | 348 EXPECT_EQ(kTestNumberOfPackets, receiver_.sequence_numbers_.size()); |
| 349 EXPECT_EQ(kTestNumberOfRtxPackets, transport_.count_rtx_ssrc_); | 349 EXPECT_EQ(kTestNumberOfRtxPackets, transport_.count_rtx_ssrc_); |
| 350 EXPECT_TRUE(ExpectedPacketsReceived()); | 350 EXPECT_TRUE(ExpectedPacketsReceived()); |
| 351 } | 351 } |
| OLD | NEW |