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

Unified Diff: services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.h

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 side-by-side diff with in-line comments
Download patch
Index: services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.h
diff --git a/services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.h b/services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3d79df941a9ebb69345c59bf1bd66da0f41f84a
--- /dev/null
+++ b/services/resource_coordinator/coordination_unit/coordination_unit_impl_unittest_util.h
@@ -0,0 +1,37 @@
+// 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.
+
+#ifndef SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_IMPL_UNITTEST_UTIL_H_
+#define SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_IMPL_UNITTEST_UTIL_H_
+
+#include "base/message_loop/message_loop.h"
+#include "services/resource_coordinator/coordination_unit/coordination_unit_provider_impl.h"
+#include "services/service_manager/public/cpp/service_context_ref.h"
+#include "testing/gtest/include/gtest/gtest.h"
+
+namespace resource_coordinator {
+
+class CoordinationUnitImplTestBase : public testing::Test {
+ public:
+ CoordinationUnitImplTestBase();
+ ~CoordinationUnitImplTestBase() override;
+
+ // testing::Test:
+ void TearDown() override;
+
+ protected:
+ service_manager::ServiceContextRefFactory* service_context_ref_factory() {
+ return &service_ref_factory_;
+ }
+ CoordinationUnitProviderImpl* provider() { return &provider_; }
+
+ private:
+ base::MessageLoop message_loop_;
+ service_manager::ServiceContextRefFactory service_ref_factory_;
+ CoordinationUnitProviderImpl provider_;
+};
+
+} // namespace resource_coordinator
+
+#endif // SERVICES_RESOURCE_COORDINATOR_COORDINATION_UNIT_COORDINATION_UNIT_IMPL_UNITTEST_UTIL_H_

Powered by Google App Engine
This is Rietveld 408576698