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(); |
} |