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

Unified Diff: ash/wm/window_manager_unittest.cc

Issue 11419274: Remove CursorManager::cursor_visible(), which is no longer necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/window_manager_unittest.cc
diff --git a/ash/wm/window_manager_unittest.cc b/ash/wm/window_manager_unittest.cc
index 493851a06178cd0004a6fdd2099a62ffcd3f7cb8..6bfd26d46a2354ea393e3632ec83276e95328ae9 100644
--- a/ash/wm/window_manager_unittest.cc
+++ b/ash/wm/window_manager_unittest.cc
@@ -651,36 +651,36 @@ TEST_F(WindowManagerTest, UpdateCursorVisibility) {
ui::ET_TOUCH_RELEASED, gfx::Point(0, 0), 1, getTime());
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
- EXPECT_TRUE(cursor_manager->cursor_visible());
+ EXPECT_TRUE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_pressed1);
- EXPECT_FALSE(cursor_manager->cursor_visible());
+ EXPECT_FALSE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
- EXPECT_TRUE(cursor_manager->cursor_visible());
+ EXPECT_TRUE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_released1);
- EXPECT_TRUE(cursor_manager->cursor_visible());
+ EXPECT_TRUE(cursor_manager->IsCursorVisible());
// If someone else made cursor invisible keep it invisible even after it
// received mouse events.
cursor_manager->ShowCursor(false);
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
- EXPECT_FALSE(cursor_manager->cursor_visible());
+ EXPECT_FALSE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_pressed2);
- EXPECT_FALSE(cursor_manager->cursor_visible());
+ EXPECT_FALSE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
- EXPECT_FALSE(cursor_manager->cursor_visible());
+ EXPECT_FALSE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_released2);
- EXPECT_FALSE(cursor_manager->cursor_visible());
+ EXPECT_FALSE(cursor_manager->IsCursorVisible());
// Back to normal.
cursor_manager->ShowCursor(true);
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
- EXPECT_TRUE(cursor_manager->cursor_visible());
+ EXPECT_TRUE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_pressed2);
- EXPECT_FALSE(cursor_manager->cursor_visible());
+ EXPECT_FALSE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostMouseEvent(&mouse_moved);
- EXPECT_TRUE(cursor_manager->cursor_visible());
+ EXPECT_TRUE(cursor_manager->IsCursorVisible());
root_window->AsRootWindowHostDelegate()->OnHostTouchEvent(&touch_released2);
- EXPECT_TRUE(cursor_manager->cursor_visible());
+ EXPECT_TRUE(cursor_manager->IsCursorVisible());
}
} // namespace ash
« no previous file with comments | « ash/wm/session_state_controller_impl2_unittest.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698