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

Unified Diff: ash/wm/workspace_controller_unittest.cc

Issue 68033003: Undocks window first before side-snapping bounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undocks window first before side-snapping bounds (comments) 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: ash/wm/workspace_controller_unittest.cc
diff --git a/ash/wm/workspace_controller_unittest.cc b/ash/wm/workspace_controller_unittest.cc
index 48e08fc41545760b62793cdd60fd8e9361c1829d..3048a8185279c92d43a2bcb9bd2c196026e92214 100644
--- a/ash/wm/workspace_controller_unittest.cc
+++ b/ash/wm/workspace_controller_unittest.cc
@@ -851,7 +851,7 @@ TEST_F(WorkspaceControllerTest, BasicAutoPlacingOnShowHide) {
// Test4: A single manageable window should get centered.
window4.reset();
- window1_state->set_bounds_changed_by_user(false);
+ window1_state->SetBoundsChangedByUser(false);
// Trigger the auto window placement function by showing (and hiding) it.
window1->Hide();
window1->Show();
@@ -881,7 +881,7 @@ TEST_F(WorkspaceControllerTest, TestUserMovedWindowRepositioning) {
// Check that the current location gets preserved if the user has
// positioned it previously.
- window1_state->set_bounds_changed_by_user(true);
+ window1_state->SetBoundsChangedByUser(true);
window1->Show();
EXPECT_EQ("16,32 640x320", window1->bounds().ToString());
// Flag should be still set.
@@ -902,7 +902,7 @@ TEST_F(WorkspaceControllerTest, TestUserMovedWindowRepositioning) {
EXPECT_FALSE(window2_state->bounds_changed_by_user());
// Going back to one shown window should keep the state.
- window1_state->set_bounds_changed_by_user(true);
+ window1_state->SetBoundsChangedByUser(true);
window2->Hide();
EXPECT_EQ("0,32 640x320", window1->bounds().ToString());
EXPECT_TRUE(window1_state->bounds_changed_by_user());
« ash/wm/window_state.cc ('K') | « ash/wm/workspace/workspace_window_resizer_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698