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

Unified Diff: ash/display/cursor_window_controller_unittest.cc

Issue 2833163002: Change ui cursor identifiers to an enum class. (Closed)
Patch Set: OK, it can't be explicit for mac. 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/display/cursor_window_controller.cc ('k') | ash/display/mirror_window_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/cursor_window_controller_unittest.cc
diff --git a/ash/display/cursor_window_controller_unittest.cc b/ash/display/cursor_window_controller_unittest.cc
index 3609b643ee044090d57b26c1a09c46c1bfec3b6a..d7460a67616dd287db994d0de42f6c68e930486a 100644
--- a/ash/display/cursor_window_controller_unittest.cc
+++ b/ash/display/cursor_window_controller_unittest.cc
@@ -30,7 +30,9 @@ class CursorWindowControllerTest : public test::AshTestBase {
SetCursorCompositionEnabled(true);
}
- int GetCursorType() const { return cursor_window_controller_->cursor_type_; }
+ ui::CursorType GetCursorType() const {
+ return cursor_window_controller_->cursor_type_;
+ }
const gfx::Point& GetCursorHotPoint() const {
return cursor_window_controller_->hot_point_;
@@ -80,7 +82,7 @@ TEST_F(CursorWindowControllerTest, MoveToDifferentDisplay) {
EXPECT_TRUE(primary_root->Contains(GetCursorWindow()));
EXPECT_EQ(primary_display_id, GetCursorDisplayId());
- EXPECT_EQ(ui::kCursorNull, GetCursorType());
+ EXPECT_EQ(ui::CursorType::kNull, GetCursorType());
gfx::Point hot_point = GetCursorHotPoint();
EXPECT_EQ("4,4", hot_point.ToString());
gfx::Rect cursor_bounds = GetCursorWindow()->GetBoundsInScreen();
@@ -104,7 +106,7 @@ TEST_F(CursorWindowControllerTest, MoveToDifferentDisplay) {
EXPECT_TRUE(secondary_root->Contains(GetCursorWindow()));
EXPECT_EQ(secondary_display_id, GetCursorDisplayId());
- EXPECT_EQ(ui::kCursorNull, GetCursorType());
+ EXPECT_EQ(ui::CursorType::kNull, GetCursorType());
hot_point = GetCursorHotPoint();
EXPECT_EQ("3,3", hot_point.ToString());
cursor_bounds = GetCursorWindow()->GetBoundsInScreen();
« no previous file with comments | « ash/display/cursor_window_controller.cc ('k') | ash/display/mirror_window_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698