| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_ | |
| 6 #define SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "services/service_manager/public/cpp/connection.h" | |
| 10 #include "services/service_manager/public/cpp/service_test.h" | |
| 11 | |
| 12 namespace ui { | |
| 13 | |
| 14 // Base class for all window manager ServiceTests to perform some common setup. | |
| 15 class WindowServerServiceTestBase : public service_manager::test::ServiceTest { | |
| 16 public: | |
| 17 WindowServerServiceTestBase(); | |
| 18 ~WindowServerServiceTestBase() override; | |
| 19 | |
| 20 virtual bool OnConnect(const service_manager::Identity& remote_identity, | |
| 21 service_manager::InterfaceRegistry* registry) = 0; | |
| 22 | |
| 23 private: | |
| 24 // service_manager::test::ServiceTest: | |
| 25 std::unique_ptr<service_manager::Service> CreateService() override; | |
| 26 | |
| 27 DISALLOW_COPY_AND_ASSIGN(WindowServerServiceTestBase); | |
| 28 }; | |
| 29 | |
| 30 } // namespace ui | |
| 31 | |
| 32 #endif // SERVICES_UI_PUBLIC_CPP_TESTS_WINDOW_SERVER_SHELLTEST_BASE_H_ | |
| OLD | NEW |