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

Side by Side Diff: webrtc/modules/rtp_rtcp/source/nack_rtx_unittest.cc

Issue 1373903003: Unify newapi::RtcpMode and RTCPMethod. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: ehm, compile the code Created 5 years, 2 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
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/mocks/mock_rtp_rtcp.h ('k') | webrtc/modules/rtp_rtcp/source/rtcp_format_remb_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698