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" |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
12 #include "services/service_manager/public/cpp/service.h" | 12 #include "services/service_manager/public/cpp/service.h" |
13 #include "services/service_manager/public/cpp/service_test.h" | 13 #include "services/service_manager/public/cpp/service_test.h" |
14 #include "services/ui/common/switches.h" | 14 #include "services/ui/common/switches.h" |
15 #include "ui/gl/gl_switches.h" | 15 #include "ui/gl/gl_switches.h" |
16 | 16 |
17 namespace ui { | 17 namespace ui { |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 const char kTestAppName[] = "ui_service_unittests_app"; | 21 const char kTestAppName[] = "ui_service_unittests"; |
22 | 22 |
23 class WindowServerServiceTestClient | 23 class WindowServerServiceTestClient |
24 : public service_manager::test::ServiceTestClient { | 24 : public service_manager::test::ServiceTestClient { |
25 public: | 25 public: |
26 explicit WindowServerServiceTestClient(WindowServerServiceTestBase* test) | 26 explicit WindowServerServiceTestClient(WindowServerServiceTestBase* test) |
27 : ServiceTestClient(test), test_(test) {} | 27 : ServiceTestClient(test), test_(test) {} |
28 ~WindowServerServiceTestClient() override {} | 28 ~WindowServerServiceTestClient() override {} |
29 | 29 |
30 private: | 30 private: |
31 // service_manager::test::ServiceTestClient: | 31 // service_manager::test::ServiceTestClient: |
(...skipping 24 matching lines...) Expand all Loading... |
56 } | 56 } |
57 | 57 |
58 WindowServerServiceTestBase::~WindowServerServiceTestBase() {} | 58 WindowServerServiceTestBase::~WindowServerServiceTestBase() {} |
59 | 59 |
60 std::unique_ptr<service_manager::Service> | 60 std::unique_ptr<service_manager::Service> |
61 WindowServerServiceTestBase::CreateService() { | 61 WindowServerServiceTestBase::CreateService() { |
62 return base::MakeUnique<WindowServerServiceTestClient>(this); | 62 return base::MakeUnique<WindowServerServiceTestClient>(this); |
63 } | 63 } |
64 | 64 |
65 } // namespace ui | 65 } // namespace ui |
OLD | NEW |