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

Unified Diff: content/browser/renderer_host/media/video_capture_browsertest.cc

Issue 2753073006: [Mojo Video Capture] Add support to BuildableVideoCaptureDevice for aborting the device start. (Closed)
Patch Set: Incorporated mcasas@'s suggestions from PatchSet 2 Created 3 years, 9 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/browser/renderer_host/media/video_capture_browsertest.cc
diff --git a/content/browser/renderer_host/media/video_capture_browsertest.cc b/content/browser/renderer_host/media/video_capture_browsertest.cc
index 13bda0dbfcb04b3ce8bfe15cb15af15be27e1858..329ee537548abeb54a21b7f416604aa0e014a99f 100644
--- a/content/browser/renderer_host/media/video_capture_browsertest.cc
+++ b/content/browser/renderer_host/media/video_capture_browsertest.cc
@@ -102,9 +102,9 @@ class VideoCaptureBrowserTest
return;
}
- video_capture_manager_->StopCaptureForClient(
- controller_.get(), stub_client_id_, &mock_controller_event_handler_,
- false);
+ video_capture_manager_->DisconnectClient(controller_.get(), stub_client_id_,
+ &mock_controller_event_handler_,
+ false);
EXPECT_CALL(mock_stream_provider_listener_, Closed(_, _))
.WillOnce(InvokeWithoutArgs([continuation]() { continuation.Run(); }));
@@ -149,7 +149,7 @@ class VideoCaptureBrowserTest
capture_params.requested_format = media::VideoCaptureFormat(
GetParam().resolution_to_use, GetParam().frame_rate_to_use,
GetParam().pixel_format_to_use);
- video_capture_manager_->StartCaptureForClient(
+ video_capture_manager_->ConnectClient(
session_id_, capture_params, stub_client_id_,
&mock_controller_event_handler_,
base::Bind(&VideoCaptureBrowserTest::OnConnectClientToControllerAnswer,

Powered by Google App Engine
This is Rietveld 408576698