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

Unified Diff: ash/tooltips/tooltip_controller_unittest.cc

Issue 9421016: Change EventGenerator to take a RootWindow at construction instead of just assuming one via RootWin… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « ash/ime/input_method_event_filter_unittest.cc ('k') | ash/wm/activation_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/tooltips/tooltip_controller_unittest.cc
===================================================================
--- ash/tooltips/tooltip_controller_unittest.cc (revision 122697)
+++ ash/tooltips/tooltip_controller_unittest.cc (working copy)
@@ -112,7 +112,7 @@
view->set_tooltip_text(ASCIIToUTF16("Tooltip Text"));
EXPECT_EQ(ASCIIToUTF16(""), GetTooltipText());
EXPECT_EQ(NULL, GetTooltipWindow());
- aura::test::EventGenerator generator;
+ aura::test::EventGenerator generator(Shell::GetRootWindow());
generator.MoveMouseToCenterOf(widget->GetNativeView());
aura::Window* window = widget->GetNativeView();
@@ -149,7 +149,7 @@
aura::Window* window = widget->GetNativeView();
// Fire tooltip timer so tooltip becomes visible.
- aura::test::EventGenerator generator;
+ aura::test::EventGenerator generator(Shell::GetRootWindow());
generator.MoveMouseRelativeTo(window,
view1->bounds().CenterPoint());
FireTooltipTimer();
@@ -186,7 +186,7 @@
EXPECT_EQ(ASCIIToUTF16(""), GetTooltipText());
EXPECT_EQ(NULL, GetTooltipWindow());
- aura::test::EventGenerator generator;
+ aura::test::EventGenerator generator(Shell::GetRootWindow());
generator.MoveMouseRelativeTo(widget->GetNativeView(),
view->bounds().CenterPoint());
string16 expected_tooltip = ASCIIToUTF16("Tooltip Text");
« no previous file with comments | « ash/ime/input_method_event_filter_unittest.cc ('k') | ash/wm/activation_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698