OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_IMPL_U
NITTEST_UTIL_H_ |
| 6 #define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_IMPL_U
NITTEST_UTIL_H_ |
| 7 |
| 8 #include "base/message_loop/message_loop.h" |
| 9 #include "services/resource_coordinator/coordination_unit/coordination_unit_prov
ider_impl.h" |
| 10 #include "services/service_manager/public/cpp/service_context_ref.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" |
| 12 |
| 13 namespace resource_coordinator { |
| 14 |
| 15 class CoordinationUnitImplTestBase : public testing::Test { |
| 16 public: |
| 17 CoordinationUnitImplTestBase(); |
| 18 ~CoordinationUnitImplTestBase() override; |
| 19 |
| 20 // testing::Test: |
| 21 void TearDown() override; |
| 22 |
| 23 protected: |
| 24 service_manager::ServiceContextRefFactory* service_context_ref_factory() { |
| 25 return &service_ref_factory_; |
| 26 } |
| 27 CoordinationUnitProviderImpl* provider() { return &provider_; } |
| 28 |
| 29 private: |
| 30 base::MessageLoop message_loop_; |
| 31 service_manager::ServiceContextRefFactory service_ref_factory_; |
| 32 CoordinationUnitProviderImpl provider_; |
| 33 }; |
| 34 |
| 35 } // namespace resource_coordinator |
| 36 |
| 37 #endif // SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_IMP
L_UNITTEST_UTIL_H_ |
OLD | NEW |