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

Unified Diff: ash/wm/activation_controller_unittest.cc

Issue 11691010: Support multiple displays in EventGenerator (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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
Index: ash/wm/activation_controller_unittest.cc
diff --git a/ash/wm/activation_controller_unittest.cc b/ash/wm/activation_controller_unittest.cc
index 807c82f60d88d49a7694ccf5b93179cc46677054..7c9ba0a2674f15687b93ac078d7a39742d3f3895 100644
--- a/ash/wm/activation_controller_unittest.cc
+++ b/ash/wm/activation_controller_unittest.cc
@@ -208,7 +208,8 @@ TEST_F(ActivationControllerTest, ClickOnMenu) {
EXPECT_EQ(NULL, wm::GetActiveWindow());
// Clicking on an activatable window activates the window.
- aura::test::EventGenerator generator(Shell::GetPrimaryRootWindow(), w1.get());
+ aura::test::EventGenerator& generator(GetEventGenerator());
+ generator.MoveMouseToCenterOf(w1.get());
generator.ClickLeftButton();
EXPECT_TRUE(wm::IsActiveWindow(w1.get()));

Powered by Google App Engine
This is Rietveld 408576698