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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
404 scoped_refptr<webrtc::VideoSourceInterface> | 404 scoped_refptr<webrtc::VideoSourceInterface> |
405 MockMediaStreamDependencyFactory::CreateLocalVideoSource( | 405 MockMediaStreamDependencyFactory::CreateLocalVideoSource( |
406 int video_session_id, | 406 int video_session_id, |
407 bool is_screencast, | 407 bool is_screencast, |
408 const webrtc::MediaConstraintsInterface* constraints) { | 408 const webrtc::MediaConstraintsInterface* constraints) { |
409 last_video_source_ = new talk_base::RefCountedObject<MockVideoSource>(); | 409 last_video_source_ = new talk_base::RefCountedObject<MockVideoSource>(); |
410 return last_video_source_; | 410 return last_video_source_; |
411 } | 411 } |
412 | 412 |
413 bool MockMediaStreamDependencyFactory::InitializeAudioSource( | 413 bool MockMediaStreamDependencyFactory::InitializeAudioSource( |
414 const StreamDeviceInfo& device_info) { | 414 int render_view_id, |
| 415 const StreamDeviceInfo& device_info) { |
415 return true; | 416 return true; |
416 } | 417 } |
417 | 418 |
418 bool MockMediaStreamDependencyFactory::CreateWebAudioSource( | 419 bool MockMediaStreamDependencyFactory::CreateWebAudioSource( |
419 WebKit::WebMediaStreamSource* source) { | 420 WebKit::WebMediaStreamSource* source) { |
420 return true; | 421 return true; |
421 } | 422 } |
422 | 423 |
423 scoped_refptr<webrtc::MediaStreamInterface> | 424 scoped_refptr<webrtc::MediaStreamInterface> |
424 MockMediaStreamDependencyFactory::CreateLocalMediaStream( | 425 MockMediaStreamDependencyFactory::CreateLocalMediaStream( |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
458 | 459 |
459 webrtc::IceCandidateInterface* | 460 webrtc::IceCandidateInterface* |
460 MockMediaStreamDependencyFactory::CreateIceCandidate( | 461 MockMediaStreamDependencyFactory::CreateIceCandidate( |
461 const std::string& sdp_mid, | 462 const std::string& sdp_mid, |
462 int sdp_mline_index, | 463 int sdp_mline_index, |
463 const std::string& sdp) { | 464 const std::string& sdp) { |
464 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); | 465 return new MockIceCandidate(sdp_mid, sdp_mline_index, sdp); |
465 } | 466 } |
466 | 467 |
467 } // namespace content | 468 } // namespace content |
OLD | NEW |