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

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

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 "content/renderer/media/mock_media_stream_dependency_factory.h" 5 #include "content/renderer/media/mock_media_stream_dependency_factory.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "content/renderer/media/mock_peer_connection_impl.h" 9 #include "content/renderer/media/mock_peer_connection_impl.h"
10 #include "content/renderer/media/webaudio_capturer_source.h" 10 #include "content/renderer/media/webaudio_capturer_source.h"
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 } 379 }
380 380
381 bool MockMediaStreamDependencyFactory::PeerConnectionFactoryCreated() { 381 bool MockMediaStreamDependencyFactory::PeerConnectionFactoryCreated() {
382 return mock_pc_factory_created_; 382 return mock_pc_factory_created_;
383 } 383 }
384 384
385 scoped_refptr<webrtc::PeerConnectionInterface> 385 scoped_refptr<webrtc::PeerConnectionInterface>
386 MockMediaStreamDependencyFactory::CreatePeerConnection( 386 MockMediaStreamDependencyFactory::CreatePeerConnection(
387 const webrtc::PeerConnectionInterface::IceServers& ice_servers, 387 const webrtc::PeerConnectionInterface::IceServers& ice_servers,
388 const webrtc::MediaConstraintsInterface* constraints, 388 const webrtc::MediaConstraintsInterface* constraints,
389 WebKit::WebFrame* frame, 389 blink::WebFrame* frame,
390 webrtc::PeerConnectionObserver* observer) { 390 webrtc::PeerConnectionObserver* observer) {
391 DCHECK(mock_pc_factory_created_); 391 DCHECK(mock_pc_factory_created_);
392 return new talk_base::RefCountedObject<MockPeerConnectionImpl>(this); 392 return new talk_base::RefCountedObject<MockPeerConnectionImpl>(this);
393 } 393 }
394 394
395 scoped_refptr<webrtc::AudioSourceInterface> 395 scoped_refptr<webrtc::AudioSourceInterface>
396 MockMediaStreamDependencyFactory::CreateLocalAudioSource( 396 MockMediaStreamDependencyFactory::CreateLocalAudioSource(
397 const webrtc::MediaConstraintsInterface* constraints) { 397 const webrtc::MediaConstraintsInterface* constraints) {
398 last_audio_source_ = 398 last_audio_source_ =
399 new talk_base::RefCountedObject<MockAudioSource>(constraints); 399 new talk_base::RefCountedObject<MockAudioSource>(constraints);
400 return last_audio_source_; 400 return last_audio_source_;
401 } 401 }
402 402
403 scoped_refptr<webrtc::VideoSourceInterface> 403 scoped_refptr<webrtc::VideoSourceInterface>
404 MockMediaStreamDependencyFactory::CreateLocalVideoSource( 404 MockMediaStreamDependencyFactory::CreateLocalVideoSource(
405 int video_session_id, 405 int video_session_id,
406 bool is_screencast, 406 bool is_screencast,
407 const webrtc::MediaConstraintsInterface* constraints) { 407 const webrtc::MediaConstraintsInterface* constraints) {
408 last_video_source_ = new talk_base::RefCountedObject<MockVideoSource>(); 408 last_video_source_ = new talk_base::RefCountedObject<MockVideoSource>();
409 return last_video_source_; 409 return last_video_source_;
410 } 410 }
411 411
412 scoped_refptr<WebAudioCapturerSource> 412 scoped_refptr<WebAudioCapturerSource>
413 MockMediaStreamDependencyFactory::CreateWebAudioSource( 413 MockMediaStreamDependencyFactory::CreateWebAudioSource(
414 WebKit::WebMediaStreamSource* source, 414 blink::WebMediaStreamSource* source,
415 RTCMediaConstraints* constraints) { 415 RTCMediaConstraints* constraints) {
416 return NULL; 416 return NULL;
417 } 417 }
418 418
419 scoped_refptr<webrtc::MediaStreamInterface> 419 scoped_refptr<webrtc::MediaStreamInterface>
420 MockMediaStreamDependencyFactory::CreateLocalMediaStream( 420 MockMediaStreamDependencyFactory::CreateLocalMediaStream(
421 const std::string& label) { 421 const std::string& label) {
422 DCHECK(mock_pc_factory_created_); 422 DCHECK(mock_pc_factory_created_);
423 return new talk_base::RefCountedObject<MockMediaStream>(label); 423 return new talk_base::RefCountedObject<MockMediaStream>(label);
424 } 424 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
477 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); 477 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp);
478 } 478 }
479 479
480 scoped_refptr<WebRtcAudioCapturer> 480 scoped_refptr<WebRtcAudioCapturer>
481 MockMediaStreamDependencyFactory::MaybeCreateAudioCapturer( 481 MockMediaStreamDependencyFactory::MaybeCreateAudioCapturer(
482 int render_view_id, const StreamDeviceInfo& device_info) { 482 int render_view_id, const StreamDeviceInfo& device_info) {
483 return WebRtcAudioCapturer::CreateCapturer(); 483 return WebRtcAudioCapturer::CreateCapturer();
484 } 484 }
485 485
486 } // namespace content 486 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_dependency_factory.h ('k') | content/renderer/media/mock_media_stream_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698