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

Side by Side Diff: ui/ozone/platform/test/ozone_platform_test.cc

Issue 1128113011: ozone: Introduce ClientPixmap and ClientPixmapFactory for non-GPU processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: separate VGEM part to another CL Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/ozone/platform/test/ozone_platform_test.h" 5 #include "ui/ozone/platform/test/ozone_platform_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h" 9 #include "ui/base/cursor/ozone/bitmap_cursor_factory_ozone.h"
10 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h" 10 #include "ui/events/ozone/layout/keyboard_layout_engine_manager.h"
11 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h" 11 #include "ui/events/ozone/layout/stub/stub_keyboard_layout_engine.h"
12 #include "ui/events/platform/platform_event_source.h" 12 #include "ui/events/platform/platform_event_source.h"
13 #include "ui/ozone/common/native_display_delegate_ozone.h" 13 #include "ui/ozone/common/native_display_delegate_ozone.h"
14 #include "ui/ozone/common/stub_overlay_manager.h" 14 #include "ui/ozone/common/stub_overlay_manager.h"
15 #include "ui/ozone/platform/test/test_window.h" 15 #include "ui/ozone/platform/test/test_window.h"
16 #include "ui/ozone/platform/test/test_window_manager.h" 16 #include "ui/ozone/platform/test/test_window_manager.h"
17 #include "ui/ozone/public/cursor_factory_ozone.h" 17 #include "ui/ozone/public/cursor_factory_ozone.h"
18 #include "ui/ozone/public/gpu_platform_support.h" 18 #include "ui/ozone/public/gpu_platform_support.h"
19 #include "ui/ozone/public/gpu_platform_support_host.h" 19 #include "ui/ozone/public/gpu_platform_support_host.h"
20 #include "ui/ozone/public/input_controller.h" 20 #include "ui/ozone/public/input_controller.h"
21 #include "ui/ozone/public/native_pixmap_manager.h"
21 #include "ui/ozone/public/ozone_platform.h" 22 #include "ui/ozone/public/ozone_platform.h"
22 #include "ui/ozone/public/ozone_switches.h" 23 #include "ui/ozone/public/ozone_switches.h"
23 #include "ui/ozone/public/system_input_injector.h" 24 #include "ui/ozone/public/system_input_injector.h"
24 25
25 namespace ui { 26 namespace ui {
26 27
27 namespace { 28 namespace {
28 29
29 // A test implementation of PlatformEventSource that we can instantiate to make 30 // A test implementation of PlatformEventSource that we can instantiate to make
30 // sure that the PlatformEventSource has an instance while in unit tests. 31 // sure that the PlatformEventSource has an instance while in unit tests.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 } // namespace 113 } // namespace
113 114
114 OzonePlatform* CreateOzonePlatformTest() { 115 OzonePlatform* CreateOzonePlatformTest() {
115 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess(); 116 base::CommandLine* cmd = base::CommandLine::ForCurrentProcess();
116 base::FilePath location; 117 base::FilePath location;
117 if (cmd->HasSwitch(switches::kOzoneDumpFile)) 118 if (cmd->HasSwitch(switches::kOzoneDumpFile))
118 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); 119 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile);
119 return new OzonePlatformTest(location); 120 return new OzonePlatformTest(location);
120 } 121 }
121 122
123 NativePixmapManager* CreateNativePixmapManagerTest() {
124 return CreateStubNativePixmapManager();
reveman 2015/07/22 16:59:55 add test implementation like OzonePlatform instead
dshwang 2015/07/23 14:02:28 Done.
125 }
126
122 } // namespace ui 127 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698