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 #include <algorithm> // max | 10 #include <algorithm> // max |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
129 kRtpExtensionAbsoluteSendTime, test::kAbsSendTimeExtensionId)); | 129 kRtpExtensionAbsoluteSendTime, test::kAbsSendTimeExtensionId)); |
130 } | 130 } |
131 | 131 |
132 Action OnSendRtp(const uint8_t* packet, size_t length) override { | 132 Action OnSendRtp(const uint8_t* packet, size_t length) override { |
133 RTPHeader header; | 133 RTPHeader header; |
134 EXPECT_TRUE(parser_->Parse(packet, length, &header)); | 134 EXPECT_TRUE(parser_->Parse(packet, length, &header)); |
135 | 135 |
136 EXPECT_FALSE(header.extension.hasTransmissionTimeOffset); | 136 EXPECT_FALSE(header.extension.hasTransmissionTimeOffset); |
137 EXPECT_TRUE(header.extension.hasAbsoluteSendTime); | 137 EXPECT_TRUE(header.extension.hasAbsoluteSendTime); |
138 EXPECT_EQ(header.extension.transmissionTimeOffset, 0); | 138 EXPECT_EQ(header.extension.transmissionTimeOffset, 0); |
139 EXPECT_GT(header.extension.absoluteSendTime, 0u); | |
pbos-webrtc
2016/09/01 23:06:22
How about returning SEND_PACKET if absoluteSendTim
pbos-webrtc
2016/09/01 23:06:49
Sorry, return SEND_PACKET early if it's zero, not
skvlad
2016/09/01 23:39:28
Done.
| |
140 observation_complete_.Set(); | 139 observation_complete_.Set(); |
141 | 140 |
142 return SEND_PACKET; | 141 return SEND_PACKET; |
143 } | 142 } |
144 | 143 |
145 void ModifyVideoConfigs( | 144 void ModifyVideoConfigs( |
146 VideoSendStream::Config* send_config, | 145 VideoSendStream::Config* send_config, |
147 std::vector<VideoReceiveStream::Config>* receive_configs, | 146 std::vector<VideoReceiveStream::Config>* receive_configs, |
148 VideoEncoderConfig* encoder_config) override { | 147 VideoEncoderConfig* encoder_config) override { |
149 send_config->rtp.extensions.clear(); | 148 send_config->rtp.extensions.clear(); |
(...skipping 2375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2525 observation_complete_.Set(); | 2524 observation_complete_.Set(); |
2526 } | 2525 } |
2527 } | 2526 } |
2528 } test; | 2527 } test; |
2529 | 2528 |
2530 RunBaseTest(&test); | 2529 RunBaseTest(&test); |
2531 } | 2530 } |
2532 #endif // !defined(RTC_DISABLE_VP9) | 2531 #endif // !defined(RTC_DISABLE_VP9) |
2533 | 2532 |
2534 } // namespace webrtc | 2533 } // namespace webrtc |
OLD | NEW |