OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2017 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2017 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
474 TEST_F(OrtcFactoryIntegrationTest, | 474 TEST_F(OrtcFactoryIntegrationTest, |
475 BasicTwoWayAudioVideoRtpSendersAndReceivers) { | 475 BasicTwoWayAudioVideoRtpSendersAndReceivers) { |
476 auto udp_transports = CreateAndConnectUdpTransportPair(); | 476 auto udp_transports = CreateAndConnectUdpTransportPair(); |
477 auto rtp_transports = | 477 auto rtp_transports = |
478 CreateRtpTransportPair(MakeRtcpMuxParameters(), udp_transports); | 478 CreateRtpTransportPair(MakeRtcpMuxParameters(), udp_transports); |
479 bool expect_success = true; | 479 bool expect_success = true; |
480 BasicTwoWayRtpSendersAndReceiversTest(std::move(rtp_transports), | 480 BasicTwoWayRtpSendersAndReceiversTest(std::move(rtp_transports), |
481 expect_success); | 481 expect_success); |
482 } | 482 } |
483 | 483 |
| 484 #if !(defined(WEBRTC_IOS) && defined(WEBRTC_ARCH_64_BITS) && !defined(NDEBUG)) |
484 TEST_F(OrtcFactoryIntegrationTest, | 485 TEST_F(OrtcFactoryIntegrationTest, |
485 BasicTwoWayAudioVideoSrtpSendersAndReceivers) { | 486 BasicTwoWayAudioVideoSrtpSendersAndReceivers) { |
486 auto udp_transports = CreateAndConnectUdpTransportPair(); | 487 auto udp_transports = CreateAndConnectUdpTransportPair(); |
487 auto srtp_transports = CreateSrtpTransportPairAndSetKeys( | 488 auto srtp_transports = CreateSrtpTransportPairAndSetKeys( |
488 MakeRtcpMuxParameters(), udp_transports); | 489 MakeRtcpMuxParameters(), udp_transports); |
489 bool expect_success = true; | 490 bool expect_success = true; |
490 BasicTwoWayRtpSendersAndReceiversTest(std::move(srtp_transports), | 491 BasicTwoWayRtpSendersAndReceiversTest(std::move(srtp_transports), |
491 expect_success); | 492 expect_success); |
492 } | 493 } |
| 494 #endif |
493 | 495 |
494 // Tests that the packets cannot be decoded if the keys are mismatched. | 496 // Tests that the packets cannot be decoded if the keys are mismatched. |
495 TEST_F(OrtcFactoryIntegrationTest, SrtpSendersAndReceiversWithMismatchingKeys) { | 497 TEST_F(OrtcFactoryIntegrationTest, SrtpSendersAndReceiversWithMismatchingKeys) { |
496 auto udp_transports = CreateAndConnectUdpTransportPair(); | 498 auto udp_transports = CreateAndConnectUdpTransportPair(); |
497 auto srtp_transports = CreateSrtpTransportPairAndSetMismatchingKeys( | 499 auto srtp_transports = CreateSrtpTransportPairAndSetMismatchingKeys( |
498 MakeRtcpMuxParameters(), udp_transports); | 500 MakeRtcpMuxParameters(), udp_transports); |
499 bool expect_success = false; | 501 bool expect_success = false; |
500 BasicTwoWayRtpSendersAndReceiversTest(std::move(srtp_transports), | 502 BasicTwoWayRtpSendersAndReceiversTest(std::move(srtp_transports), |
501 expect_success); | 503 expect_success); |
502 // No frames are expected to be decoded. | 504 // No frames are expected to be decoded. |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 // BaseChannel model relies on there being a single VoiceChannel and | 682 // BaseChannel model relies on there being a single VoiceChannel and |
681 // VideoChannel, and these only support a single set of codecs/etc. per | 683 // VideoChannel, and these only support a single set of codecs/etc. per |
682 // send/receive direction. | 684 // send/receive direction. |
683 | 685 |
684 // TODO(deadbeef): End-to-end test for simulcast, once that's supported by this | 686 // TODO(deadbeef): End-to-end test for simulcast, once that's supported by this |
685 // API. | 687 // API. |
686 | 688 |
687 #endif // if !defined(THREAD_SANITIZER) | 689 #endif // if !defined(THREAD_SANITIZER) |
688 | 690 |
689 } // namespace webrtc | 691 } // namespace webrtc |
OLD | NEW |