Index: ash/test/ash_test_base.cc |
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc |
index 6e6f78d06368d3fc563da0b1c8c9ed2726882224..ffb633060175ed876faa1c937714d505b0de8441 100644 |
--- a/ash/test/ash_test_base.cc |
+++ b/ash/test/ash_test_base.cc |
@@ -202,6 +202,17 @@ ui::test::EventGenerator& AshTestBase::GetEventGenerator() { |
return *event_generator_.get(); |
} |
+gfx::Display::Rotation AshTestBase::GetActiveDisplayRotation(int64 id) { |
+ return Shell::GetInstance() |
+ ->display_manager() |
+ ->GetDisplayInfo(id) |
+ .GetActiveRotation(); |
+} |
+ |
+gfx::Display::Rotation AshTestBase::GetCurrentInternalDisplayRotation() { |
+ return GetActiveDisplayRotation(gfx::Display::InternalDisplayId()); |
+} |
+ |
bool AshTestBase::SupportsMultipleDisplays() { |
return AshTestHelper::SupportsMultipleDisplays(); |
} |