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

Unified Diff: services/video_capture/fake_device_unittest.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/fake_device_unittest.cc
diff --git a/services/video_capture/fake_device_unittest.cc b/services/video_capture/fake_device_unittest.cc
index ceff3b8781ebd302a5621ccf41ed82a8df7bba99..93afe7ceabbdfefe805bca38b542244597b31464 100644
--- a/services/video_capture/fake_device_unittest.cc
+++ b/services/video_capture/fake_device_unittest.cc
@@ -31,14 +31,6 @@ struct FrameInfo {
namespace video_capture {
TEST_F(FakeDeviceTest, FrameCallbacksArrive) {
- 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;
const int kNumFramesToWaitFor = 3;
int num_frames_arrived = 0;
@@ -53,7 +45,7 @@ TEST_F(FakeDeviceTest, FrameCallbacksArrive) {
}
}));
- fake_device_proxy_->Start(arbitrary_requested_settings,
+ fake_device_proxy_->Start(requestable_settings_,
std::move(receiver_proxy));
wait_loop.Run();
}
« no previous file with comments | « services/video_capture/fake_device_test.cc ('k') | services/video_capture/mock_device_descriptor_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698