summaryrefslogtreecommitdiffstats
path: root/ash/ime
diff options
context:
space:
mode:
Diffstat (limited to 'ash/ime')
-rw-r--r--ash/ime/input_method_event_filter_unittest.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/ash/ime/input_method_event_filter_unittest.cc b/ash/ime/input_method_event_filter_unittest.cc
index 31a3c15..9b3f766 100644
--- a/ash/ime/input_method_event_filter_unittest.cc
+++ b/ash/ime/input_method_event_filter_unittest.cc
@@ -74,11 +74,11 @@ TEST_F(InputMethodEventFilterTest, TestInputMethodKeyEventPropagation) {
// automatically set up by AshTestBase, consumes it and sends a new
// ui::ET_TRANSLATED_KEY_* event to the root window, which will be consumed by
// the test event filter.
- aura::test::EventGenerator generator_;
+ aura::test::EventGenerator generator(Shell::GetRootWindow());
EXPECT_EQ(0, test_filter.key_event_count());
- generator_.PressKey(ui::VKEY_SPACE, 0);
+ generator.PressKey(ui::VKEY_SPACE, 0);
EXPECT_EQ(1, test_filter.key_event_count());
- generator_.ReleaseKey(ui::VKEY_SPACE, 0);
+ generator.ReleaseKey(ui::VKEY_SPACE, 0);
EXPECT_EQ(2, test_filter.key_event_count());
root_filter->RemoveFilter(&test_filter);