summaryrefslogtreecommitdiffstats
path: root/ash/wm/window_modality_controller_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ash/wm/window_modality_controller_unittest.cc')
-rw-r--r--ash/wm/window_modality_controller_unittest.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/ash/wm/window_modality_controller_unittest.cc b/ash/wm/window_modality_controller_unittest.cc
index 5ec3005..c813ef6 100644
--- a/ash/wm/window_modality_controller_unittest.cc
+++ b/ash/wm/window_modality_controller_unittest.cc
@@ -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 @@ TEST_F(WindowModalityControllerTest, Events) {
{
// 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 @@ TEST_F(WindowModalityControllerTest, Events) {
{
// 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()));
}