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

Unified Diff: ash/display/display_manager_unittest.cc

Issue 1870733004: Clear the software mirroring display list when adding it to the updated list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/display/display_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/display_manager_unittest.cc
diff --git a/ash/display/display_manager_unittest.cc b/ash/display/display_manager_unittest.cc
index 88cb314af1cd3db9ea142d0c56b43a2e7b852ce9..d2fe7072f43f431eb973e0bb0bed17387977f76f 100644
--- a/ash/display/display_manager_unittest.cc
+++ b/ash/display/display_manager_unittest.cc
@@ -1484,6 +1484,21 @@ TEST_F(DisplayManagerTest, SoftwareMirroring) {
gfx::Screen::GetScreen()->RemoveObserver(&display_observer);
}
+TEST_F(DisplayManagerTest, RotateInSoftwareMirroring) {
+ if (!SupportsMultipleDisplays())
+ return;
+
+ DisplayManager* display_manager = Shell::GetInstance()->display_manager();
+ UpdateDisplay("600x400,500x300");
+ display_manager->SetMirrorMode(true);
+
+ EXPECT_EQ(1U, display_manager->GetNumDisplays());
+ int64_t primary_id = gfx::Screen::GetScreen()->GetPrimaryDisplay().id();
+ display_manager->SetDisplayRotation(primary_id, gfx::Display::ROTATE_180,
+ gfx::Display::ROTATION_SOURCE_ACTIVE);
+ display_manager->SetMirrorMode(false);
+}
+
TEST_F(DisplayManagerTest, SingleDisplayToSoftwareMirroring) {
if (!SupportsMultipleDisplays())
return;
« no previous file with comments | « ash/display/display_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698