| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2013 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 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 | 10 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 public sigslot::has_slots<> { | 25 public sigslot::has_slots<> { |
| 26 public: | 26 public: |
| 27 static void Connect(PeerConnectionTestWrapper* caller, | 27 static void Connect(PeerConnectionTestWrapper* caller, |
| 28 PeerConnectionTestWrapper* callee); | 28 PeerConnectionTestWrapper* callee); |
| 29 | 29 |
| 30 PeerConnectionTestWrapper(const std::string& name, | 30 PeerConnectionTestWrapper(const std::string& name, |
| 31 rtc::Thread* network_thread, | 31 rtc::Thread* network_thread, |
| 32 rtc::Thread* worker_thread); | 32 rtc::Thread* worker_thread); |
| 33 virtual ~PeerConnectionTestWrapper(); | 33 virtual ~PeerConnectionTestWrapper(); |
| 34 | 34 |
| 35 bool CreatePc(const webrtc::MediaConstraintsInterface* constraints); | 35 bool CreatePc( |
| 36 const webrtc::MediaConstraintsInterface* constraints, |
| 37 const webrtc::PeerConnectionInterface::RTCConfiguration& config); |
| 36 | 38 |
| 37 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel( | 39 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel( |
| 38 const std::string& label, | 40 const std::string& label, |
| 39 const webrtc::DataChannelInit& init); | 41 const webrtc::DataChannelInit& init); |
| 40 | 42 |
| 41 // Implements PeerConnectionObserver. | 43 // Implements PeerConnectionObserver. |
| 42 virtual void OnSignalingChange( | 44 virtual void OnSignalingChange( |
| 43 webrtc::PeerConnectionInterface::SignalingState new_state) {} | 45 webrtc::PeerConnectionInterface::SignalingState new_state) {} |
| 44 virtual void OnStateChange( | 46 virtual void OnStateChange( |
| 45 webrtc::PeerConnectionObserver::StateType state_changed) {} | 47 webrtc::PeerConnectionObserver::StateType state_changed) {} |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 rtc::Thread* const network_thread_; | 100 rtc::Thread* const network_thread_; |
| 99 rtc::Thread* const worker_thread_; | 101 rtc::Thread* const worker_thread_; |
| 100 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; | 102 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; |
| 101 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> | 103 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> |
| 102 peer_connection_factory_; | 104 peer_connection_factory_; |
| 103 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; | 105 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; |
| 104 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; | 106 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; |
| 105 }; | 107 }; |
| 106 | 108 |
| 107 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ | 109 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ |
| OLD | NEW |