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

Unified Diff: trunk/src/ash/display/screen_position_controller_unittest.cc

Issue 59153004: Revert 233787 "Eliminate Shell::RootWindowList in favor of aura:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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: trunk/src/ash/display/screen_position_controller_unittest.cc
===================================================================
--- trunk/src/ash/display/screen_position_controller_unittest.cc (revision 233812)
+++ trunk/src/ash/display/screen_position_controller_unittest.cc (working copy)
@@ -87,16 +87,12 @@
TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreen) {
UpdateDisplay("100+100-200x200,100+500-200x200");
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
- EXPECT_EQ("100,100",
- root_windows[0]->GetDispatcher()->GetHostOrigin().ToString());
- EXPECT_EQ("200x200",
- root_windows[0]->GetDispatcher()->GetHostSize().ToString());
- EXPECT_EQ("100,500",
- root_windows[1]->GetDispatcher()->GetHostOrigin().ToString());
- EXPECT_EQ("200x200",
- root_windows[1]->GetDispatcher()->GetHostSize().ToString());
+ EXPECT_EQ("100,100", root_windows[0]->GetHostOrigin().ToString());
+ EXPECT_EQ("200x200", root_windows[0]->GetHostSize().ToString());
+ EXPECT_EQ("100,500", root_windows[1]->GetHostOrigin().ToString());
+ EXPECT_EQ("200x200", root_windows[1]->GetHostSize().ToString());
const gfx::Point window_pos(100, 100);
window_->SetBoundsInScreen(
@@ -175,16 +171,12 @@
TEST_F(ScreenPositionControllerTest, MAYBE_ConvertHostPointToScreenHiDPI) {
UpdateDisplay("100+100-200x200*2,100+500-200x200");
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
- EXPECT_EQ("100,100",
- root_windows[0]->GetDispatcher()->GetHostOrigin().ToString());
- EXPECT_EQ("200x200",
- root_windows[0]->GetDispatcher()->GetHostSize().ToString());
- EXPECT_EQ("100,500",
- root_windows[1]->GetDispatcher()->GetHostOrigin().ToString());
- EXPECT_EQ("200x200",
- root_windows[1]->GetDispatcher()->GetHostSize().ToString());
+ EXPECT_EQ("100,100", root_windows[0]->GetHostOrigin().ToString());
+ EXPECT_EQ("200x200", root_windows[0]->GetHostSize().ToString());
+ EXPECT_EQ("100,500", root_windows[1]->GetHostOrigin().ToString());
+ EXPECT_EQ("200x200", root_windows[1]->GetHostSize().ToString());
// Put |window_| to the primary 2x display.
window_->SetBoundsInScreen(gfx::Rect(20, 20, 50, 50),
@@ -227,7 +219,7 @@
// Move |window_| to the 2nd.
window_->SetBoundsInScreen(gfx::Rect(300, 20, 50, 50),
ScreenAsh::GetSecondaryDisplay());
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
EXPECT_EQ(root_windows[1], window_->GetRootWindow());
@@ -259,7 +251,7 @@
// Move |window_| to the 2nd.
window_->SetBoundsInScreen(gfx::Rect(300, 20, 50, 50),
ScreenAsh::GetSecondaryDisplay());
- aura::Window::Windows root_windows =
+ Shell::RootWindowList root_windows =
Shell::GetInstance()->GetAllRootWindows();
EXPECT_EQ(root_windows[1], window_->GetRootWindow());
« no previous file with comments | « trunk/src/ash/display/screen_position_controller.cc ('k') | trunk/src/ash/drag_drop/drag_drop_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698