| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "content/renderer/media/mock_media_stream_dependency_factory.h" | 6 #include "content/renderer/media/mock_media_stream_dependency_factory.h" |
| 7 #include "content/renderer/media/mock_peer_connection_impl.h" | 7 #include "content/renderer/media/mock_peer_connection_impl.h" |
| 8 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 8 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" |
| 9 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" | 9 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" |
| 10 | 10 |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 | 248 |
| 249 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory( | 249 MockMediaStreamDependencyFactory::MockMediaStreamDependencyFactory( |
| 250 VideoCaptureImplManager* vc_manager) | 250 VideoCaptureImplManager* vc_manager) |
| 251 : MediaStreamDependencyFactory(vc_manager), | 251 : MediaStreamDependencyFactory(vc_manager), |
| 252 mock_pc_factory_created_(false) { | 252 mock_pc_factory_created_(false) { |
| 253 } | 253 } |
| 254 | 254 |
| 255 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} | 255 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} |
| 256 | 256 |
| 257 bool MockMediaStreamDependencyFactory::CreatePeerConnectionFactory( | 257 bool MockMediaStreamDependencyFactory::CreatePeerConnectionFactory( |
| 258 int render_view_id, |
| 258 talk_base::Thread* worker_thread, | 259 talk_base::Thread* worker_thread, |
| 259 talk_base::Thread* signaling_thread, | 260 talk_base::Thread* signaling_thread, |
| 260 content::P2PSocketDispatcher* socket_dispatcher, | 261 content::P2PSocketDispatcher* socket_dispatcher, |
| 261 talk_base::NetworkManager* network_manager, | 262 talk_base::NetworkManager* network_manager, |
| 262 talk_base::PacketSocketFactory* socket_factory) { | 263 talk_base::PacketSocketFactory* socket_factory) { |
| 263 mock_pc_factory_created_ = true; | 264 mock_pc_factory_created_ = true; |
| 264 return true; | 265 return true; |
| 265 } | 266 } |
| 266 | 267 |
| 267 void MockMediaStreamDependencyFactory::ReleasePeerConnectionFactory() { | 268 void MockMediaStreamDependencyFactory::ReleasePeerConnectionFactory() { |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 311 const std::string& sdp) { | 312 const std::string& sdp) { |
| 312 return new webrtc::MockSessionDescription(sdp); | 313 return new webrtc::MockSessionDescription(sdp); |
| 313 } | 314 } |
| 314 | 315 |
| 315 webrtc::IceCandidateInterface* | 316 webrtc::IceCandidateInterface* |
| 316 MockMediaStreamDependencyFactory::CreateIceCandidate( | 317 MockMediaStreamDependencyFactory::CreateIceCandidate( |
| 317 const std::string& label, | 318 const std::string& label, |
| 318 const std::string& sdp) { | 319 const std::string& sdp) { |
| 319 return new webrtc::MockIceCandidate(label, sdp); | 320 return new webrtc::MockIceCandidate(label, sdp); |
| 320 } | 321 } |
| OLD | NEW |