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

Unified Diff: ash/wm/resize_shadow_and_cursor_unittest.cc

Issue 169713003: Remove WindowState::IsNormalShowState() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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/drag_details.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/resize_shadow_and_cursor_unittest.cc
diff --git a/ash/wm/resize_shadow_and_cursor_unittest.cc b/ash/wm/resize_shadow_and_cursor_unittest.cc
index 804bb3b074c208882f3b58e67d65d3c90eeed3f9..f3ca4ba26d02e46bd9fd223cc3ebe53350b6d576 100644
--- a/ash/wm/resize_shadow_and_cursor_unittest.cc
+++ b/ash/wm/resize_shadow_and_cursor_unittest.cc
@@ -117,7 +117,7 @@ class ResizeShadowAndCursorTest : public AshTestBase {
// mouse's position.
TEST_F(ResizeShadowAndCursorTest, MouseHover) {
aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
- ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowState());
+ ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowType());
generator.MoveMouseTo(50, 50);
EXPECT_FALSE(HasResizeShadow());
@@ -160,7 +160,7 @@ TEST_F(ResizeShadowAndCursorTest, MouseHover) {
// as long as a user is resizing a window.
TEST_F(ResizeShadowAndCursorTest, MouseDrag) {
aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
- ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowState());
+ ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowType());
gfx::Size initial_size(window()->bounds().size());
generator.MoveMouseTo(100, 50);
@@ -182,7 +182,7 @@ TEST_F(ResizeShadowAndCursorTest, MouseDrag) {
// Test that the resize shadows stay visible while resizing a window via touch.
TEST_F(ResizeShadowAndCursorTest, Touch) {
- ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowState());
+ ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowType());
aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
int start = 100 + ash::kResizeOutsideBoundsSize - 1;
@@ -199,7 +199,7 @@ TEST_F(ResizeShadowAndCursorTest, Touch) {
// used when the window is maximized.
TEST_F(ResizeShadowAndCursorTest, MaximizeRestore) {
aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
- ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowState());
+ ASSERT_TRUE(ash::wm::GetWindowState(window())->IsNormalShowType());
generator.MoveMouseTo(100, 50);
EXPECT_EQ(HTRIGHT, ResizeShadowHitTest());
« no previous file with comments | « ash/wm/drag_details.cc ('k') | ash/wm/toplevel_window_event_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698