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

Unified 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: Minor 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/mock_media_stream_dispatcher.cc
diff --git a/content/renderer/media/mock_media_stream_dispatcher.cc b/content/renderer/media/mock_media_stream_dispatcher.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ee58121967e58e57b01b6284fe74a8d91f3e8723
--- /dev/null
+++ b/content/renderer/media/mock_media_stream_dispatcher.cc
@@ -0,0 +1,49 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/renderer/media/mock_media_stream_dispatcher.h"
+
+MockMediaStreamDispatcher::MockMediaStreamDispatcher()
+ : MediaStreamDispatcher(NULL),
+ request_id_(-1),
+ event_handler_(NULL),
+ components_(NULL),
+ stop_stream_counter_(0) {
+}
+
+MockMediaStreamDispatcher::~MockMediaStreamDispatcher() {}
+
+void MockMediaStreamDispatcher::GenerateStream(
+ int request_id,
+ MediaStreamDispatcherEventHandler* event_handler,
+ media_stream::StreamOptions components,
+ const std::string& security_origin) {
+ request_id_ = request_id;
+ event_handler_ = event_handler;
+ delete components_;
+ components_ = new media_stream::StreamOptions(components.audio,
+ components.video_option);
+ security_origin_ = security_origin;
+}
+
+void MockMediaStreamDispatcher::StopStream(const std::string& label) {
+ stop_stream_counter_++;
tommi (sloooow) - chröme 2011/11/22 16:11:38 chromium uses pre-increment.
Henrik Grunell 2011/11/23 21:50:49 Done.
+}
+
+bool MockMediaStreamDispatcher::IsStream(const std::string& label) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+int MockMediaStreamDispatcher::video_session_id(const std::string& label,
+ int index) {
+ NOTIMPLEMENTED();
+ return -1;
+}
+
+int MockMediaStreamDispatcher::audio_session_id(const std::string& label,
+ int index) {
+ NOTIMPLEMENTED();
+ return -1;
+}

Powered by Google App Engine
This is Rietveld 408576698