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

Unified Diff: services/service_manager/public/cpp/test/common_initialization.h

Issue 2897123004: Move display_service_unittests to services_unittests. (Closed)
Patch Set: services -> service_manager 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/service_manager/public/cpp/test/common_initialization.h
diff --git a/services/service_manager/public/cpp/test/common_initialization.h b/services/service_manager/public/cpp/test/common_initialization.h
new file mode 100644
index 0000000000000000000000000000000000000000..2549226e4caa2ba7ff397bf82a4c6cab31ed043c
--- /dev/null
+++ b/services/service_manager/public/cpp/test/common_initialization.h
@@ -0,0 +1,23 @@
+// 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_SERVICE_MANAGER_PUBLIC_CPP_TEST_COMMON_INITIALIZATION_H_
+#define SERVICES_SERVICE_MANAGER_PUBLIC_CPP_TEST_COMMON_INITIALIZATION_H_
+
+#include "base/test/launcher/unit_test_launcher.h"
+
+namespace service_manager {
+
+// Does common mojo edk/catalog initialization that needs to happen in all
+// service tests. This method exists so that different test runners can use
+// different base::TestSuite instances, but still use the common mojo
+// initialization.
+int InitializeAndLaunchUnitTests(
+ int argc,
+ char** argv,
+ const base::RunTestSuiteCallback& run_test_suite);
+
+} // namespace service_manager
+
+#endif // SERVICES_SERVICE_MANAGER_PUBLIC_CPP_TEST_COMMON_INITIALIZATION_H_
« no previous file with comments | « services/service_manager/public/cpp/test/BUILD.gn ('k') | services/service_manager/public/cpp/test/common_initialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698