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

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

Issue 9139010: Revert 117187 - Adding support for MediaStream and PeerConnection functionality. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 11 months 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 | Annotate | Revision Log
OLDNEW
(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 }
OLDNEW
« no previous file with comments | « content/renderer/media/mock_media_stream_impl.h ('k') | content/renderer/media/mock_peer_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698