Chromium Code Reviews| Index: content/renderer/media/mock_media_stream_impl.cc |
| diff --git a/content/renderer/media/mock_media_stream_impl.cc b/content/renderer/media/mock_media_stream_impl.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..077d97ae8f51d2c6ad031beb962e13d4b3fe744a |
| --- /dev/null |
| +++ b/content/renderer/media/mock_media_stream_impl.cc |
| @@ -0,0 +1,60 @@ |
| +// Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "content/renderer/media/mock_media_stream_impl.h" |
| + |
| +#include "content/renderer/media/rtc_video_decoder.h" |
| + |
| +MockMediaStreamImpl::MockMediaStreamImpl() |
| + : MediaStreamImpl(NULL, NULL, NULL, NULL) { |
| +} |
| + |
| +MockMediaStreamImpl::~MockMediaStreamImpl() {} |
| + |
| +WebKit::WebPeerConnectionHandler* |
| +MockMediaStreamImpl::CreatePeerConnectionHandler( |
| + WebKit::WebPeerConnectionHandlerClient* client) { |
| + // TODO(grunell): Implement. |
| + NOTIMPLEMENTED(); |
| + return NULL; |
| +} |
| + |
| +void MockMediaStreamImpl::ClosePeerConnection() { |
| + // TODO(grunell): Implement. |
| + NOTIMPLEMENTED(); |
| +} |
| + |
| +bool MockMediaStreamImpl::SetVideoCaptureModule(const std::string label) { |
|
tommi (sloooow) - chröme
2011/11/08 12:27:24
const&
Henrik Grunell
2011/11/08 22:06:41
Done.
|
| + video_label_ = label; |
| + return true; |
| +} |
| + |
| +scoped_refptr<media::VideoDecoder> MockMediaStreamImpl::GetVideoDecoder( |
| + const GURL& url, |
| + media::MessageLoopFactory* message_loop_factory) { |
| + NOTIMPLEMENTED(); |
| + return NULL; |
| +} |
| + |
| +void MockMediaStreamImpl::OnStreamGenerated( |
| + int request_id, |
| + const std::string& label, |
| + const media_stream::StreamDeviceInfoArray& audio_array, |
| + const media_stream::StreamDeviceInfoArray& video_array) { |
| + NOTIMPLEMENTED(); |
| +} |
| + |
| +void MockMediaStreamImpl::OnStreamGenerationFailed(int request_id) { |
| + NOTIMPLEMENTED(); |
| +} |
| + |
| +void MockMediaStreamImpl::OnVideoDeviceFailed(const std::string& label, |
| + int index) { |
|
tommi (sloooow) - chröme
2011/11/08 12:27:24
indent
Henrik Grunell
2011/11/08 22:06:41
Done.
|
| + NOTIMPLEMENTED(); |
| +} |
| + |
| +void MockMediaStreamImpl::OnAudioDeviceFailed(const std::string& label, |
| + int index) { |
|
tommi (sloooow) - chröme
2011/11/08 12:27:24
indent
Henrik Grunell
2011/11/08 22:06:41
Done.
|
| + NOTIMPLEMENTED(); |
| +} |