| 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_
|
|
|