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

Unified Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura_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
Index: ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
diff --git a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
index 80a45ecfe1eb3b51432435935fdc6663b8eab704..6476482a3c9d5e619de9ebf779f10cf68b138c10 100644
--- a/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
+++ b/ui/views/widget/desktop_aura/desktop_native_widget_aura_unittest.cc
@@ -178,12 +178,14 @@ TEST_F(DesktopNativeWidgetAuraTest, GlobalCursorState) {
// Verify that setting the cursor using one cursor client
// will set it for all root windows.
- EXPECT_EQ(ui::kCursorNone, cursor_client_a->GetCursor().native_type());
- EXPECT_EQ(ui::kCursorNone, cursor_client_b->GetCursor().native_type());
-
- cursor_client_b->SetCursor(ui::kCursorPointer);
- EXPECT_EQ(ui::kCursorPointer, cursor_client_a->GetCursor().native_type());
- EXPECT_EQ(ui::kCursorPointer, cursor_client_b->GetCursor().native_type());
+ EXPECT_EQ(ui::CursorType::kNone, cursor_client_a->GetCursor().native_type());
+ EXPECT_EQ(ui::CursorType::kNone, cursor_client_b->GetCursor().native_type());
+
+ cursor_client_b->SetCursor(ui::CursorType::kPointer);
+ EXPECT_EQ(ui::CursorType::kPointer,
+ cursor_client_a->GetCursor().native_type());
+ EXPECT_EQ(ui::CursorType::kPointer,
+ cursor_client_b->GetCursor().native_type());
// Verify that hiding the cursor using one cursor client will
// hide it for all root windows. Note that hiding the cursor

Powered by Google App Engine
This is Rietveld 408576698