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

Side by Side Diff: services/service_manager/tests/run_all_unittests.cc

Issue 2645973006: [Service Manager] Get rid of dynamic service discovery (Closed)
Patch Set: . Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "base/files/file_path.h"
6 #include "base/logging.h"
7 #include "base/message_loop/message_loop.h"
8 #include "base/test/launcher/unit_test_launcher.h"
9 #include "base/test/test_suite.h"
10 #include "base/threading/thread.h"
11 #include "mojo/edk/embedder/embedder.h"
12 #include "mojo/edk/embedder/scoped_ipc_support.h"
13 #include "services/catalog/catalog.h"
14
15 namespace {
16
17 const base::FilePath::CharType kCatalogFilename[] =
18 FILE_PATH_LITERAL("service_manager_unittests_catalog.json");
19
20 } // namespace
21
22 int main(int argc, char** argv) {
23 base::TestSuite test_suite(argc, argv);
24
25 catalog::Catalog::LoadDefaultCatalogManifest(
26 base::FilePath(kCatalogFilename));
27
28 mojo::edk::Init();
29 base::Thread ipc_thread("IPC thread");
30 ipc_thread.StartWithOptions(
31 base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
32 mojo::edk::ScopedIPCSupport ipc_support(
33 ipc_thread.task_runner(),
34 mojo::edk::ScopedIPCSupport::ShutdownPolicy::FAST);
35
36 return base::LaunchUnitTests(
37 argc, argv,
38 base::Bind(&base::TestSuite::Run, base::Unretained(&test_suite)));
39 }
OLDNEW
« no previous file with comments | « services/service_manager/tests/lifecycle/BUILD.gn ('k') | services/service_manager/tests/service_manager/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698