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

Unified Diff: services/video_capture/test/fake_device_descriptor_test.cc

Issue 2813343002: [Mojo Video Capture] Switch to using Mojo structs in media/capture/mojo (Closed)
Patch Set: Removed extraneous AtLeast 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: services/video_capture/test/fake_device_descriptor_test.cc
diff --git a/services/video_capture/test/fake_device_descriptor_test.cc b/services/video_capture/test/fake_device_descriptor_test.cc
index 55b8919fe84d01e0e3cdae3a61dabac26db22247..f3d00ae35bb7ce4521359fa9a9663736e3e48eb5 100644
--- a/services/video_capture/test/fake_device_descriptor_test.cc
+++ b/services/video_capture/test/fake_device_descriptor_test.cc
@@ -20,13 +20,14 @@ void FakeDeviceDescriptorTest::SetUp() {
video_capture::ServiceTest::SetUp();
base::RunLoop wait_loop;
- EXPECT_CALL(descriptor_receiver_, Run(_))
- .WillOnce(Invoke([this, &wait_loop](
- const std::vector<media::VideoCaptureDeviceDescriptor>& descriptors) {
- fake_device_descriptor_ = descriptors[0];
- wait_loop.Quit();
- }));
- factory_->EnumerateDeviceDescriptors(descriptor_receiver_.Get());
+ EXPECT_CALL(device_info_receiver_, Run(_))
+ .WillOnce(
+ Invoke([this, &wait_loop](
+ const std::vector<media::VideoCaptureDeviceInfo>& infos) {
+ fake_device_info_ = infos[0];
+ wait_loop.Quit();
+ }));
+ factory_->GetDeviceInfos(device_info_receiver_.Get());
wait_loop.Run();
}

Powered by Google App Engine
This is Rietveld 408576698