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

Unified Diff: media/capture/video/fake_video_capture_device_unittest.cc

Issue 2164473002: ImageCapture: wire PhotoCapabilities' ISO, width, height and PhotoSettings' width and height (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng@ comments Created 4 years, 5 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 | « media/capture/video/fake_video_capture_device.cc ('k') | media/mojo/interfaces/image_capture.mojom » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/capture/video/fake_video_capture_device_unittest.cc
diff --git a/media/capture/video/fake_video_capture_device_unittest.cc b/media/capture/video/fake_video_capture_device_unittest.cc
index d884daf959c22bc0eec4b95c95c57c412c737948..9eb5c357bbcad5cc09059bc35ee7b135e27dd57d 100644
--- a/media/capture/video/fake_video_capture_device_unittest.cc
+++ b/media/capture/video/fake_video_capture_device_unittest.cc
@@ -320,6 +320,17 @@ TEST_F(FakeVideoCaptureDeviceTest, GetAndSetCapabilities) {
auto* capabilities = image_capture_client_->capabilities();
ASSERT_TRUE(capabilities);
+ EXPECT_EQ(100u, capabilities->iso->min);
+ EXPECT_EQ(100u, capabilities->iso->max);
+ EXPECT_EQ(100u, capabilities->iso->current);
+ EXPECT_EQ(capture_params.requested_format.frame_size.height(),
+ static_cast<int>(capabilities->height->current));
+ EXPECT_EQ(240u, capabilities->height->min);
+ EXPECT_EQ(1080u, capabilities->height->max);
+ EXPECT_EQ(capture_params.requested_format.frame_size.width(),
+ static_cast<int>(capabilities->width->current));
+ EXPECT_EQ(320u, capabilities->width->min);
+ EXPECT_EQ(1920u, capabilities->width->max);
EXPECT_EQ(100u, capabilities->zoom->min);
EXPECT_EQ(400u, capabilities->zoom->max);
EXPECT_GE(capabilities->zoom->current, capabilities->zoom->min);
« no previous file with comments | « media/capture/video/fake_video_capture_device.cc ('k') | media/mojo/interfaces/image_capture.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698