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

Unified Diff: services/video_capture/test/service_unittest.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
« no previous file with comments | « services/video_capture/test/service_test.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/test/service_unittest.cc
diff --git a/services/video_capture/test/service_unittest.cc b/services/video_capture/test/service_unittest.cc
index 9a59275da9ee8567b685fbb258bc0b8b7873634f..bc745002a9d08bb1fe81b382f5a923e02b5ed586 100644
--- a/services/video_capture/test/service_unittest.cc
+++ b/services/video_capture/test/service_unittest.cc
@@ -20,30 +20,30 @@ namespace video_capture {
using VideoCaptureServiceTest = ServiceTest;
// Tests that an answer arrives from the service when calling
-// EnumerateDeviceDescriptors().
-TEST_F(VideoCaptureServiceTest,
- DISABLED_EnumerateDeviceDescriptorsCallbackArrives) {
+// GetDeviceInfos().
+TEST_F(VideoCaptureServiceTest, DISABLED_GetDeviceInfosCallbackArrives) {
base::RunLoop wait_loop;
- EXPECT_CALL(descriptor_receiver_, Run(_))
+ EXPECT_CALL(device_info_receiver_, Run(_))
.Times(Exactly(1))
.WillOnce(InvokeWithoutArgs([&wait_loop]() { wait_loop.Quit(); }));
- factory_->EnumerateDeviceDescriptors(descriptor_receiver_.Get());
+ factory_->GetDeviceInfos(device_info_receiver_.Get());
wait_loop.Run();
}
TEST_F(VideoCaptureServiceTest, DISABLED_FakeDeviceFactoryEnumeratesOneDevice) {
base::RunLoop wait_loop;
size_t num_devices_enumerated = 0;
- EXPECT_CALL(descriptor_receiver_, Run(_))
+ EXPECT_CALL(device_info_receiver_, Run(_))
.Times(Exactly(1))
- .WillOnce(Invoke([&wait_loop, &num_devices_enumerated](
- const std::vector<media::VideoCaptureDeviceDescriptor>& descriptors) {
- num_devices_enumerated = descriptors.size();
- wait_loop.Quit();
- }));
+ .WillOnce(
+ Invoke([&wait_loop, &num_devices_enumerated](
+ const std::vector<media::VideoCaptureDeviceInfo>& infos) {
+ num_devices_enumerated = infos.size();
+ wait_loop.Quit();
+ }));
- factory_->EnumerateDeviceDescriptors(descriptor_receiver_.Get());
+ factory_->GetDeviceInfos(device_info_receiver_.Get());
wait_loop.Run();
ASSERT_EQ(1u, num_devices_enumerated);
}
« no previous file with comments | « services/video_capture/test/service_test.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698