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

Unified Diff: content/renderer/media_recorder/video_track_recorder_unittest.cc

Issue 2790823002: Spec compliant video constraints for getUserMedia behind flag. (Closed)
Patch Set: rebase Created 3 years, 8 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_recorder/video_track_recorder_unittest.cc
diff --git a/content/renderer/media_recorder/video_track_recorder_unittest.cc b/content/renderer/media_recorder/video_track_recorder_unittest.cc
index d10defbb62ec93a0681b8dd9d8582e977a7092b9..81583b5252301a9d26124722d185501e7c1b2810 100644
--- a/content/renderer/media_recorder/video_track_recorder_unittest.cc
+++ b/content/renderer/media_recorder/video_track_recorder_unittest.cc
@@ -7,6 +7,7 @@
#include <stddef.h>
#include <memory>
+#include <string>
#include "base/bind.h"
#include "base/location.h"
@@ -69,9 +70,7 @@ class VideoTrackRecorderTest
blink_source_.setExtraData(mock_source_);
blink_track_.initialize(blink_source_);
- blink::WebMediaConstraints constraints;
- constraints.initialize();
- track_ = new MediaStreamVideoTrack(mock_source_, constraints,
+ track_ = new MediaStreamVideoTrack(mock_source_,
MediaStreamSource::ConstraintsCallback(),
true /* enabled */);
blink_track_.setTrackData(track_);

Powered by Google App Engine
This is Rietveld 408576698