| 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 13 matching lines...) Expand all Loading... |
| 24 public webrtc::CreateSessionDescriptionObserver, | 24 public webrtc::CreateSessionDescriptionObserver, |
| 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 explicit PeerConnectionTestWrapper(const std::string& name, | 30 explicit PeerConnectionTestWrapper(const std::string& name, |
| 31 rtc::Thread* worker_thread); | 31 rtc::Thread* worker_thread); |
| 32 virtual ~PeerConnectionTestWrapper(); | 32 virtual ~PeerConnectionTestWrapper(); |
| 33 | 33 |
| 34 bool CreatePc(const webrtc::MediaConstraintsInterface* constraints); | 34 bool CreatePc( |
| 35 const webrtc::MediaConstraintsInterface* constraints, |
| 36 const webrtc::PeerConnectionInterface::RTCConfiguration& config); |
| 35 | 37 |
| 36 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel( | 38 rtc::scoped_refptr<webrtc::DataChannelInterface> CreateDataChannel( |
| 37 const std::string& label, | 39 const std::string& label, |
| 38 const webrtc::DataChannelInit& init); | 40 const webrtc::DataChannelInit& init); |
| 39 | 41 |
| 40 // Implements PeerConnectionObserver. | 42 // Implements PeerConnectionObserver. |
| 41 virtual void OnSignalingChange( | 43 virtual void OnSignalingChange( |
| 42 webrtc::PeerConnectionInterface::SignalingState new_state) {} | 44 webrtc::PeerConnectionInterface::SignalingState new_state) {} |
| 43 virtual void OnStateChange( | 45 virtual void OnStateChange( |
| 44 webrtc::PeerConnectionObserver::StateType state_changed) {} | 46 webrtc::PeerConnectionObserver::StateType state_changed) {} |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 93 std::string name_; | 95 std::string name_; |
| 94 rtc::Thread* worker_thread_; | 96 rtc::Thread* worker_thread_; |
| 95 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; | 97 rtc::scoped_refptr<webrtc::PeerConnectionInterface> peer_connection_; |
| 96 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> | 98 rtc::scoped_refptr<webrtc::PeerConnectionFactoryInterface> |
| 97 peer_connection_factory_; | 99 peer_connection_factory_; |
| 98 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; | 100 rtc::scoped_refptr<FakeAudioCaptureModule> fake_audio_capture_module_; |
| 99 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; | 101 std::unique_ptr<webrtc::FakeVideoTrackRenderer> renderer_; |
| 100 }; | 102 }; |
| 101 | 103 |
| 102 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ | 104 #endif // WEBRTC_API_TEST_PEERCONNECTIONTESTWRAPPER_H_ |
| OLD | NEW |