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