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

Unified Diff: ui/display/display_unittest.cc

Issue 2855143004: Implements a display scale tray setting behind a chrome switch (Closed)
Patch Set: Sync with ToT Created 3 years, 7 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/display.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/display/display_unittest.cc
diff --git a/ui/display/display_unittest.cc b/ui/display/display_unittest.cc
index dee754b4d96ecee7153a82b64290f65decd9c0b9..aa0b55d5212cd47c1d47d58543c7f9ef364eb4e1 100644
--- a/ui/display/display_unittest.cc
+++ b/ui/display/display_unittest.cc
@@ -64,6 +64,13 @@ TEST(DisplayTest, ForcedDeviceScaleFactorByCommandLine) {
Display::ResetForceDeviceScaleFactorForTesting();
}
+TEST(DisplayTest, ForcedDeviceScaleFactor) {
+ Display::SetForceDeviceScaleFactor(2);
+
+ EXPECT_EQ(2, Display::GetForcedDeviceScaleFactor());
+ Display::ResetForceDeviceScaleFactorForTesting();
+}
+
TEST(DisplayTest, DisplayHDRValues) {
base::test::ScopedCommandLine scoped_command_line;
base::CommandLine* command_line = scoped_command_line.GetProcessCommandLine();
« no previous file with comments | « ui/display/display.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698