Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(218)

Side by Side Diff: content/renderer/media/mock_media_stream_impl.cc

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Code revies fixes. Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698