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

Unified Diff: ui/snapshot/snapshot_aura_unittest.cc

Issue 2207043002: SetDeviceScaleFactorForTest Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: SetDeviceScaleFactorForTest Created 4 years, 4 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 | « ui/display/win/screen_win.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/snapshot/snapshot_aura_unittest.cc
diff --git a/ui/snapshot/snapshot_aura_unittest.cc b/ui/snapshot/snapshot_aura_unittest.cc
index 4dc985fc24073e0fab65b22308baa2cc33e18a72..07c2efed9e484a1ed31165fa54f99acc88c18db0 100644
--- a/ui/snapshot/snapshot_aura_unittest.cc
+++ b/ui/snapshot/snapshot_aura_unittest.cc
@@ -244,7 +244,7 @@ TEST_F(SnapshotAuraTest, UIScale) {
}
TEST_F(SnapshotAuraTest, DeviceScaleFactor) {
- test_screen()->SetDeviceScaleFactor(2.0f);
+ test_screen()->SetDeviceScaleFactorForTest(2.0f);
gfx::Rect test_bounds(100, 100, 150, 100);
SetupTestWindow(test_bounds);
@@ -279,7 +279,7 @@ TEST_F(SnapshotAuraTest, RotateAndUIScale) {
}
TEST_F(SnapshotAuraTest, RotateAndUIScaleAndScaleFactor) {
- test_screen()->SetDeviceScaleFactor(2.0f);
+ test_screen()->SetDeviceScaleFactorForTest(2.0f);
const float kUIScale = 1.25f;
test_screen()->SetUIScale(kUIScale);
test_screen()->SetDisplayRotation(display::Display::ROTATE_90);
« no previous file with comments | « ui/display/win/screen_win.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698