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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 VideoSendStreamTest::kRedPayloadType; | 513 VideoSendStreamTest::kRedPayloadType; |
514 send_config->rtp.ulpfec.ulpfec_payload_type = | 514 send_config->rtp.ulpfec.ulpfec_payload_type = |
515 VideoSendStreamTest::kUlpfecPayloadType; | 515 VideoSendStreamTest::kUlpfecPayloadType; |
516 EXPECT_FALSE(send_config->rtp.extensions.empty()); | 516 EXPECT_FALSE(send_config->rtp.extensions.empty()); |
517 if (!header_extensions_enabled_) { | 517 if (!header_extensions_enabled_) { |
518 send_config->rtp.extensions.clear(); | 518 send_config->rtp.extensions.clear(); |
519 } else { | 519 } else { |
520 send_config->rtp.extensions.push_back(RtpExtension( | 520 send_config->rtp.extensions.push_back(RtpExtension( |
521 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId)); | 521 RtpExtension::kAbsSendTimeUri, test::kAbsSendTimeExtensionId)); |
522 } | 522 } |
523 (*receive_configs)[0].rtp.ulpfec.red_payload_type = | 523 (*receive_configs)[0].rtp.red_payload_type = |
524 send_config->rtp.ulpfec.red_payload_type; | 524 send_config->rtp.ulpfec.red_payload_type; |
525 (*receive_configs)[0].rtp.ulpfec.ulpfec_payload_type = | 525 (*receive_configs)[0].rtp.ulpfec_payload_type = |
526 send_config->rtp.ulpfec.ulpfec_payload_type; | 526 send_config->rtp.ulpfec.ulpfec_payload_type; |
527 } | 527 } |
528 | 528 |
529 void PerformTest() override { | 529 void PerformTest() override { |
530 EXPECT_EQ(expect_ulpfec_, Wait()) | 530 EXPECT_EQ(expect_ulpfec_, Wait()) |
531 << "Timed out waiting for ULPFEC and/or media packets."; | 531 << "Timed out waiting for ULPFEC and/or media packets."; |
532 } | 532 } |
533 | 533 |
534 VideoEncoder* const encoder_; | 534 VideoEncoder* const encoder_; |
535 std::string payload_name_; | 535 std::string payload_name_; |
(...skipping 2968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3504 capturer_ = frame_generator_capturer; | 3504 capturer_ = frame_generator_capturer; |
3505 } | 3505 } |
3506 | 3506 |
3507 test::FrameGeneratorCapturer* capturer_ = nullptr; | 3507 test::FrameGeneratorCapturer* capturer_ = nullptr; |
3508 } test; | 3508 } test; |
3509 | 3509 |
3510 RunBaseTest(&test); | 3510 RunBaseTest(&test); |
3511 } | 3511 } |
3512 | 3512 |
3513 } // namespace webrtc | 3513 } // namespace webrtc |
OLD | NEW |