| Index: trunk/src/ash/shelf/shelf_view_unittest.cc
|
| ===================================================================
|
| --- trunk/src/ash/shelf/shelf_view_unittest.cc (revision 285220)
|
| +++ trunk/src/ash/shelf/shelf_view_unittest.cc (working copy)
|
| @@ -37,13 +37,13 @@
|
| #include "base/strings/string_number_conversions.h"
|
| #include "grit/ash_resources.h"
|
| #include "ui/aura/test/aura_test_base.h"
|
| +#include "ui/aura/test/event_generator.h"
|
| #include "ui/aura/window.h"
|
| #include "ui/aura/window_event_dispatcher.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| #include "ui/compositor/layer.h"
|
| #include "ui/events/event.h"
|
| #include "ui/events/event_constants.h"
|
| -#include "ui/events/test/event_generator.h"
|
| #include "ui/views/view_model.h"
|
| #include "ui/views/widget/widget.h"
|
| #include "ui/views/widget/widget_delegate.h"
|
| @@ -517,8 +517,8 @@
|
| gfx::Point center_point_of_drag_item =
|
| drag_button->GetBoundsInScreen().CenterPoint();
|
|
|
| - ui::test::EventGenerator generator(ash::Shell::GetPrimaryRootWindow(),
|
| - center_point_of_drag_item);
|
| + aura::test::EventGenerator generator(ash::Shell::GetPrimaryRootWindow(),
|
| + center_point_of_drag_item);
|
| // Rip an item off to OverflowBubble.
|
| generator.PressLeftButton();
|
| gfx::Point rip_off_point(center_point_of_drag_item.x(), 0);
|
| @@ -1326,7 +1326,7 @@
|
| TEST_F(ShelfViewTest, ShouldHideTooltipWhenHoveringOnTooltip) {
|
| ShelfTooltipManager* tooltip_manager = shelf_view_->tooltip_manager();
|
| tooltip_manager->CreateZeroDelayTimerForTest();
|
| - ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
|
| + aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow());
|
|
|
| // Move the mouse off any item and check that no tooltip is shown.
|
| generator.MoveMouseTo(gfx::Point(0, 0));
|
| @@ -1418,8 +1418,8 @@
|
| int item_width = test_for_overflow_view.GetButtonSize() +
|
| test_for_overflow_view.GetButtonSpacing();
|
|
|
| - ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow(),
|
| - gfx::Point());
|
| + aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow(),
|
| + gfx::Point());
|
| ShelfButton* button = test_for_overflow_view.GetButton(ripped_index);
|
| // Rip off the last visible item.
|
| gfx::Point start_point = button->GetBoundsInScreen().CenterPoint();
|
| @@ -1606,7 +1606,7 @@
|
| gfx::Point start_point = button->GetBoundsInScreen().CenterPoint();
|
| wm::ConvertPointFromScreen(second_root, &start_point);
|
|
|
| - ui::test::EventGenerator generator(second_root, start_point);
|
| + aura::test::EventGenerator generator(second_root, start_point);
|
|
|
| // Rip off the browser item.
|
| generator.PressLeftButton();
|
|
|