Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(43)

Side by Side Diff: content/renderer/media/mock_media_stream_dependency_factory.cc

Issue 10537121: Adds AudioDevice factory for all audio clients in Chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed DVLOGs Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 mock_pc_factory_created_(false) { 235 mock_pc_factory_created_(false) {
236 } 236 }
237 237
238 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {} 238 MockMediaStreamDependencyFactory::~MockMediaStreamDependencyFactory() {}
239 239
240 bool MockMediaStreamDependencyFactory::CreatePeerConnectionFactory( 240 bool MockMediaStreamDependencyFactory::CreatePeerConnectionFactory(
241 talk_base::Thread* worker_thread, 241 talk_base::Thread* worker_thread,
242 talk_base::Thread* signaling_thread, 242 talk_base::Thread* signaling_thread,
243 content::P2PSocketDispatcher* socket_dispatcher, 243 content::P2PSocketDispatcher* socket_dispatcher,
244 talk_base::NetworkManager* network_manager, 244 talk_base::NetworkManager* network_manager,
245 talk_base::PacketSocketFactory* socket_factory) { 245 talk_base::PacketSocketFactory* socket_factory,
246 AudioDeviceFactoryInterface* audio_device_factory) {
246 mock_pc_factory_created_ = true; 247 mock_pc_factory_created_ = true;
247 return true; 248 return true;
248 } 249 }
249 250
250 void MockMediaStreamDependencyFactory::ReleasePeerConnectionFactory() { 251 void MockMediaStreamDependencyFactory::ReleasePeerConnectionFactory() {
251 mock_pc_factory_created_ = false; 252 mock_pc_factory_created_ = false;
252 } 253 }
253 254
254 bool MockMediaStreamDependencyFactory::PeerConnectionFactoryCreated() { 255 bool MockMediaStreamDependencyFactory::PeerConnectionFactoryCreated() {
255 return mock_pc_factory_created_; 256 return mock_pc_factory_created_;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 const std::string& sdp) { 303 const std::string& sdp) {
303 return new webrtc::MockSessionDescription(sdp); 304 return new webrtc::MockSessionDescription(sdp);
304 } 305 }
305 306
306 webrtc::IceCandidateInterface* 307 webrtc::IceCandidateInterface*
307 MockMediaStreamDependencyFactory::CreateIceCandidate( 308 MockMediaStreamDependencyFactory::CreateIceCandidate(
308 const std::string& label, 309 const std::string& label,
309 const std::string& sdp) { 310 const std::string& sdp) {
310 return new webrtc::MockIceCandidate(label, sdp); 311 return new webrtc::MockIceCandidate(label, sdp);
311 } 312 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698