| Index: ash/autoclick/autoclick_unittest.cc
|
| diff --git a/ash/autoclick/autoclick_unittest.cc b/ash/autoclick/autoclick_unittest.cc
|
| index c0610a44b4886efc34445914b51a19108e51ed91..9c04670a0548fdcbc0cd50480bea26ed08d555a2 100644
|
| --- a/ash/autoclick/autoclick_unittest.cc
|
| +++ b/ash/autoclick/autoclick_unittest.cc
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "ash/autoclick/autoclick_controller.h"
|
| +#include "ash/display/display_manager.h"
|
| #include "ash/shell.h"
|
| #include "ash/test/ash_test_base.h"
|
| #include "ui/aura/test/test_window_delegate.h"
|
| @@ -66,6 +67,11 @@ class AutoclickTest : public test::AshTestBase {
|
|
|
| // Move mouse to deterministic location at the start of each test.
|
| GetEventGenerator().MoveMouseTo(100, 100);
|
| +
|
| + // Make sure the display is initialized so we don't fail the test due to any
|
| + // input events caused from creating the display.
|
| + Shell::GetInstance()->display_manager()->UpdateDisplays();
|
| + RunAllPendingInMessageLoop();
|
| }
|
|
|
| void TearDown() override {
|
|
|