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

Unified Diff: services/video_capture/fake_device_descriptor_unittest.cc

Issue 2457003002: [Mojo Video Capture] Simplify API and some cleanups (Closed)
Patch Set: Created 4 years, 2 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/BUILD.gn ('k') | services/video_capture/fake_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/fake_device_descriptor_unittest.cc
diff --git a/services/video_capture/fake_device_descriptor_unittest.cc b/services/video_capture/fake_device_descriptor_unittest.cc
index 7f8427c3fa1670aff681c433d048e4ce0b21c167..8a928c942675e8ab9c6fa3b141fff3991bdf936c 100644
--- a/services/video_capture/fake_device_descriptor_unittest.cc
+++ b/services/video_capture/fake_device_descriptor_unittest.cc
@@ -71,11 +71,13 @@ TEST_F(FakeDeviceDescriptorTest, CanUseSecondRequestedProxy) {
&wait_loop));
wait_loop.Run();
- media::VideoCaptureFormat arbitrary_requested_format;
- arbitrary_requested_format.frame_size.SetSize(640, 480);
- arbitrary_requested_format.frame_rate = 15;
- arbitrary_requested_format.pixel_format = media::PIXEL_FORMAT_I420;
- arbitrary_requested_format.pixel_storage = media::PIXEL_STORAGE_CPU;
+ VideoCaptureSettings arbitrary_requested_settings;
+ arbitrary_requested_settings.format.frame_size.SetSize(640, 480);
+ arbitrary_requested_settings.format.frame_rate = 15;
+ arbitrary_requested_settings.resolution_change_policy =
+ media::RESOLUTION_POLICY_FIXED_RESOLUTION;
+ arbitrary_requested_settings.power_line_frequency =
+ media::PowerLineFrequency::FREQUENCY_DEFAULT;
base::RunLoop wait_loop_2;
mojom::VideoFrameReceiverPtr receiver_proxy;
@@ -84,9 +86,7 @@ TEST_F(FakeDeviceDescriptorTest, CanUseSecondRequestedProxy) {
.WillRepeatedly(
InvokeWithoutArgs([&wait_loop_2]() { wait_loop_2.Quit(); }));
- device_proxy_2->Start(arbitrary_requested_format,
- media::RESOLUTION_POLICY_FIXED_RESOLUTION,
- media::PowerLineFrequency::FREQUENCY_DEFAULT,
+ device_proxy_2->Start(arbitrary_requested_settings,
std::move(receiver_proxy));
wait_loop_2.Run();
}
« no previous file with comments | « services/video_capture/BUILD.gn ('k') | services/video_capture/fake_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698