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

Unified Diff: ash/wm/window_modality_controller_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/wm/toplevel_window_event_filter_unittest.cc ('k') | ui/aura/test/event_generator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/window_modality_controller_unittest.cc
===================================================================
--- ash/wm/window_modality_controller_unittest.cc (revision 122697)
+++ ash/wm/window_modality_controller_unittest.cc (working copy)
@@ -4,6 +4,7 @@
#include "ash/wm/window_modality_controller.h"
+#include "ash/shell.h"
#include "ash/test/ash_test_base.h"
#include "ash/wm/window_util.h"
#include "ui/aura/client/aura_constants.h"
@@ -184,7 +185,8 @@
{
// Clicking a point within w1 should activate that window.
- aura::test::EventGenerator generator(gfx::Point(10, 10));
+ aura::test::EventGenerator generator(Shell::GetRootWindow(),
+ gfx::Point(10, 10));
generator.ClickLeftButton();
EXPECT_TRUE(IsActiveWindow(w1.get()));
}
@@ -193,7 +195,8 @@
{
// Clicking a point within w1 should activate w11.
- aura::test::EventGenerator generator(gfx::Point(10, 10));
+ aura::test::EventGenerator generator(Shell::GetRootWindow(),
+ gfx::Point(10, 10));
generator.ClickLeftButton();
EXPECT_TRUE(IsActiveWindow(w11.get()));
}
« no previous file with comments | « ash/wm/toplevel_window_event_filter_unittest.cc ('k') | ui/aura/test/event_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698