OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ | 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 // A mock factory for creating different objects for | 169 // A mock factory for creating different objects for |
170 // RTC PeerConnections. | 170 // RTC PeerConnections. |
171 class MockPeerConnectionDependencyFactory | 171 class MockPeerConnectionDependencyFactory |
172 : public PeerConnectionDependencyFactory { | 172 : public PeerConnectionDependencyFactory { |
173 public: | 173 public: |
174 MockPeerConnectionDependencyFactory(); | 174 MockPeerConnectionDependencyFactory(); |
175 virtual ~MockPeerConnectionDependencyFactory(); | 175 virtual ~MockPeerConnectionDependencyFactory(); |
176 | 176 |
177 virtual scoped_refptr<webrtc::PeerConnectionInterface> CreatePeerConnection( | 177 virtual scoped_refptr<webrtc::PeerConnectionInterface> CreatePeerConnection( |
178 const webrtc::PeerConnectionInterface::IceServers& ice_servers, | 178 const webrtc::PeerConnectionInterface::RTCConfiguration& config, |
179 const webrtc::MediaConstraintsInterface* constraints, | 179 const webrtc::MediaConstraintsInterface* constraints, |
180 blink::WebFrame* frame, | 180 blink::WebFrame* frame, |
181 webrtc::PeerConnectionObserver* observer) OVERRIDE; | 181 webrtc::PeerConnectionObserver* observer) OVERRIDE; |
182 virtual scoped_refptr<webrtc::AudioSourceInterface> | 182 virtual scoped_refptr<webrtc::AudioSourceInterface> |
183 CreateLocalAudioSource( | 183 CreateLocalAudioSource( |
184 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; | 184 const webrtc::MediaConstraintsInterface* constraints) OVERRIDE; |
185 virtual WebRtcVideoCapturerAdapter* CreateVideoCapturer( | 185 virtual WebRtcVideoCapturerAdapter* CreateVideoCapturer( |
186 bool is_screen_capture) OVERRIDE; | 186 bool is_screen_capture) OVERRIDE; |
187 virtual scoped_refptr<webrtc::VideoSourceInterface> | 187 virtual scoped_refptr<webrtc::VideoSourceInterface> |
188 CreateVideoSource( | 188 CreateVideoSource( |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
225 bool fail_to_create_next_audio_capturer_; | 225 bool fail_to_create_next_audio_capturer_; |
226 scoped_refptr <MockAudioSource> last_audio_source_; | 226 scoped_refptr <MockAudioSource> last_audio_source_; |
227 scoped_refptr <MockVideoSource> last_video_source_; | 227 scoped_refptr <MockVideoSource> last_video_source_; |
228 | 228 |
229 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); | 229 DISALLOW_COPY_AND_ASSIGN(MockPeerConnectionDependencyFactory); |
230 }; | 230 }; |
231 | 231 |
232 } // namespace content | 232 } // namespace content |
233 | 233 |
234 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY
_H_ | 234 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_MOCK_PEER_CONNECTION_DEPENDENCY_FACTORY
_H_ |
OLD | NEW |