OLD | NEW |
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/cursor_factory_ozone.h" | 9 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" |
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 10 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 gfx::FileSurfaceFactory surface_factory_ozone_; | 57 gfx::FileSurfaceFactory surface_factory_ozone_; |
58 ui::EventFactoryEvdev event_factory_ozone_; | 58 ui::EventFactoryEvdev event_factory_ozone_; |
59 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; | 59 ui::InputMethodContextFactoryOzone input_method_context_factory_ozone_; |
60 ui::CursorFactoryOzone cursor_factory_ozone_; | 60 ui::CursorFactoryOzone cursor_factory_ozone_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest); | 62 DISALLOW_COPY_AND_ASSIGN(OzonePlatformTest); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace | 65 } // namespace |
66 | 66 |
67 OzonePlatform* CreateOzonePlatformTest() { | 67 OzonePlatform* CreateOzonePlatformTestForUI() { |
68 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 68 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
69 base::FilePath location = base::FilePath("/dev/null"); | 69 base::FilePath location = base::FilePath("/dev/null"); |
70 if (cmd->HasSwitch(switches::kOzoneDumpFile)) | 70 if (cmd->HasSwitch(switches::kOzoneDumpFile)) |
71 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); | 71 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); |
72 return new OzonePlatformTest(location); | 72 return new OzonePlatformTest(location); |
73 } | 73 } |
74 | 74 |
| 75 OzonePlatform* CreateOzonePlatformTestForGPU() { |
| 76 return NULL; |
| 77 } |
| 78 |
75 } // namespace ui | 79 } // namespace ui |
OLD | NEW |