summaryrefslogtreecommitdiffstats
path: root/ash/tooltips
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-19 04:45:00 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-02-19 04:45:00 +0000
commit9557ef13eb27fb806fc1a79e7268cb131ff14201 (patch)
treed18327b7f02925625cd7fc3278e2ce6494bfac1e /ash/tooltips
parent49d89f8b55b2e802d40cb9bf7e8a7051924839aa (diff)
downloadchromium_src-9557ef13eb27fb806fc1a79e7268cb131ff14201.zip
chromium_src-9557ef13eb27fb806fc1a79e7268cb131ff14201.tar.gz
chromium_src-9557ef13eb27fb806fc1a79e7268cb131ff14201.tar.bz2
Change EventGenerator to take a RootWindow at construction instead of just assuming one via RootWindow::GetInstance().
http://crbug.com/112131 TEST=none Review URL: https://chromiumcodereview.appspot.com/9421016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@122716 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/tooltips')
-rw-r--r--ash/tooltips/tooltip_controller_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/tooltips/tooltip_controller_unittest.cc b/ash/tooltips/tooltip_controller_unittest.cc
index ff27e43..badae3c 100644
--- a/ash/tooltips/tooltip_controller_unittest.cc
+++ b/ash/tooltips/tooltip_controller_unittest.cc
@@ -112,7 +112,7 @@ TEST_F(TooltipControllerTest, ViewTooltip) {
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 @@ TEST_F(TooltipControllerTest, TooltipsInMultipleViews) {
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 @@ TEST_F(TooltipControllerTest, EnableOrDisableTooltips) {
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");