| 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 12 matching lines...) Expand all Loading... |
| 23 #include "webrtc/api/test/fakeconstraints.h" | 23 #include "webrtc/api/test/fakeconstraints.h" |
| 24 #include "webrtc/base/gunit.h" | 24 #include "webrtc/base/gunit.h" |
| 25 #include "webrtc/base/ssladapter.h" | 25 #include "webrtc/base/ssladapter.h" |
| 26 #include "webrtc/base/sslstreamadapter.h" | 26 #include "webrtc/base/sslstreamadapter.h" |
| 27 #include "webrtc/base/stringutils.h" | 27 #include "webrtc/base/stringutils.h" |
| 28 #include "webrtc/base/thread.h" | 28 #include "webrtc/base/thread.h" |
| 29 #include "webrtc/base/virtualsocketserver.h" | 29 #include "webrtc/base/virtualsocketserver.h" |
| 30 #include "webrtc/media/base/fakevideocapturer.h" | 30 #include "webrtc/media/base/fakevideocapturer.h" |
| 31 #include "webrtc/media/engine/webrtcmediaengine.h" | 31 #include "webrtc/media/engine/webrtcmediaengine.h" |
| 32 #include "webrtc/media/sctp/sctptransportinternal.h" | 32 #include "webrtc/media/sctp/sctptransportinternal.h" |
| 33 #include "webrtc/modules/audio_processing/include/audio_processing.h" |
| 33 #include "webrtc/p2p/base/fakeportallocator.h" | 34 #include "webrtc/p2p/base/fakeportallocator.h" |
| 34 #include "webrtc/pc/audiotrack.h" | 35 #include "webrtc/pc/audiotrack.h" |
| 35 #include "webrtc/pc/mediasession.h" | 36 #include "webrtc/pc/mediasession.h" |
| 36 #include "webrtc/pc/mediastream.h" | 37 #include "webrtc/pc/mediastream.h" |
| 37 #include "webrtc/pc/peerconnection.h" | 38 #include "webrtc/pc/peerconnection.h" |
| 38 #include "webrtc/pc/streamcollection.h" | 39 #include "webrtc/pc/streamcollection.h" |
| 39 #include "webrtc/pc/test/fakertccertificategenerator.h" | 40 #include "webrtc/pc/test/fakertccertificategenerator.h" |
| 40 #include "webrtc/pc/test/fakevideotracksource.h" | 41 #include "webrtc/pc/test/fakevideotracksource.h" |
| 41 #include "webrtc/pc/test/mockpeerconnectionobservers.h" | 42 #include "webrtc/pc/test/mockpeerconnectionobservers.h" |
| 42 #include "webrtc/pc/test/testsdpstrings.h" | 43 #include "webrtc/pc/test/testsdpstrings.h" |
| (...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 643 class PeerConnectionFactoryForTest : public webrtc::PeerConnectionFactory { | 644 class PeerConnectionFactoryForTest : public webrtc::PeerConnectionFactory { |
| 644 public: | 645 public: |
| 645 static rtc::scoped_refptr<PeerConnectionFactoryForTest> | 646 static rtc::scoped_refptr<PeerConnectionFactoryForTest> |
| 646 CreatePeerConnectionFactoryForTest() { | 647 CreatePeerConnectionFactoryForTest() { |
| 647 auto audio_encoder_factory = webrtc::CreateBuiltinAudioEncoderFactory(); | 648 auto audio_encoder_factory = webrtc::CreateBuiltinAudioEncoderFactory(); |
| 648 auto audio_decoder_factory = webrtc::CreateBuiltinAudioDecoderFactory(); | 649 auto audio_decoder_factory = webrtc::CreateBuiltinAudioDecoderFactory(); |
| 649 | 650 |
| 650 auto media_engine = std::unique_ptr<cricket::MediaEngineInterface>( | 651 auto media_engine = std::unique_ptr<cricket::MediaEngineInterface>( |
| 651 cricket::WebRtcMediaEngineFactory::Create( | 652 cricket::WebRtcMediaEngineFactory::Create( |
| 652 nullptr, audio_encoder_factory, audio_decoder_factory, nullptr, | 653 nullptr, audio_encoder_factory, audio_decoder_factory, nullptr, |
| 653 nullptr, nullptr)); | 654 nullptr, nullptr, webrtc::AudioProcessing::Create())); |
| 654 | 655 |
| 655 std::unique_ptr<webrtc::CallFactoryInterface> call_factory = | 656 std::unique_ptr<webrtc::CallFactoryInterface> call_factory = |
| 656 webrtc::CreateCallFactory(); | 657 webrtc::CreateCallFactory(); |
| 657 | 658 |
| 658 std::unique_ptr<webrtc::RtcEventLogFactoryInterface> event_log_factory = | 659 std::unique_ptr<webrtc::RtcEventLogFactoryInterface> event_log_factory = |
| 659 webrtc::CreateRtcEventLogFactory(); | 660 webrtc::CreateRtcEventLogFactory(); |
| 660 | 661 |
| 661 return new rtc::RefCountedObject<PeerConnectionFactoryForTest>( | 662 return new rtc::RefCountedObject<PeerConnectionFactoryForTest>( |
| 662 rtc::Thread::Current(), rtc::Thread::Current(), rtc::Thread::Current(), | 663 rtc::Thread::Current(), rtc::Thread::Current(), rtc::Thread::Current(), |
| 663 nullptr, audio_encoder_factory, audio_decoder_factory, nullptr, nullptr, | 664 nullptr, audio_encoder_factory, audio_decoder_factory, nullptr, nullptr, |
| (...skipping 3030 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3694 EXPECT_NE(a, f); | 3695 EXPECT_NE(a, f); |
| 3695 | 3696 |
| 3696 PeerConnectionInterface::RTCConfiguration g; | 3697 PeerConnectionInterface::RTCConfiguration g; |
| 3697 g.disable_ipv6 = true; | 3698 g.disable_ipv6 = true; |
| 3698 EXPECT_NE(a, g); | 3699 EXPECT_NE(a, g); |
| 3699 | 3700 |
| 3700 PeerConnectionInterface::RTCConfiguration h( | 3701 PeerConnectionInterface::RTCConfiguration h( |
| 3701 PeerConnectionInterface::RTCConfigurationType::kAggressive); | 3702 PeerConnectionInterface::RTCConfigurationType::kAggressive); |
| 3702 EXPECT_NE(a, h); | 3703 EXPECT_NE(a, h); |
| 3703 } | 3704 } |
| OLD | NEW |