| Index: ui/views/controls/menu/menu_controller_unittest.cc
|
| diff --git a/ui/views/controls/menu/menu_controller_unittest.cc b/ui/views/controls/menu/menu_controller_unittest.cc
|
| index 1c98f95bc9c10cfe26db53c654787ff9c35900a3..95fd669b9ebeebc8048fe8bbcc066f39bac0a548 100644
|
| --- a/ui/views/controls/menu/menu_controller_unittest.cc
|
| +++ b/ui/views/controls/menu/menu_controller_unittest.cc
|
| @@ -20,6 +20,7 @@
|
| #undef Bool
|
| #undef None
|
| #include "ui/events/test/events_test_utils_x11.h"
|
| +#include "ui/events/x/device_data_manager_x11.h"
|
| #elif defined(USE_OZONE)
|
| #include "ui/events/event.h"
|
| #endif
|
| @@ -39,7 +40,11 @@ class TestMenuItemView : public MenuItemView {
|
|
|
| class TestPlatformEventSource : public ui::PlatformEventSource {
|
| public:
|
| - TestPlatformEventSource() {}
|
| + TestPlatformEventSource() {
|
| +#if defined(USE_X11)
|
| + ui::DeviceDataManagerX11::CreateInstance();
|
| +#endif
|
| + }
|
| virtual ~TestPlatformEventSource() {}
|
|
|
| uint32_t Dispatch(const ui::PlatformEvent& event) {
|
|
|