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

Unified Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 902123002: Fix initial hiding and centering cursor on Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
diff --git a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
index d643e4f2f3b3decf0970a05973cacbc8c1734d2c..9b0167cf7d0735b10b7ea236a65bb821be33497e 100644
--- a/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
+++ b/content/browser/renderer_host/render_widget_host_view_aura_unittest.cc
@@ -1297,31 +1297,31 @@ TEST_F(RenderWidgetHostViewAuraTest, UpdateCursorIfOverSelf) {
// Cursor is in the middle of the window.
cursor_client.reset_calls_to_set_cursor();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(110, 110));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(110, 110));
view_->UpdateCursorIfOverSelf();
EXPECT_EQ(1, cursor_client.calls_to_set_cursor());
// Cursor is near the top of the window.
cursor_client.reset_calls_to_set_cursor();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(80, 65));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(80, 65));
view_->UpdateCursorIfOverSelf();
EXPECT_EQ(1, cursor_client.calls_to_set_cursor());
// Cursor is near the bottom of the window.
cursor_client.reset_calls_to_set_cursor();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(159, 159));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(159, 159));
view_->UpdateCursorIfOverSelf();
EXPECT_EQ(1, cursor_client.calls_to_set_cursor());
// Cursor is above the window.
cursor_client.reset_calls_to_set_cursor();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(67, 59));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(67, 59));
view_->UpdateCursorIfOverSelf();
EXPECT_EQ(0, cursor_client.calls_to_set_cursor());
// Cursor is below the window.
cursor_client.reset_calls_to_set_cursor();
- aura::Env::GetInstance()->set_last_mouse_location(gfx::Point(161, 161));
+ aura::Env::GetInstance()->SetLastMouseLocation(gfx::Point(161, 161));
view_->UpdateCursorIfOverSelf();
EXPECT_EQ(0, cursor_client.calls_to_set_cursor());
}

Powered by Google App Engine
This is Rietveld 408576698