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> | 10 #include <algorithm> |
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
437 (*receive_configs)[0].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; | 437 (*receive_configs)[0].rtp.nack.rtp_history_ms = kNackRtpHistoryMs; |
438 } | 438 } |
439 | 439 |
440 void PerformTest() override { | 440 void PerformTest() override { |
441 EXPECT_EQ(kEventSignaled, Wait()) | 441 EXPECT_EQ(kEventSignaled, Wait()) |
442 << "Timed out waiting for packets to be NACKed, retransmitted and " | 442 << "Timed out waiting for packets to be NACKed, retransmitted and " |
443 "rendered."; | 443 "rendered."; |
444 } | 444 } |
445 | 445 |
446 rtc::CriticalSection crit_; | 446 rtc::CriticalSection crit_; |
447 rtc::scoped_ptr<RtpHeaderParser> rtp_parser_; | |
448 std::set<uint16_t> dropped_packets_; | 447 std::set<uint16_t> dropped_packets_; |
449 std::set<uint16_t> retransmitted_packets_; | 448 std::set<uint16_t> retransmitted_packets_; |
450 uint64_t sent_rtp_packets_; | 449 uint64_t sent_rtp_packets_; |
451 int packets_left_to_drop_; | 450 int packets_left_to_drop_; |
452 int nacks_left_ GUARDED_BY(&crit_); | 451 int nacks_left_ GUARDED_BY(&crit_); |
453 } test; | 452 } test; |
454 | 453 |
455 RunBaseTest(&test, FakeNetworkPipe::Config()); | 454 RunBaseTest(&test, FakeNetworkPipe::Config()); |
456 } | 455 } |
457 | 456 |
(...skipping 2766 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3224 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) | 3223 EXPECT_TRUE(default_receive_config.rtp.rtx.empty()) |
3225 << "Enabling RTX requires rtpmap: rtx negotiation."; | 3224 << "Enabling RTX requires rtpmap: rtx negotiation."; |
3226 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) | 3225 EXPECT_TRUE(default_receive_config.rtp.extensions.empty()) |
3227 << "Enabling RTP extensions require negotiation."; | 3226 << "Enabling RTP extensions require negotiation."; |
3228 | 3227 |
3229 VerifyEmptyNackConfig(default_receive_config.rtp.nack); | 3228 VerifyEmptyNackConfig(default_receive_config.rtp.nack); |
3230 VerifyEmptyFecConfig(default_receive_config.rtp.fec); | 3229 VerifyEmptyFecConfig(default_receive_config.rtp.fec); |
3231 } | 3230 } |
3232 | 3231 |
3233 } // namespace webrtc | 3232 } // namespace webrtc |
OLD | NEW |