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

Unified Diff: services/resource_coordinator/coordination_unit/coordination_unit_impl_base_test_unittest.cc

Issue 2892443002: [GRC] Process Coordination Unit support for Global Resource Controller (Closed)
Patch Set: Remove unused headers and use forward declarations 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698