OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdint.h> | 5 #include <stdint.h> |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/at_exit.h" | 10 #include "base/at_exit.h" |
11 #include "base/base_paths.h" | 11 #include "base/base_paths.h" |
12 #include "base/base_switches.h" | 12 #include "base/base_switches.h" |
13 #include "base/bind.h" | 13 #include "base/bind.h" |
14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
19 #include "base/process/process.h" | 19 #include "base/process/process.h" |
20 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "mojo/edk/embedder/embedder.h" | 21 #include "mojo/edk/embedder/embedder.h" |
22 #include "mojo/edk/embedder/platform_channel_pair.h" | 22 #include "mojo/edk/embedder/platform_channel_pair.h" |
23 #include "mojo/edk/embedder/scoped_platform_handle.h" | 23 #include "mojo/edk/embedder/scoped_platform_handle.h" |
24 #include "mojo/public/cpp/bindings/binding_set.h" | 24 #include "mojo/public/cpp/bindings/binding_set.h" |
25 #include "services/shell/public/cpp/connection.h" | 25 #include "services/service_manager/public/cpp/connection.h" |
26 #include "services/shell/public/cpp/connector.h" | 26 #include "services/service_manager/public/cpp/connector.h" |
27 #include "services/shell/public/cpp/interface_factory.h" | 27 #include "services/service_manager/public/cpp/interface_factory.h" |
28 #include "services/shell/public/cpp/service.h" | 28 #include "services/service_manager/public/cpp/service.h" |
29 #include "services/shell/public/interfaces/connector.mojom.h" | 29 #include "services/service_manager/public/interfaces/connector.mojom.h" |
30 #include "services/shell/public/interfaces/service_manager.mojom.h" | 30 #include "services/service_manager/public/interfaces/service_manager.mojom.h" |
31 #include "services/shell/runner/child/test_native_main.h" | 31 #include "services/service_manager/runner/child/test_native_main.h" |
32 #include "services/shell/runner/common/client_util.h" | 32 #include "services/service_manager/runner/common/client_util.h" |
33 #include "services/shell/runner/common/switches.h" | 33 #include "services/service_manager/runner/common/switches.h" |
34 #include "services/shell/runner/init.h" | 34 #include "services/service_manager/runner/init.h" |
35 #include "services/shell/tests/shell/shell_unittest.mojom.h" | 35 #include "services/service_manager/tests/shell/shell_unittest.mojom.h" |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
39 class Driver : public shell::Service, | 39 class Driver : public shell::Service, |
40 public shell::InterfaceFactory<shell::test::mojom::Driver>, | 40 public shell::InterfaceFactory<shell::test::mojom::Driver>, |
41 public shell::test::mojom::Driver { | 41 public shell::test::mojom::Driver { |
42 public: | 42 public: |
43 Driver() : weak_factory_(this) {} | 43 Driver() : weak_factory_(this) {} |
44 ~Driver() override {} | 44 ~Driver() override {} |
45 | 45 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 | 132 |
133 int main(int argc, char** argv) { | 133 int main(int argc, char** argv) { |
134 base::AtExitManager at_exit; | 134 base::AtExitManager at_exit; |
135 base::CommandLine::Init(argc, argv); | 135 base::CommandLine::Init(argc, argv); |
136 | 136 |
137 shell::InitializeLogging(); | 137 shell::InitializeLogging(); |
138 | 138 |
139 Driver driver; | 139 Driver driver; |
140 return shell::TestNativeMain(&driver); | 140 return shell::TestNativeMain(&driver); |
141 } | 141 } |
OLD | NEW |