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 // TODO(grunell): Implement. | |
25 NOTIMPLEMENTED(); | |
26 } | |
27 | |
28 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.
| |
29 video_label_ = label; | |
30 return true; | |
31 } | |
32 | |
33 scoped_refptr<media::VideoDecoder> MockMediaStreamImpl::GetVideoDecoder( | |
34 const GURL& url, | |
35 media::MessageLoopFactory* message_loop_factory) { | |
36 NOTIMPLEMENTED(); | |
37 return NULL; | |
38 } | |
39 | |
40 void MockMediaStreamImpl::OnStreamGenerated( | |
41 int request_id, | |
42 const std::string& label, | |
43 const media_stream::StreamDeviceInfoArray& audio_array, | |
44 const media_stream::StreamDeviceInfoArray& video_array) { | |
45 NOTIMPLEMENTED(); | |
46 } | |
47 | |
48 void MockMediaStreamImpl::OnStreamGenerationFailed(int request_id) { | |
49 NOTIMPLEMENTED(); | |
50 } | |
51 | |
52 void MockMediaStreamImpl::OnVideoDeviceFailed(const std::string& label, | |
53 int index) { | |
tommi (sloooow) - chröme
2011/11/08 12:27:24
indent
Henrik Grunell
2011/11/08 22:06:41
Done.
| |
54 NOTIMPLEMENTED(); | |
55 } | |
56 | |
57 void MockMediaStreamImpl::OnAudioDeviceFailed(const std::string& label, | |
58 int index) { | |
tommi (sloooow) - chröme
2011/11/08 12:27:24
indent
Henrik Grunell
2011/11/08 22:06:41
Done.
| |
59 NOTIMPLEMENTED(); | |
60 } | |
OLD | NEW |