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

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc

Issue 2528993002: Revert of Remove RTPPayloadStrategy and simplify RTPPayloadRegistry (Closed)
Patch Set: Created 4 years 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 receive_statistics2_.reset(ReceiveStatistics::Create(&fake_clock)); 87 receive_statistics2_.reset(ReceiveStatistics::Create(&fake_clock));
88 88
89 RtpRtcp::Configuration configuration; 89 RtpRtcp::Configuration configuration;
90 configuration.audio = true; 90 configuration.audio = true;
91 configuration.clock = &fake_clock; 91 configuration.clock = &fake_clock;
92 configuration.receive_statistics = receive_statistics1_.get(); 92 configuration.receive_statistics = receive_statistics1_.get();
93 configuration.outgoing_transport = transport1; 93 configuration.outgoing_transport = transport1;
94 configuration.intra_frame_callback = myRTCPFeedback1; 94 configuration.intra_frame_callback = myRTCPFeedback1;
95 configuration.retransmission_rate_limiter = &retransmission_rate_limiter_; 95 configuration.retransmission_rate_limiter = &retransmission_rate_limiter_;
96 96
97 rtp_payload_registry1_.reset(new RTPPayloadRegistry()); 97 rtp_payload_registry1_.reset(new RTPPayloadRegistry(
98 rtp_payload_registry2_.reset(new RTPPayloadRegistry()); 98 RTPPayloadStrategy::CreateStrategy(true)));
99 rtp_payload_registry2_.reset(new RTPPayloadRegistry(
100 RTPPayloadStrategy::CreateStrategy(true)));
99 101
100 module1 = RtpRtcp::CreateRtpRtcp(configuration); 102 module1 = RtpRtcp::CreateRtpRtcp(configuration);
101 103
102 rtp_feedback1_.reset(new TestRtpFeedback(module1)); 104 rtp_feedback1_.reset(new TestRtpFeedback(module1));
103 105
104 rtp_receiver1_.reset(RtpReceiver::CreateAudioReceiver( 106 rtp_receiver1_.reset(RtpReceiver::CreateAudioReceiver(
105 &fake_clock, receiver, rtp_feedback1_.get(), 107 &fake_clock, receiver, rtp_feedback1_.get(),
106 rtp_payload_registry1_.get())); 108 rtp_payload_registry1_.get()));
107 109
108 configuration.receive_statistics = receive_statistics2_.get(); 110 configuration.receive_statistics = receive_statistics2_.get();
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC); 257 EXPECT_EQ(test_ssrc, report_blocks[0].sourceSSRC);
256 258
257 EXPECT_EQ(0u, report_blocks[0].cumulativeLost); 259 EXPECT_EQ(0u, report_blocks[0].cumulativeLost);
258 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR); 260 EXPECT_LT(0u, report_blocks[0].delaySinceLastSR);
259 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum); 261 EXPECT_EQ(test_sequence_number, report_blocks[0].extendedHighSeqNum);
260 EXPECT_EQ(0u, report_blocks[0].fractionLost); 262 EXPECT_EQ(0u, report_blocks[0].fractionLost);
261 } 263 }
262 264
263 } // namespace 265 } // namespace
264 } // namespace webrtc 266 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api_audio.cc ('k') | webrtc/modules/rtp_rtcp/test/testAPI/test_api_video.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698