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

Unified Diff: chrome/browser/extensions/display_info_provider_chromeos_unittest.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
Index: chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
diff --git a/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc b/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
index 28d3eab505e49464db9e400a0f5215d804a5ec66..3df2766a5c8fe70743128d7ded44e2e961082616 100644
--- a/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
+++ b/chrome/browser/extensions/display_info_provider_chromeos_unittest.cc
@@ -121,7 +121,8 @@ TEST_F(DisplayInfoProviderChromeosTest, GetRotation) {
EXPECT_EQ("0,0 600x500", SystemInfoDisplayBoundsToString(result[0]->bounds));
EXPECT_EQ(90, result[0]->rotation);
- GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_270);
+ GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_270,
+ gfx::Display::ROTATION_SOURCE_ACTIVE);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();
@@ -131,7 +132,8 @@ TEST_F(DisplayInfoProviderChromeosTest, GetRotation) {
EXPECT_EQ("0,0 600x500", SystemInfoDisplayBoundsToString(result[0]->bounds));
EXPECT_EQ(270, result[0]->rotation);
- GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_180);
+ GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_180,
+ gfx::Display::ROTATION_SOURCE_ACTIVE);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();
@@ -141,7 +143,8 @@ TEST_F(DisplayInfoProviderChromeosTest, GetRotation) {
EXPECT_EQ("0,0 500x600", SystemInfoDisplayBoundsToString(result[0]->bounds));
EXPECT_EQ(180, result[0]->rotation);
- GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_0);
+ GetDisplayManager()->SetDisplayRotation(display_id, gfx::Display::ROTATE_0,
+ gfx::Display::ROTATION_SOURCE_ACTIVE);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();

Powered by Google App Engine
This is Rietveld 408576698