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

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

Issue 8060055: Adding support for MediaStream and PeerConnection functionality (Closed) Base URL: http://git.chromium.org/chromium/chromium.git@trunk
Patch Set: Code review fixes. Created 9 years 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_dispatcher.h"
6
7 MockMediaStreamDispatcher::MockMediaStreamDispatcher()
8 : MediaStreamDispatcher(NULL),
9 request_id_(-1),
10 event_handler_(NULL),
11 components_(NULL),
12 stop_stream_counter_(0) {
13 }
14
15 MockMediaStreamDispatcher::~MockMediaStreamDispatcher() {}
16
17 void MockMediaStreamDispatcher::GenerateStream(
18 int request_id,
19 MediaStreamDispatcherEventHandler* event_handler,
20 media_stream::StreamOptions components,
21 const std::string& security_origin) {
22 request_id_ = request_id;
23 event_handler_ = event_handler;
24 delete components_;
25 components_ = new media_stream::StreamOptions(components.audio,
26 components.video_option);
27 security_origin_ = security_origin;
28 }
29
30 void MockMediaStreamDispatcher::StopStream(const std::string& label) {
31 ++stop_stream_counter_;
32 }
33
34 bool MockMediaStreamDispatcher::IsStream(const std::string& label) {
35 NOTIMPLEMENTED();
36 return false;
37 }
38
39 int MockMediaStreamDispatcher::video_session_id(const std::string& label,
40 int index) {
41 NOTIMPLEMENTED();
42 return -1;
43 }
44
45 int MockMediaStreamDispatcher::audio_session_id(const std::string& label,
46 int index) {
47 NOTIMPLEMENTED();
48 return -1;
49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698