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

Unified Diff: ash/test/ash_test_base.cc

Issue 1071353003: Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 8 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/test/ash_test_base.h ('k') | ash/wm/lock_layout_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
}
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/wm/lock_layout_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698