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

Unified Diff: ash/accelerators/accelerator_commands_unittest.cc

Issue 24108003: [Cleanup] Rename WindowSettings to WindowState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase fix Created 7 years, 3 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/accelerators/accelerator_commands.cc ('k') | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/accelerators/accelerator_commands_unittest.cc
diff --git a/ash/accelerators/accelerator_commands_unittest.cc b/ash/accelerators/accelerator_commands_unittest.cc
index 7d75cb89aee3b8ba6d11fa3d6b213387f529429e..2423bb52c4ca37331519ff165d0f4bb7f8950707 100644
--- a/ash/accelerators/accelerator_commands_unittest.cc
+++ b/ash/accelerators/accelerator_commands_unittest.cc
@@ -5,7 +5,7 @@
#include "ash/accelerators/accelerator_commands.h"
#include "ash/test/ash_test_base.h"
-#include "ash/wm/window_util.h"
+#include "ash/wm/window_state.h"
#include "ui/aura/window.h"
namespace ash {
@@ -16,15 +16,16 @@ typedef test::AshTestBase AcceleratorCommandsTest;
TEST_F(AcceleratorCommandsTest, ToggleMinimized) {
scoped_ptr<aura::Window> window(
CreateTestWindowInShellWithBounds(gfx::Rect(5, 5, 20, 20)));
- wm::ActivateWindow(window.get());
+ wm::WindowState* window_state = wm::GetWindowState(window.get());
+ window_state->Activate();
ToggleMinimized();
- EXPECT_TRUE(wm::IsWindowMinimized(window.get()));
- EXPECT_FALSE(wm::IsWindowNormal(window.get()));
+ EXPECT_TRUE(window_state->IsMinimized());
+ EXPECT_FALSE(window_state->IsNormalShowState());
ToggleMinimized();
- EXPECT_FALSE(wm::IsWindowMinimized(window.get()));
- EXPECT_TRUE(wm::IsWindowNormal(window.get()));
+ EXPECT_FALSE(window_state->IsMinimized());
+ EXPECT_TRUE(window_state->IsNormalShowState());
}
} // namespace accelerators
« no previous file with comments | « ash/accelerators/accelerator_commands.cc ('k') | ash/accelerators/accelerator_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698