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

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

Issue 2393923002: Add unit tests for webrtc_media_stream_adapter.cc (Closed)
Patch Set: Renamed test function Created 4 years, 2 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
diff --git a/content/renderer/media/mock_media_stream_registry.h b/content/renderer/media/mock_media_stream_registry.h
index 37c55ae67f320a1a2c2b6c5e589cd205c3a859a4..376646046046584ca97c84b2f3d2e6ca13d64852 100644
--- a/content/renderer/media/mock_media_stream_registry.h
+++ b/content/renderer/media/mock_media_stream_registry.h
@@ -9,6 +9,10 @@
#include "content/renderer/media/media_stream_registry_interface.h"
+namespace blink {
+class WebMediaConstraints;
+}
+
namespace content {
// This class encapsulates creation of a Blink MediaStream having inside the
@@ -19,6 +23,8 @@ class MockMediaStreamRegistry final : public MediaStreamRegistryInterface {
MockMediaStreamRegistry();
void Init(const std::string& stream_url);
+ void AddVideoTrack(const std::string& track_id,
+ const blink::WebMediaConstraints& constraints);
void AddVideoTrack(const std::string& track_id);
void AddAudioTrack(const std::string& track_id);
blink::WebMediaStream GetMediaStream(const std::string& url) override;
« no previous file with comments | « content/renderer/media/media_stream_video_source.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