Chromium Code Reviews| 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_BASE_T EST_UNITTEST_H_ | |
|
oystein (OOO til 10th of July)
2017/05/17 23:06:06
The name is a little confusing; maybe coordination
matthalp
2017/05/18 16:13:45
Done.
| |
| 6 #define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_BASE_T EST_UNITTEST_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 CoordinationUnitImplBaseTest : public testing::Test { | |
|
oystein (OOO til 10th of July)
2017/05/17 23:06:06
bikeshedding naming nit: CoordinationUnitImplTestB
matthalp
2017/05/18 16:13:45
Done.
| |
| 16 public: | |
| 17 CoordinationUnitImplBaseTest(); | |
| 18 ~CoordinationUnitImplBaseTest() override {} | |
|
oystein (OOO til 10th of July)
2017/05/17 23:06:06
put the destructor body in the .cc, since it's a n
matthalp
2017/05/18 16:13:45
Done.
| |
| 19 | |
| 20 // testing::Test: | |
| 21 void TearDown() override; | |
| 22 | |
| 23 protected: | |
| 24 service_manager::ServiceContextRefFactory* ServiceContextRefFactory() { | |
|
oystein (OOO til 10th of July)
2017/05/17 23:06:06
service_context_ref_factory() since it's a simple
matthalp
2017/05/18 16:13:45
Done.
| |
| 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_BAS E_TEST_UNITTEST_H_ | |
| OLD | NEW |