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

Unified Diff: ash/ime/input_method_event_filter_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/drag_drop/drag_drop_controller_unittest.cc ('k') | ash/tooltips/tooltip_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ime/input_method_event_filter_unittest.cc
===================================================================
--- ash/ime/input_method_event_filter_unittest.cc (revision 122697)
+++ ash/ime/input_method_event_filter_unittest.cc (working copy)
@@ -74,11 +74,11 @@
// 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);
« no previous file with comments | « ash/drag_drop/drag_drop_controller_unittest.cc ('k') | ash/tooltips/tooltip_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698