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

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: add dcheck 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
« no previous file with comments | « ui/ozone/platform/test/file_surface_factory.cc ('k') | ui/ozone/platform/test/test.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f42d1f9d78fab411bce617eb198bad5b74bc28e..b3bc37a2c0bd97521aaab0ddeea766ae4874cea0 100644
--- a/ui/ozone/platform/test/ozone_platform_test.cc
+++ b/ui/ozone/platform/test/ozone_platform_test.cc
@@ -8,9 +8,10 @@
#include "base/files/file_path.h"
#include "ui/events/ozone/device/device_manager.h"
#include "ui/events/ozone/evdev/event_factory_evdev.h"
-#include "ui/ozone/common/window/platform_window_compat.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.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,8 @@ 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_));
+ window_manager_->Initialize();
event_factory_ozone_.reset(
new EventFactoryEvdev(NULL, device_manager_.get()));
cursor_factory_ozone_.reset(new TestCursorFactory());
@@ -83,7 +85,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_;
« no previous file with comments | « ui/ozone/platform/test/file_surface_factory.cc ('k') | ui/ozone/platform/test/test.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698