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

Unified Diff: content/renderer/media/mock_media_stream_registry.h

Issue 14312015: Effects Pepper Plugin and MediaStream Glue. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/mock_media_stream_registry.h
===================================================================
--- content/renderer/media/mock_media_stream_registry.h (revision 0)
+++ content/renderer/media/mock_media_stream_registry.h (revision 0)
@@ -0,0 +1,33 @@
+// Copyright (c) 2013 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.
+
+#ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_REGISTRY_H_
+#define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_REGISTRY_H_
+
+#include <string>
+
+#include "content/renderer/media/media_stream_registry_interface.h"
+#include "content/renderer/media/mock_media_stream_dependency_factory.h"
+
+namespace content {
+
+class MockMediaStreamRegistry : public MediaStreamRegistryInterface {
+ public:
+ explicit MockMediaStreamRegistry(MockMediaStreamDependencyFactory* factory);
+
+ void Init(const std::string& stream_label);
+ bool AddVideoTrack(const std::string& track_id);
+ virtual WebKit::WebMediaStream GetMediaStream(const std::string& url)
+ OVERRIDE;
+ const WebKit::WebMediaStream test_stream() const;
+
+ private:
+ MockMediaStreamDependencyFactory* factory_;
+ WebKit::WebMediaStream test_stream_;
+ std::string stream_url_;
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_REGISTRY_H_
Property changes on: content/renderer/media/mock_media_stream_registry.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « content/renderer/media/mock_media_stream_dependency_factory.cc ('k') | content/renderer/media/mock_media_stream_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698