OLD | NEW |
| (Empty) |
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 | |
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 NOTIMPLEMENTED(); | |
19 return NULL; | |
20 } | |
21 | |
22 void MockMediaStreamImpl::ClosePeerConnection() { | |
23 video_label_.clear(); | |
24 } | |
25 | |
26 bool MockMediaStreamImpl::SetVideoCaptureModule(const std::string& label) { | |
27 video_label_ = label; | |
28 return true; | |
29 } | |
30 | |
31 scoped_refptr<media::VideoDecoder> MockMediaStreamImpl::GetVideoDecoder( | |
32 const GURL& url, | |
33 media::MessageLoopFactory* message_loop_factory) { | |
34 NOTIMPLEMENTED(); | |
35 return NULL; | |
36 } | |
37 | |
38 void MockMediaStreamImpl::OnStreamGenerated( | |
39 int request_id, | |
40 const std::string& label, | |
41 const media_stream::StreamDeviceInfoArray& audio_array, | |
42 const media_stream::StreamDeviceInfoArray& video_array) { | |
43 NOTIMPLEMENTED(); | |
44 } | |
45 | |
46 void MockMediaStreamImpl::OnStreamGenerationFailed(int request_id) { | |
47 NOTIMPLEMENTED(); | |
48 } | |
49 | |
50 void MockMediaStreamImpl::OnVideoDeviceFailed( | |
51 const std::string& label, | |
52 int index) { | |
53 NOTIMPLEMENTED(); | |
54 } | |
55 | |
56 void MockMediaStreamImpl::OnAudioDeviceFailed( | |
57 const std::string& label, | |
58 int index) { | |
59 NOTIMPLEMENTED(); | |
60 } | |
OLD | NEW |