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

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

Issue 770713005: FakeVideoCaptureDevice: add 1080p resolution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sorted out content_browsertests Created 6 years 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/video/capture/fake_video_capture_device_factory.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/video/capture/fake_video_capture_device_unittest.cc
diff --git a/media/video/capture/fake_video_capture_device_unittest.cc b/media/video/capture/fake_video_capture_device_unittest.cc
index 7d1fabedfb402a6401948474fc02a3c3cb718417..9a9f0464446a59fbca0bda5e89b82acde8761c0d 100644
--- a/media/video/capture/fake_video_capture_device_unittest.cc
+++ b/media/video/capture/fake_video_capture_device_unittest.cc
@@ -151,7 +151,7 @@ TEST_F(FakeVideoCaptureDeviceTest, GetDeviceSupportedFormats) {
++names_iterator) {
video_capture_device_factory_->GetDeviceSupportedFormats(
*names_iterator, &supported_formats);
- EXPECT_EQ(supported_formats.size(), 3u);
+ EXPECT_EQ(supported_formats.size(), 4u);
EXPECT_EQ(supported_formats[0].frame_size.width(), 320);
EXPECT_EQ(supported_formats[0].frame_size.height(), 240);
EXPECT_EQ(supported_formats[0].pixel_format, media::PIXEL_FORMAT_I420);
@@ -164,6 +164,10 @@ TEST_F(FakeVideoCaptureDeviceTest, GetDeviceSupportedFormats) {
EXPECT_EQ(supported_formats[2].frame_size.height(), 720);
EXPECT_EQ(supported_formats[2].pixel_format, media::PIXEL_FORMAT_I420);
EXPECT_GE(supported_formats[2].frame_rate, 20);
+ EXPECT_EQ(supported_formats[3].frame_size.width(), 1920);
+ EXPECT_EQ(supported_formats[3].frame_size.height(), 1080);
+ EXPECT_EQ(supported_formats[3].pixel_format, media::PIXEL_FORMAT_I420);
+ EXPECT_GE(supported_formats[3].frame_rate, 20);
}
}
« no previous file with comments | « media/video/capture/fake_video_capture_device_factory.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698