Index: services/resource_coordinator/coordination_unit/coordination_unit_impl_base_test_unittest.cc |
diff --git a/services/resource_coordinator/coordination_unit/coordination_unit_impl_base_test_unittest.cc b/services/resource_coordinator/coordination_unit/coordination_unit_impl_base_test_unittest.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..5f9a64fc60e7da2737480eea6d29857a50935055 |
--- /dev/null |
+++ b/services/resource_coordinator/coordination_unit/coordination_unit_impl_base_test_unittest.cc |
@@ -0,0 +1,29 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "services/resource_coordinator/coordination_unit/coordination_unit_impl_base_test_unittest.h" |
+ |
+#include "base/bind.h" |
+#include "base/run_loop.h" |
+ |
+namespace resource_coordinator { |
+ |
+namespace { |
+ |
+void OnLastServiceRefDestroyed() { |
+ // No-op. This is required by service_manager::ServiceContextRefFactory |
+ // construction but not needed for the tests. |
+} |
+ |
+} // namespace |
+ |
+CoordinationUnitImplBaseTest::CoordinationUnitImplBaseTest() |
+ : service_ref_factory_(base::Bind(&OnLastServiceRefDestroyed)), |
+ provider_(&service_ref_factory_) {} |
+ |
+void CoordinationUnitImplBaseTest::TearDown() { |
+ base::RunLoop().RunUntilIdle(); |
+} |
+ |
+} // namespace resource_coordinator |