| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "services/ui/ws/window_server_service_test_base.h" | 5 #include "services/ui/ws/window_server_service_test_base.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); | 43 base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess(); |
| 44 if (!cmd_line->HasSwitch(name)) | 44 if (!cmd_line->HasSwitch(name)) |
| 45 cmd_line->AppendSwitch(name); | 45 cmd_line->AppendSwitch(name); |
| 46 } | 46 } |
| 47 | 47 |
| 48 } // namespace | 48 } // namespace |
| 49 | 49 |
| 50 WindowServerServiceTestBase::WindowServerServiceTestBase() | 50 WindowServerServiceTestBase::WindowServerServiceTestBase() |
| 51 : ServiceTest(kTestAppName) { | 51 : ServiceTest(kTestAppName) { |
| 52 EnsureCommandLineSwitch(switches::kUseTestConfig); | 52 EnsureCommandLineSwitch(switches::kUseTestConfig); |
| 53 EnsureCommandLineSwitch(::switches::kOverrideUseGLWithOSMesaForTests); | 53 EnsureCommandLineSwitch(::switches::kOverrideUseSoftwareGLForTests); |
| 54 } | 54 } |
| 55 | 55 |
| 56 WindowServerServiceTestBase::~WindowServerServiceTestBase() {} | 56 WindowServerServiceTestBase::~WindowServerServiceTestBase() {} |
| 57 | 57 |
| 58 std::unique_ptr<service_manager::Service> | 58 std::unique_ptr<service_manager::Service> |
| 59 WindowServerServiceTestBase::CreateService() { | 59 WindowServerServiceTestBase::CreateService() { |
| 60 return base::MakeUnique<WindowServerServiceTestClient>(this); | 60 return base::MakeUnique<WindowServerServiceTestClient>(this); |
| 61 } | 61 } |
| 62 | 62 |
| 63 } // namespace ui | 63 } // namespace ui |
| OLD | NEW |