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

Side by Side Diff: device/capture/content/capture_resolution_chooser_unittest.cc

Issue 2143903003: [WIP] Move media/capture to device/capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/capture/content/capture_resolution_chooser.h" 5 #include "device/capture/content/capture_resolution_chooser.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 using tracked_objects::Location; 13 using tracked_objects::Location;
14 14
15 namespace media { 15 namespace media {
(...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after
344 // For a chooser configured with the "any within limit" policy, the smallest 344 // For a chooser configured with the "any within limit" policy, the smallest
345 // possible computed size is smallest non-empty snapped size (which is 90 345 // possible computed size is smallest non-empty snapped size (which is 90
346 // lines of resolution) with the same aspect ratio as the maximum size. 346 // lines of resolution) with the same aspect ratio as the maximum size.
347 const gfx::Size smallest_size(90 * kMaxFrameWidth / kMaxFrameHeight, 90); 347 const gfx::Size smallest_size(90 * kMaxFrameWidth / kMaxFrameHeight, 90);
348 348
349 TestSnappedFrameSizes(&chooser, smallest_size); 349 TestSnappedFrameSizes(&chooser, smallest_size);
350 TestTargetedFrameAreas(&chooser, smallest_size); 350 TestTargetedFrameAreas(&chooser, smallest_size);
351 } 351 }
352 352
353 } // namespace media 353 } // namespace media
OLDNEW
« no previous file with comments | « device/capture/content/capture_resolution_chooser.cc ('k') | device/capture/content/screen_capture_device_core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698