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

Unified Diff: ash/wm/window_state_unittest.cc

Issue 2806783002: ash: Do not constrain window bounds if requested (Closed)
Patch Set: Remove dead code Created 3 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_state.h ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_state_unittest.cc
diff --git a/ash/wm/window_state_unittest.cc b/ash/wm/window_state_unittest.cc
index 10275816f4dc5e647421d7c89906768a1f6f286e..e41ec56d614740b96f96e2549524d2166dd19d36 100644
--- a/ash/wm/window_state_unittest.cc
+++ b/ash/wm/window_state_unittest.cc
@@ -375,7 +375,7 @@ TEST_F(WindowStateTest, TrustedPinned) {
EXPECT_FALSE(window_state->IsTrustedPinned());
}
-TEST_F(WindowStateTest, AllowSetBoundsInMaximized) {
+TEST_F(WindowStateTest, AllowSetBoundsDirect) {
std::unique_ptr<aura::Window> window(CreateTestWindowInShellWithId(0));
WindowState* window_state = GetWindowState(window.get());
EXPECT_FALSE(window_state->IsMaximized());
@@ -385,7 +385,7 @@ TEST_F(WindowStateTest, AllowSetBoundsInMaximized) {
window->SetBounds(original_bounds);
ASSERT_EQ(original_bounds, window->bounds());
- window_state->set_allow_set_bounds_in_maximized(true);
+ window_state->set_allow_set_bounds_direct(true);
window_state->Maximize();
EXPECT_TRUE(window_state->IsMaximized());
@@ -399,7 +399,7 @@ TEST_F(WindowStateTest, AllowSetBoundsInMaximized) {
EXPECT_FALSE(window_state->IsMaximized());
EXPECT_EQ(original_bounds, window->bounds());
- window_state->set_allow_set_bounds_in_maximized(false);
+ window_state->set_allow_set_bounds_direct(false);
window_state->Maximize();
EXPECT_TRUE(window_state->IsMaximized());
« no previous file with comments | « ash/wm/window_state.h ('k') | components/exo/shell_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698