Index: ui/ozone/platform/test/ozone_platform_test.cc |
diff --git a/ui/ozone/platform/test/ozone_platform_test.cc b/ui/ozone/platform/test/ozone_platform_test.cc |
index 4e6a19fb0e35aa94756921738202ca133d462426..f4550febd2fd627cb2fcbb0cfd456080790ae3ad 100644 |
--- a/ui/ozone/platform/test/ozone_platform_test.cc |
+++ b/ui/ozone/platform/test/ozone_platform_test.cc |
@@ -7,6 +7,8 @@ |
#include "base/command_line.h" |
#include "base/files/file_path.h" |
#include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" |
+#include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" |
+#include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h" |
#include "ui/events/platform/platform_event_source.h" |
#include "ui/ozone/common/native_display_delegate_ozone.h" |
#include "ui/ozone/platform/test/test_window.h" |
@@ -62,6 +64,8 @@ class OzonePlatformTest : public OzonePlatform { |
// This unbreaks tests that create their own. |
if (!PlatformEventSource::GetInstance()) |
platform_event_source_ = PlatformEventSource::CreateDefault(); |
+ KeyboardLayoutEngineManager::SetKeyboardLayoutEngine( |
+ make_scoped_ptr(new StubKeyboardLayoutEngine())); |
cursor_factory_ozone_.reset(new BitmapCursorFactoryOzone); |
gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); |