Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.cc

Issue 2892443002: [GRC] Process Coordination Unit support for Global Resource Controller (Closed)
Patch Set: Rebase Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698