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

Unified Diff: ash/display/window_tree_host_manager_unittest.cc

Issue 1594683002: Introduce DisplayConfigurationController (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@issue_576375_display1b1
Patch Set: Rebase Created 4 years, 11 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/window_tree_host_manager.cc ('k') | ash/shell.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/window_tree_host_manager_unittest.cc
diff --git a/ash/display/window_tree_host_manager_unittest.cc b/ash/display/window_tree_host_manager_unittest.cc
index bd80c05531a91a0d0b76db501830c7317a0b3416..391e53bd6245d0fa3d8f9de7c2d2124c4ec785d3 100644
--- a/ash/display/window_tree_host_manager_unittest.cc
+++ b/ash/display/window_tree_host_manager_unittest.cc
@@ -1002,7 +1002,7 @@ TEST_F(WindowTreeHostManagerTest, OverscanInsets) {
&point);
EXPECT_EQ("15,10", point.ToString());
- window_tree_host_manager->SwapPrimaryDisplay();
+ window_tree_host_manager->SwapPrimaryDisplayForTest();
point.SetPoint(0, 0);
Shell::GetAllRootWindows()[1]->GetHost()->GetRootTransform().TransformPoint(
&point);
@@ -1278,7 +1278,7 @@ TEST_F(WindowTreeHostManagerTest, ReplaceSwappedPrimary) {
display_info_list.push_back(second_display_info);
display_manager->OnNativeDisplaysChanged(display_info_list);
- Shell::GetInstance()->window_tree_host_manager()->SwapPrimaryDisplay();
+ Shell::GetInstance()->window_tree_host_manager()->SwapPrimaryDisplayForTest();
EXPECT_EQ(11, Shell::GetScreen()->GetPrimaryDisplay().id());
@@ -1461,7 +1461,7 @@ TEST_F(WindowTreeHostManagerTest,
EXPECT_EQ(1.0f, test_api.GetCurrentCursor().device_scale_factor());
EXPECT_EQ(gfx::Display::ROTATE_0, test_api.GetCurrentCursorRotation());
- window_tree_host_manager->SwapPrimaryDisplay();
+ window_tree_host_manager->SwapPrimaryDisplayForTest();
EXPECT_EQ("20,50", env->last_mouse_location().ToString());
EXPECT_EQ(2.0f, test_api.GetCurrentCursor().device_scale_factor());
@@ -1484,7 +1484,7 @@ TEST_F(WindowTreeHostManagerTest,
UpdateDisplay("300x300*2/r,200x200");
// Swap the primary display to make it possible to remove the primary display
// via UpdateDisplay().
- window_tree_host_manager->SwapPrimaryDisplay();
+ window_tree_host_manager->SwapPrimaryDisplayForTest();
int primary_display_id = window_tree_host_manager->GetPrimaryDisplayId();
window_tree_host_manager->GetPrimaryRootWindow()->MoveCursorTo(
« no previous file with comments | « ash/display/window_tree_host_manager.cc ('k') | ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698