| 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 58197caa9a917cd9db5f0bc8955b28a13dc43e2e..86fbed9f4701b53d43ae049684a4cf66e7f72408 100644
|
| --- a/ui/ozone/platform/test/ozone_platform_test.cc
|
| +++ b/ui/ozone/platform/test/ozone_platform_test.cc
|
| @@ -9,8 +9,9 @@
|
| #include "ui/events/ozone/device/device_manager.h"
|
| #include "ui/events/ozone/evdev/event_factory_evdev.h"
|
| #include "ui/ozone/common/platform_window_base.h"
|
| -#include "ui/ozone/platform/test/file_surface_factory.h"
|
| #include "ui/ozone/platform/test/test_cursor_factory.h"
|
| +#include "ui/ozone/platform/test/test_window_manager.h"
|
| +#include "ui/ozone/public/cursor_factory_ozone.h"
|
| #include "ui/ozone/public/gpu_platform_support.h"
|
| #include "ui/ozone/public/gpu_platform_support_host.h"
|
| #include "ui/ozone/public/ozone_platform.h"
|
| @@ -35,7 +36,7 @@ class OzonePlatformTest : public OzonePlatform {
|
|
|
| // OzonePlatform:
|
| virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE {
|
| - return surface_factory_ozone_.get();
|
| + return window_manager_.get();
|
| }
|
| virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE {
|
| return event_factory_ozone_.get();
|
| @@ -53,7 +54,7 @@ class OzonePlatformTest : public OzonePlatform {
|
| PlatformWindowDelegate* delegate,
|
| const gfx::Rect& bounds) OVERRIDE {
|
| return make_scoped_ptr<PlatformWindow>(
|
| - new PlatformWindowCompat(delegate, bounds));
|
| + new TestWindow(delegate, window_manager_.get(), bounds));
|
| }
|
|
|
| #if defined(OS_CHROMEOS)
|
| @@ -70,7 +71,7 @@ class OzonePlatformTest : public OzonePlatform {
|
|
|
| virtual void InitializeUI() OVERRIDE {
|
| device_manager_ = CreateDeviceManager();
|
| - surface_factory_ozone_.reset(new FileSurfaceFactory(file_path_));
|
| + window_manager_.reset(new TestWindowManager(file_path_));
|
| event_factory_ozone_.reset(
|
| new EventFactoryEvdev(NULL, device_manager_.get()));
|
| cursor_factory_ozone_.reset(new TestCursorFactory());
|
| @@ -83,7 +84,7 @@ class OzonePlatformTest : public OzonePlatform {
|
|
|
| private:
|
| scoped_ptr<DeviceManager> device_manager_;
|
| - scoped_ptr<FileSurfaceFactory> surface_factory_ozone_;
|
| + scoped_ptr<TestWindowManager> window_manager_;
|
| scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
|
| scoped_ptr<CursorFactoryOzone> cursor_factory_ozone_;
|
| scoped_ptr<GpuPlatformSupport> gpu_platform_support_;
|
|
|