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

Unified Diff: content/renderer/media/media_stream_video_capture_source_unittest.cc

Issue 391703002: Implement ConstraintNotSatisfiedError for getusermedia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and change the reviewers list Created 6 years, 4 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/media_stream_video_capture_source_unittest.cc
diff --git a/content/renderer/media/media_stream_video_capture_source_unittest.cc b/content/renderer/media/media_stream_video_capture_source_unittest.cc
index a01db9e2e43b7b63d9538579e9050376111fff4b..8492039a7bd6a6521965cc19a4f74cd5ed0c7ff1 100644
--- a/content/renderer/media/media_stream_video_capture_source_unittest.cc
+++ b/content/renderer/media/media_stream_video_capture_source_unittest.cc
@@ -77,7 +77,9 @@ class MediaStreamVideoCapturerSourceTest : public testing::Test {
}
protected:
- void OnConstraintsApplied(MediaStreamSource* source, bool success) {
+ void OnConstraintsApplied(MediaStreamSource* source,
+ MediaStreamRequestResult result,
+ const blink::WebString& result_name) {
}
base::MessageLoopForUI message_loop_;
@@ -184,7 +186,7 @@ TEST_F(MediaStreamVideoCapturerSourceTest, CaptureTime) {
testing::SaveArg<2>(&running_cb)));
EXPECT_CALL(mock_delegate(), StopCapture());
blink::WebMediaStreamTrack track = StartSource();
- running_cb.Run(true);
+ running_cb.Run(MEDIA_DEVICE_OK);
base::RunLoop run_loop;
base::TimeTicks reference_capture_time =
« no previous file with comments | « content/renderer/media/media_stream_source.h ('k') | content/renderer/media/media_stream_video_capturer_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698