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 "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 "content/renderer/media/mock_peer_connection_impl.h" | 8 #include "content/renderer/media/mock_peer_connection_impl.h" |
9 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" | 9 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" |
10 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" | 10 #include "third_party/libjingle/source/talk/base/scoped_ref_ptr.h" |
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 scoped_refptr<webrtc::VideoSourceInterface> | 396 scoped_refptr<webrtc::VideoSourceInterface> |
397 MockMediaStreamDependencyFactory::CreateLocalVideoSource( | 397 MockMediaStreamDependencyFactory::CreateLocalVideoSource( |
398 int video_session_id, | 398 int video_session_id, |
399 bool is_screencast, | 399 bool is_screencast, |
400 const webrtc::MediaConstraintsInterface* constraints) { | 400 const webrtc::MediaConstraintsInterface* constraints) { |
401 last_video_source_ = new talk_base::RefCountedObject<MockVideoSource>(); | 401 last_video_source_ = new talk_base::RefCountedObject<MockVideoSource>(); |
402 return last_video_source_; | 402 return last_video_source_; |
403 } | 403 } |
404 | 404 |
405 bool MockMediaStreamDependencyFactory::InitializeAudioSource( | 405 bool MockMediaStreamDependencyFactory::InitializeAudioSource( |
406 const StreamDeviceInfo& device_info) { | 406 int render_view_id, |
| 407 const StreamDeviceInfo& device_info) { |
407 return true; | 408 return true; |
408 } | 409 } |
409 | 410 |
410 bool MockMediaStreamDependencyFactory::CreateWebAudioSource( | 411 bool MockMediaStreamDependencyFactory::CreateWebAudioSource( |
411 WebKit::WebMediaStreamSource* source) { | 412 WebKit::WebMediaStreamSource* source) { |
412 return true; | 413 return true; |
413 } | 414 } |
414 | 415 |
415 scoped_refptr<webrtc::MediaStreamInterface> | 416 scoped_refptr<webrtc::MediaStreamInterface> |
416 MockMediaStreamDependencyFactory::CreateLocalMediaStream( | 417 MockMediaStreamDependencyFactory::CreateLocalMediaStream( |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
450 | 451 |
451 webrtc::IceCandidateInterface* | 452 webrtc::IceCandidateInterface* |
452 MockMediaStreamDependencyFactory::CreateIceCandidate( | 453 MockMediaStreamDependencyFactory::CreateIceCandidate( |
453 const std::string& sdp_mid, | 454 const std::string& sdp_mid, |
454 int sdp_mline_index, | 455 int sdp_mline_index, |
455 const std::string& sdp) { | 456 const std::string& sdp) { |
456 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); | 457 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); |
457 } | 458 } |
458 | 459 |
459 } // namespace content | 460 } // namespace content |
OLD | NEW |