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

Side by Side Diff: webrtc/modules/rtp_rtcp/test/testAPI/test_api_video.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 17 matching lines...) Expand all
28 28
29 const unsigned char kPayloadType = 100; 29 const unsigned char kPayloadType = 100;
30 30
31 }; 31 };
32 32
33 namespace webrtc { 33 namespace webrtc {
34 34
35 class RtpRtcpVideoTest : public ::testing::Test { 35 class RtpRtcpVideoTest : public ::testing::Test {
36 protected: 36 protected:
37 RtpRtcpVideoTest() 37 RtpRtcpVideoTest()
38 : test_ssrc_(3456), 38 : rtp_payload_registry_(RTPPayloadStrategy::CreateStrategy(false)),
39 test_ssrc_(3456),
39 test_timestamp_(4567), 40 test_timestamp_(4567),
40 test_sequence_number_(2345), 41 test_sequence_number_(2345),
41 fake_clock(123456), 42 fake_clock(123456),
42 retransmission_rate_limiter_(&fake_clock, 1000) {} 43 retransmission_rate_limiter_(&fake_clock, 1000) {}
43 ~RtpRtcpVideoTest() {} 44 ~RtpRtcpVideoTest() {}
44 45
45 virtual void SetUp() { 46 virtual void SetUp() {
46 transport_ = new LoopBackTransport(); 47 transport_ = new LoopBackTransport();
47 receiver_ = new TestRtpReceiver(); 48 receiver_ = new TestRtpReceiver();
48 receive_statistics_.reset(ReceiveStatistics::Create(&fake_clock)); 49 receive_statistics_.reset(ReceiveStatistics::Create(&fake_clock));
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 payload_specific, true)); 176 payload_specific, true));
176 EXPECT_EQ(0u, receiver_->payload_size()); 177 EXPECT_EQ(0u, receiver_->payload_size());
177 EXPECT_EQ(payload_length, receiver_->rtp_header().header.paddingLength); 178 EXPECT_EQ(payload_length, receiver_->rtp_header().header.paddingLength);
178 } 179 }
179 timestamp += 3000; 180 timestamp += 3000;
180 fake_clock.AdvanceTimeMilliseconds(33); 181 fake_clock.AdvanceTimeMilliseconds(33);
181 } 182 }
182 } 183 }
183 184
184 } // namespace webrtc 185 } // namespace webrtc
OLDNEW
« no previous file with comments | « webrtc/modules/rtp_rtcp/test/testAPI/test_api_rtcp.cc ('k') | webrtc/modules/video_coding/test/rtp_player.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698