Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(745)

Unified Diff: ui/ozone/platform/test/ozone_platform_test.cc

Issue 377973005: ozone: test: Convert to PlatformWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_;

Powered by Google App Engine
This is Rietveld 408576698