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

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

Issue 289583002: Lock rotation when screen is manually rotated. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Define sources for rotation Created 6 years, 7 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/api/system_display/display_info_provider_chromeos_unittest.cc
diff --git a/chrome/browser/extensions/api/system_display/display_info_provider_chromeos_unittest.cc b/chrome/browser/extensions/api/system_display/display_info_provider_chromeos_unittest.cc
index 9c0e4113b30fc6de7f1750c08b7717356e1ce0f9..530541ef0052924595962ca4d6b539661eb57a98 100644
--- a/chrome/browser/extensions/api/system_display/display_info_provider_chromeos_unittest.cc
+++ b/chrome/browser/extensions/api/system_display/display_info_provider_chromeos_unittest.cc
@@ -119,7 +119,9 @@ 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,
+ ui::USER);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();
@@ -129,7 +131,9 @@ 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,
+ ui::USER);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();
@@ -139,7 +143,9 @@ 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,
+ ui::USER);
result = DisplayInfoProvider::Get()->GetAllDisplaysInfo();

Powered by Google App Engine
This is Rietveld 408576698