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

Unified Diff: chrome/browser/extensions/display_info_provider_chromeos_unittest.cc

Issue 1107383002: Merge Prevent DisplayPreferences from saving incorrect rotations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2357
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: 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 493e54c4ac7ca72264f6af428cb46a200877b620..caef15fbb5df5ddd2d88db621bc18ea5583e4ed3 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