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

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

Issue 291473002: ozone: Initialize a subsystem only if necessary. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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/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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698