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

Unified Diff: ash/wm/window_positioner_unittest.cc

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke GetWorkAreaForWindowInParent and fix windows 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/wm/window_positioner.cc ('k') | ash/wm/window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_positioner_unittest.cc
diff --git a/ash/wm/window_positioner_unittest.cc b/ash/wm/window_positioner_unittest.cc
index 942cd30698ef3f6706fe6313df7e1882f8f89513..705f011204e2f34cfc41f6863b6d6b918e8387dc 100644
--- a/ash/wm/window_positioner_unittest.cc
+++ b/ash/wm/window_positioner_unittest.cc
@@ -180,8 +180,7 @@ TEST_F(WindowPositionerTest, FirstRunMaximizeWindowHighResloution) {
delegate->SetForceMaximizeOnFirstRun(true);
WindowPositioner::GetBoundsAndShowStateForNewWindow(
- gfx::Screen::GetScreen(), nullptr, false, ui::SHOW_STATE_DEFAULT,
- &bounds_in_out, &show_state_out);
+ nullptr, false, ui::SHOW_STATE_DEFAULT, &bounds_in_out, &show_state_out);
EXPECT_EQ(show_state_out, ui::SHOW_STATE_MAXIMIZED);
}
@@ -200,8 +199,7 @@ TEST_F(WindowPositionerTest, FirstRunMaximizeWindowLowResolution) {
delegate->SetForceMaximizeOnFirstRun(true);
WindowPositioner::GetBoundsAndShowStateForNewWindow(
- gfx::Screen::GetScreen(), nullptr, false, ui::SHOW_STATE_DEFAULT,
- &bounds_in_out, &show_state_out);
+ nullptr, false, ui::SHOW_STATE_DEFAULT, &bounds_in_out, &show_state_out);
EXPECT_EQ(show_state_out, ui::SHOW_STATE_MAXIMIZED);
}
« no previous file with comments | « ash/wm/window_positioner.cc ('k') | ash/wm/window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698