| 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
|
|
|