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

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: 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
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();
}

Powered by Google App Engine
This is Rietveld 408576698