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

Unified Diff: ash/extended_desktop_unittest.cc

Issue 2833163002: Change ui cursor identifiers to an enum class. (Closed)
Patch Set: Remove extranious ::ui:: 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: ash/extended_desktop_unittest.cc
diff --git a/ash/extended_desktop_unittest.cc b/ash/extended_desktop_unittest.cc
index 5cca23da1d904c12cecbb609ec60614787f61287..e4fb8f0215de8425eaca87fa6bf0ae4abf61e8f4 100644
--- a/ash/extended_desktop_unittest.cc
+++ b/ash/extended_desktop_unittest.cc
@@ -256,11 +256,11 @@ TEST_F(ExtendedDesktopTest, TestCursor) {
aura::Window::Windows root_windows = Shell::GetAllRootWindows();
aura::WindowTreeHost* host0 = root_windows[0]->GetHost();
aura::WindowTreeHost* host1 = root_windows[1]->GetHost();
- EXPECT_EQ(ui::kCursorPointer, host0->last_cursor().native_type());
- EXPECT_EQ(ui::kCursorNull, host1->last_cursor().native_type());
- Shell::Get()->cursor_manager()->SetCursor(ui::kCursorCopy);
- EXPECT_EQ(ui::kCursorCopy, host0->last_cursor().native_type());
- EXPECT_EQ(ui::kCursorCopy, host1->last_cursor().native_type());
+ EXPECT_EQ(ui::CursorType::POINTER, host0->last_cursor().native_type());
+ EXPECT_EQ(ui::CursorType::CURSOR_NULL, host1->last_cursor().native_type());
+ Shell::Get()->cursor_manager()->SetCursor(ui::CursorType::COPY);
+ EXPECT_EQ(ui::CursorType::COPY, host0->last_cursor().native_type());
+ EXPECT_EQ(ui::CursorType::COPY, host1->last_cursor().native_type());
}
TEST_F(ExtendedDesktopTest, TestCursorLocation) {

Powered by Google App Engine
This is Rietveld 408576698