OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
658 }; | 658 }; |
659 | 659 |
660 } // namespace | 660 } // namespace |
661 | 661 |
662 // The PeerConnectionMediaConfig tests below verify that configuration | 662 // The PeerConnectionMediaConfig tests below verify that configuration |
663 // and constraints are propagated into the MediaConfig passed to | 663 // and constraints are propagated into the MediaConfig passed to |
664 // CreateMediaController. These settings are intended for MediaChannel | 664 // CreateMediaController. These settings are intended for MediaChannel |
665 // constructors, but that is not exercised by these unittest. | 665 // constructors, but that is not exercised by these unittest. |
666 class PeerConnectionFactoryForTest : public webrtc::PeerConnectionFactory { | 666 class PeerConnectionFactoryForTest : public webrtc::PeerConnectionFactory { |
667 public: | 667 public: |
| 668 PeerConnectionFactoryForTest() |
| 669 : webrtc::PeerConnectionFactory(nullptr, nullptr) {} |
| 670 |
668 webrtc::MediaControllerInterface* CreateMediaController( | 671 webrtc::MediaControllerInterface* CreateMediaController( |
669 const cricket::MediaConfig& config, | 672 const cricket::MediaConfig& config, |
670 webrtc::RtcEventLog* event_log) const override { | 673 webrtc::RtcEventLog* event_log) const override { |
671 create_media_controller_called_ = true; | 674 create_media_controller_called_ = true; |
672 create_media_controller_config_ = config; | 675 create_media_controller_config_ = config; |
673 | 676 |
674 webrtc::MediaControllerInterface* mc = | 677 webrtc::MediaControllerInterface* mc = |
675 PeerConnectionFactory::CreateMediaController(config, event_log); | 678 PeerConnectionFactory::CreateMediaController(config, event_log); |
676 EXPECT_TRUE(mc != nullptr); | 679 EXPECT_TRUE(mc != nullptr); |
677 return mc; | 680 return mc; |
(...skipping 2717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3395 EXPECT_NE(a, f); | 3398 EXPECT_NE(a, f); |
3396 | 3399 |
3397 PeerConnectionInterface::RTCConfiguration g; | 3400 PeerConnectionInterface::RTCConfiguration g; |
3398 g.disable_ipv6 = true; | 3401 g.disable_ipv6 = true; |
3399 EXPECT_NE(a, g); | 3402 EXPECT_NE(a, g); |
3400 | 3403 |
3401 PeerConnectionInterface::RTCConfiguration h( | 3404 PeerConnectionInterface::RTCConfiguration h( |
3402 PeerConnectionInterface::RTCConfigurationType::kAggressive); | 3405 PeerConnectionInterface::RTCConfigurationType::kAggressive); |
3403 EXPECT_NE(a, h); | 3406 EXPECT_NE(a, h); |
3404 } | 3407 } |
OLD | NEW |