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 #include "services/resource_coordinator/coordination_unit/coordination_unit_impl
_unittest_util.h" | |
6 | |
7 #include "base/bind.h" | |
8 #include "base/run_loop.h" | |
9 | |
10 namespace resource_coordinator { | |
11 | |
12 namespace { | |
13 | |
14 void OnLastServiceRefDestroyed() { | |
15 // No-op. This is required by service_manager::ServiceContextRefFactory | |
16 // construction but not needed for the tests. | |
17 } | |
18 | |
19 } // namespace | |
20 | |
21 CoordinationUnitImplTestBase::CoordinationUnitImplTestBase() | |
22 : service_ref_factory_(base::Bind(&OnLastServiceRefDestroyed)), | |
23 provider_(&service_ref_factory_) {} | |
24 | |
25 CoordinationUnitImplTestBase::~CoordinationUnitImplTestBase() = default; | |
26 | |
27 void CoordinationUnitImplTestBase::TearDown() { | |
28 base::RunLoop().RunUntilIdle(); | |
29 } | |
30 | |
31 } // namespace resource_coordinator | |
OLD | NEW |