| 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/ozone/ozone_platform.h" | 9 #include "ui/ozone/ozone_platform.h" |
| 10 #include "ui/ozone/ozone_switches.h" | 10 #include "ui/ozone/ozone_switches.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 ui::EventFactoryOzone* OzonePlatformTest::GetEventFactoryOzone() { | 23 ui::EventFactoryOzone* OzonePlatformTest::GetEventFactoryOzone() { |
| 24 return &event_factory_ozone_; | 24 return &event_factory_ozone_; |
| 25 } | 25 } |
| 26 | 26 |
| 27 ui::InputMethodContextFactoryOzone* | 27 ui::InputMethodContextFactoryOzone* |
| 28 OzonePlatformTest::GetInputMethodContextFactoryOzone() { | 28 OzonePlatformTest::GetInputMethodContextFactoryOzone() { |
| 29 return &input_method_context_factory_ozone_; | 29 return &input_method_context_factory_ozone_; |
| 30 } | 30 } |
| 31 | 31 |
| 32 gfx::OverlayHALOzone* OzonePlatformTest::GetOverlayHALOzone() { |
| 33 return NULL; |
| 34 } |
| 35 |
| 32 OzonePlatform* CreateOzonePlatformTest() { | 36 OzonePlatform* CreateOzonePlatformTest() { |
| 33 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 37 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
| 34 base::FilePath location = base::FilePath("/dev/null"); | 38 base::FilePath location = base::FilePath("/dev/null"); |
| 35 if (cmd->HasSwitch(switches::kOzoneDumpFile)) | 39 if (cmd->HasSwitch(switches::kOzoneDumpFile)) |
| 36 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); | 40 location = cmd->GetSwitchValuePath(switches::kOzoneDumpFile); |
| 37 return new OzonePlatformTest(location); | 41 return new OzonePlatformTest(location); |
| 38 } | 42 } |
| 39 | 43 |
| 40 } // namespace ui | 44 } // namespace ui |
| OLD | NEW |