diff options
author | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 01:48:52 +0000 |
---|---|---|
committer | tapted@chromium.org <tapted@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 01:48:52 +0000 |
commit | 73c9fd0c41a31aab0be7a31e173f3a90f7b588f7 (patch) | |
tree | 0becd035d0e5424fc115a5e84d3b86cf218fe648 /ash/accelerators | |
parent | eab395117ab90f0a26b2c0335c3619e459973fe6 (diff) | |
download | chromium_src-73c9fd0c41a31aab0be7a31e173f3a90f7b588f7.zip chromium_src-73c9fd0c41a31aab0be7a31e173f3a90f7b588f7.tar.gz chromium_src-73c9fd0c41a31aab0be7a31e173f3a90f7b588f7.tar.bz2 |
Cleanups for aura/test/event_generator.h (resolve TODOs)
Some purely mechanical changes left over from r283694, now that
aura::test::EventGenerator has moved to ui::test in src/ui/events.
Moves aura/test/event_generator.* to event_generator_delegate_aura.*
Removes `using ui::test::EventGenerator;` declaration and redirects
includes that don't extend the delegate to include the ui/test
event_generator.h directly
BUG=378134
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=285209
Review URL: https://codereview.chromium.org/406413004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285857 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/accelerators')
4 files changed, 12 insertions, 12 deletions
diff --git a/ash/accelerators/accelerator_controller_unittest.cc b/ash/accelerators/accelerator_controller_unittest.cc index c5fc1cf..31ebf9b 100644 --- a/ash/accelerators/accelerator_controller_unittest.cc +++ b/ash/accelerators/accelerator_controller_unittest.cc @@ -25,12 +25,12 @@ #include "ash/wm/window_util.h" #include "base/command_line.h" #include "ui/aura/client/aura_constants.h" -#include "ui/aura/test/event_generator.h" #include "ui/aura/test/test_window_delegate.h" #include "ui/aura/test/test_windows.h" #include "ui/aura/window.h" #include "ui/events/event.h" #include "ui/events/event_processor.h" +#include "ui/events/test/event_generator.h" #include "ui/gfx/screen.h" #include "ui/views/widget/widget.h" @@ -519,7 +519,7 @@ TEST_F(AcceleratorControllerTest, AutoRepeat) { TestTarget target_b; GetController()->Register(accelerator_b, &target_b); - aura::test::EventGenerator& generator = GetEventGenerator(); + ui::test::EventGenerator& generator = GetEventGenerator(); generator.PressKey(ui::VKEY_A, ui::EF_CONTROL_DOWN); generator.ReleaseKey(ui::VKEY_A, ui::EF_CONTROL_DOWN); @@ -554,7 +554,7 @@ TEST_F(AcceleratorControllerTest, AutoRepeat) { } TEST_F(AcceleratorControllerTest, Previous) { - aura::test::EventGenerator& generator = GetEventGenerator(); + ui::test::EventGenerator& generator = GetEventGenerator(); generator.PressKey(ui::VKEY_VOLUME_MUTE, ui::EF_NONE); generator.ReleaseKey(ui::VKEY_VOLUME_MUTE, ui::EF_NONE); @@ -588,7 +588,7 @@ TEST_F(AcceleratorControllerTest, DontRepeatToggleFullscreen) { widget->Activate(); widget->GetNativeView()->SetProperty(aura::client::kCanMaximizeKey, true); - aura::test::EventGenerator& generator = GetEventGenerator(); + ui::test::EventGenerator& generator = GetEventGenerator(); wm::WindowState* window_state = wm::GetWindowState(widget->GetNativeView()); // Toggling not suppressed. diff --git a/ash/accelerators/accelerator_filter_unittest.cc b/ash/accelerators/accelerator_filter_unittest.cc index 67ff1d9..d91d084 100644 --- a/ash/accelerators/accelerator_filter_unittest.cc +++ b/ash/accelerators/accelerator_filter_unittest.cc @@ -15,10 +15,10 @@ #include "base/memory/scoped_ptr.h" #include "testing/gtest/include/gtest/gtest.h" #include "ui/aura/test/aura_test_base.h" -#include "ui/aura/test/event_generator.h" #include "ui/aura/test/test_windows.h" #include "ui/aura/window.h" #include "ui/events/event.h" +#include "ui/events/test/event_generator.h" #include "ui/gfx/rect.h" namespace ash { @@ -31,7 +31,7 @@ TEST_F(AcceleratorFilterTest, TestFilterWithoutFocus) { const TestScreenshotDelegate* delegate = GetScreenshotDelegate(); EXPECT_EQ(0, delegate->handle_take_screenshot_count()); - aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); + ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); // AcceleratorController calls ScreenshotDelegate::HandleTakeScreenshot() when // VKEY_PRINT is pressed. See kAcceleratorData[] in accelerator_controller.cc. generator.PressKey(ui::VKEY_PRINT, 0); @@ -54,7 +54,7 @@ TEST_F(AcceleratorFilterTest, TestFilterWithFocus) { // AcceleratorFilter should ignore the key events since the root window is // not focused. - aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); + ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); generator.PressKey(ui::VKEY_PRINT, 0); EXPECT_EQ(0, delegate->handle_take_screenshot_count()); generator.ReleaseKey(ui::VKEY_PRINT, 0); @@ -69,7 +69,7 @@ TEST_F(AcceleratorFilterTest, TestCapsLockMask) { const TestScreenshotDelegate* delegate = GetScreenshotDelegate(); EXPECT_EQ(0, delegate->handle_take_screenshot_count()); - aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); + ui::test::EventGenerator generator(Shell::GetPrimaryRootWindow()); generator.PressKey(ui::VKEY_PRINT, 0); EXPECT_EQ(1, delegate->handle_take_screenshot_count()); generator.ReleaseKey(ui::VKEY_PRINT, 0); diff --git a/ash/accelerators/magnifier_key_scroller_unittest.cc b/ash/accelerators/magnifier_key_scroller_unittest.cc index ad91abd..9de8c95 100644 --- a/ash/accelerators/magnifier_key_scroller_unittest.cc +++ b/ash/accelerators/magnifier_key_scroller_unittest.cc @@ -8,8 +8,8 @@ #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ash/wm/window_util.h" -#include "ui/aura/test/event_generator.h" #include "ui/aura/test/test_window_delegate.h" +#include "ui/events/test/event_generator.h" namespace ash { namespace { @@ -52,7 +52,7 @@ TEST_F(MagnifierKeyScrollerTest, Basic) { controller->SetEnabled(true); EXPECT_EQ("200,150", controller->GetWindowPosition().ToString()); - aura::test::EventGenerator& generator = GetEventGenerator(); + ui::test::EventGenerator& generator = GetEventGenerator(); // Click and Release generates the press event upon release. generator.PressKey(ui::VKEY_DOWN, ui::EF_SHIFT_DOWN); diff --git a/ash/accelerators/spoken_feedback_toggler_unittest.cc b/ash/accelerators/spoken_feedback_toggler_unittest.cc index 9344471..20df051 100644 --- a/ash/accelerators/spoken_feedback_toggler_unittest.cc +++ b/ash/accelerators/spoken_feedback_toggler_unittest.cc @@ -7,8 +7,8 @@ #include "ash/shell.h" #include "ash/test/ash_test_base.h" #include "ash/wm/window_util.h" -#include "ui/aura/test/event_generator.h" #include "ui/aura/test/test_window_delegate.h" +#include "ui/events/test/event_generator.h" namespace ash { @@ -18,7 +18,7 @@ TEST_F(SpokenFeedbackTogglerTest, Basic) { SpokenFeedbackToggler::ScopedEnablerForTest scoped; Shell* shell = Shell::GetInstance(); AccessibilityDelegate* delegate = shell->accessibility_delegate(); - aura::test::EventGenerator& generator = GetEventGenerator(); + ui::test::EventGenerator& generator = GetEventGenerator(); EXPECT_FALSE(delegate->IsSpokenFeedbackEnabled()); generator.PressKey(ui::VKEY_F6, ui::EF_SHIFT_DOWN); |