Index: ash/test/ash_test_base.cc |
diff --git a/ash/test/ash_test_base.cc b/ash/test/ash_test_base.cc |
index ef7fba32473c08012caf6a4bcb4a0213b03fda43..291eaf5d43a1307f5751ff6504e1b7e0ca0f9ec2 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) |
+ .ActiveRotation(); |
+} |
+ |
+gfx::Display::Rotation AshTestBase::GetCurrentInternalDisplayRotation() { |
+ return GetActiveDisplayRotation(gfx::Display::InternalDisplayId()); |
+} |
+ |
bool AshTestBase::SupportsMultipleDisplays() { |
return AshTestHelper::SupportsMultipleDisplays(); |
} |