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

Unified Diff: services/video_capture/mock_device_test.cc

Issue 2494033004: [Mojo Video Capture] Use string keys instead of VideoCaptureDeviceDescriptor (Closed)
Patch Set: Rebase Created 4 years, 1 month 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: services/video_capture/mock_device_test.cc
diff --git a/services/video_capture/mock_device_test.cc b/services/video_capture/mock_device_test.cc
index 419d9cf7276e01b01f38c9a33df4d7a217563f62..cf9b44089e12d5422781444d4a423a9596216ebe 100644
--- a/services/video_capture/mock_device_test.cc
+++ b/services/video_capture/mock_device_test.cc
@@ -9,8 +9,7 @@ namespace video_capture {
MockDeviceTest::MockDeviceTest()
: service_manager::test::ServiceTest("service:video_capture_unittests") {}
-MockDeviceTest::~MockDeviceTest() =
- default;
+MockDeviceTest::~MockDeviceTest() = default;
void MockDeviceTest::SetUp() {
ServiceTest::SetUp();
@@ -27,7 +26,7 @@ void MockDeviceTest::SetUp() {
// Obtain the mock device from the factory
factory_->CreateDeviceProxy(
- mock_descriptor, mojo::GetProxy(&device_proxy_),
+ mock_descriptor.device_id, mojo::GetProxy(&device_proxy_),
base::Bind([](mojom::DeviceAccessResultCode result_code) {}));
requested_settings_.format.frame_size = gfx::Size(800, 600);

Powered by Google App Engine
This is Rietveld 408576698