OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "content/renderer/media/mock_media_stream_impl.h" |
| 6 |
| 7 #include "content/renderer/media/rtc_video_decoder.h" |
| 8 |
| 9 MockMediaStreamImpl::MockMediaStreamImpl() |
| 10 : MediaStreamImpl(NULL, NULL, NULL, NULL) { |
| 11 } |
| 12 |
| 13 MockMediaStreamImpl::~MockMediaStreamImpl() {} |
| 14 |
| 15 WebKit::WebPeerConnectionHandler* |
| 16 MockMediaStreamImpl::CreatePeerConnectionHandler( |
| 17 WebKit::WebPeerConnectionHandlerClient* client) { |
| 18 // TODO(grunell): Implement. |
| 19 NOTIMPLEMENTED(); |
| 20 return NULL; |
| 21 } |
| 22 |
| 23 void MockMediaStreamImpl::ClosePeerConnection() { |
| 24 video_label_.clear(); |
| 25 } |
| 26 |
| 27 bool MockMediaStreamImpl::SetVideoCaptureModule(const std::string& label) { |
| 28 video_label_ = label; |
| 29 return true; |
| 30 } |
| 31 |
| 32 scoped_refptr<media::VideoDecoder> MockMediaStreamImpl::GetVideoDecoder( |
| 33 const GURL& url, |
| 34 media::MessageLoopFactory* message_loop_factory) { |
| 35 NOTIMPLEMENTED(); |
| 36 return NULL; |
| 37 } |
| 38 |
| 39 void MockMediaStreamImpl::OnStreamGenerated( |
| 40 int request_id, |
| 41 const std::string& label, |
| 42 const media_stream::StreamDeviceInfoArray& audio_array, |
| 43 const media_stream::StreamDeviceInfoArray& video_array) { |
| 44 NOTIMPLEMENTED(); |
| 45 } |
| 46 |
| 47 void MockMediaStreamImpl::OnStreamGenerationFailed(int request_id) { |
| 48 NOTIMPLEMENTED(); |
| 49 } |
| 50 |
| 51 void MockMediaStreamImpl::OnVideoDeviceFailed( |
| 52 const std::string& label, |
| 53 int index) { |
| 54 NOTIMPLEMENTED(); |
| 55 } |
| 56 |
| 57 void MockMediaStreamImpl::OnAudioDeviceFailed( |
| 58 const std::string& label, |
| 59 int index) { |
| 60 NOTIMPLEMENTED(); |
| 61 } |
OLD | NEW |