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

Unified Diff: ash/display/display_manager_unittest.cc

Issue 1177863002: ash: Restore user selected rotation on startup (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 6 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 | « ash/display/display_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager_unittest.cc
diff --git a/ash/display/display_manager_unittest.cc b/ash/display/display_manager_unittest.cc
index e814b3f896d4234f6f5136e8a0a3000591337425..bb8dafe8fd05e542a99380bde98a06ad3f688ca5 100644
--- a/ash/display/display_manager_unittest.cc
+++ b/ash/display/display_manager_unittest.cc
@@ -1761,6 +1761,20 @@ TEST_F(DisplayManagerFontTest,
DisplayInfo::SetUse125DSFForUIScaling(false);
}
+TEST_F(DisplayManagerTest, CheckInitializationOfRotationProperty) {
+ int64_t id = display_manager()->GetDisplayAt(0).id();
+ display_manager()->RegisterDisplayProperty(id, gfx::Display::ROTATE_90, 1.0f,
+ nullptr, gfx::Size(), 1.0f,
+ ui::COLOR_PROFILE_STANDARD);
+
+ const DisplayInfo& info = display_manager()->GetDisplayInfo(id);
+
+ EXPECT_EQ(gfx::Display::ROTATE_90,
+ info.GetRotation(gfx::Display::ROTATION_SOURCE_USER));
+ EXPECT_EQ(gfx::Display::ROTATE_90,
+ info.GetRotation(gfx::Display::ROTATION_SOURCE_ACTIVE));
+}
+
#endif // OS_CHROMEOS
} // namespace ash
« no previous file with comments | « ash/display/display_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698