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 17 matching lines...) Expand all Loading... |
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 : rtp_payload_registry_(RTPPayloadStrategy::CreateStrategy(false)), | 38 : test_ssrc_(3456), |
39 test_ssrc_(3456), | |
40 test_timestamp_(4567), | 39 test_timestamp_(4567), |
41 test_sequence_number_(2345), | 40 test_sequence_number_(2345), |
42 fake_clock(123456), | 41 fake_clock(123456), |
43 retransmission_rate_limiter_(&fake_clock, 1000) {} | 42 retransmission_rate_limiter_(&fake_clock, 1000) {} |
44 ~RtpRtcpVideoTest() {} | 43 ~RtpRtcpVideoTest() {} |
45 | 44 |
46 virtual void SetUp() { | 45 virtual void SetUp() { |
47 transport_ = new LoopBackTransport(); | 46 transport_ = new LoopBackTransport(); |
48 receiver_ = new TestRtpReceiver(); | 47 receiver_ = new TestRtpReceiver(); |
49 receive_statistics_.reset(ReceiveStatistics::Create(&fake_clock)); | 48 receive_statistics_.reset(ReceiveStatistics::Create(&fake_clock)); |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 payload_specific, true)); | 175 payload_specific, true)); |
177 EXPECT_EQ(0u, receiver_->payload_size()); | 176 EXPECT_EQ(0u, receiver_->payload_size()); |
178 EXPECT_EQ(payload_length, receiver_->rtp_header().header.paddingLength); | 177 EXPECT_EQ(payload_length, receiver_->rtp_header().header.paddingLength); |
179 } | 178 } |
180 timestamp += 3000; | 179 timestamp += 3000; |
181 fake_clock.AdvanceTimeMilliseconds(33); | 180 fake_clock.AdvanceTimeMilliseconds(33); |
182 } | 181 } |
183 } | 182 } |
184 | 183 |
185 } // namespace webrtc | 184 } // namespace webrtc |
OLD | NEW |