| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_ | 5 #ifndef SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_ |
| 6 #define SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_ | 6 #define SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/threading/thread.h" |
| 9 #include "services/service_manager/public/cpp/service_test.h" | 10 #include "services/service_manager/public/cpp/service_test.h" |
| 10 | 11 |
| 11 namespace device { | 12 namespace device { |
| 12 | 13 |
| 13 // Base class responsible to setup Device Service for test. | 14 // Base class responsible to setup Device Service for test. |
| 14 class DeviceServiceTestBase : public service_manager::test::ServiceTest { | 15 class DeviceServiceTestBase : public service_manager::test::ServiceTest { |
| 15 public: | 16 public: |
| 16 DeviceServiceTestBase(); | 17 DeviceServiceTestBase(); |
| 17 ~DeviceServiceTestBase() override; | 18 ~DeviceServiceTestBase() override; |
| 18 | 19 |
| 19 private: | 20 private: |
| 20 // service_manager::test::ServiceTest: | 21 // service_manager::test::ServiceTest: |
| 21 std::unique_ptr<service_manager::Service> CreateService() override; | 22 std::unique_ptr<service_manager::Service> CreateService() override; |
| 22 | 23 |
| 24 base::Thread io_thread_; |
| 25 |
| 23 DISALLOW_COPY_AND_ASSIGN(DeviceServiceTestBase); | 26 DISALLOW_COPY_AND_ASSIGN(DeviceServiceTestBase); |
| 24 }; | 27 }; |
| 25 | 28 |
| 26 } // namespace device | 29 } // namespace device |
| 27 | 30 |
| 28 #endif // SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_ | 31 #endif // SERVICES_DEVICE_DEVICE_SERVICE_TEST_BASE_H_ |
| OLD | NEW |