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 <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/at_exit.h" | 9 #include "base/at_exit.h" |
10 #include "base/base_paths.h" | 10 #include "base/base_paths.h" |
11 #include "base/base_switches.h" | 11 #include "base/base_switches.h" |
12 #include "base/bind.h" | 12 #include "base/bind.h" |
13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.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/thread_task_runner_handle.h" | 20 #include "base/thread_task_runner_handle.h" |
21 #include "mojo/application/public/cpp/application_connection.h" | |
22 #include "mojo/application/public/cpp/application_delegate.h" | |
23 #include "mojo/application/public/cpp/application_impl.h" | |
24 #include "mojo/application/public/cpp/interface_factory.h" | |
25 #include "mojo/application/public/interfaces/application_manager.mojom.h" | |
26 #include "mojo/common/weak_binding_set.h" | 21 #include "mojo/common/weak_binding_set.h" |
27 #include "mojo/converters/network/network_type_converters.h" | 22 #include "mojo/converters/network/network_type_converters.h" |
28 #include "mojo/edk/embedder/embedder.h" | 23 #include "mojo/edk/embedder/embedder.h" |
29 #include "mojo/edk/embedder/platform_channel_pair.h" | 24 #include "mojo/edk/embedder/platform_channel_pair.h" |
30 #include "mojo/runner/child/test_native_main.h" | 25 #include "mojo/runner/child/test_native_main.h" |
31 #include "mojo/runner/init.h" | 26 #include "mojo/runner/init.h" |
32 #include "mojo/shell/application_manager_apptests.mojom.h" | 27 #include "mojo/shell/application_manager_apptests.mojom.h" |
| 28 #include "mojo/shell/public/cpp/application_connection.h" |
| 29 #include "mojo/shell/public/cpp/application_delegate.h" |
| 30 #include "mojo/shell/public/cpp/application_impl.h" |
| 31 #include "mojo/shell/public/cpp/interface_factory.h" |
| 32 #include "mojo/shell/public/interfaces/application_manager.mojom.h" |
33 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" | 33 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" |
34 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" | 34 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" |
35 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" | 35 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" |
36 | 36 |
37 using mojo::shell::test::mojom::Driver; | 37 using mojo::shell::test::mojom::Driver; |
38 | 38 |
39 namespace { | 39 namespace { |
40 | 40 |
41 class TargetApplicationDelegate : public mojo::ApplicationDelegate, | 41 class TargetApplicationDelegate : public mojo::ApplicationDelegate, |
42 public mojo::InterfaceFactory<Driver>, | 42 public mojo::InterfaceFactory<Driver>, |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
168 | 168 |
169 int main(int argc, char** argv) { | 169 int main(int argc, char** argv) { |
170 base::AtExitManager at_exit; | 170 base::AtExitManager at_exit; |
171 base::CommandLine::Init(argc, argv); | 171 base::CommandLine::Init(argc, argv); |
172 | 172 |
173 mojo::runner::InitializeLogging(); | 173 mojo::runner::InitializeLogging(); |
174 | 174 |
175 TargetApplicationDelegate delegate; | 175 TargetApplicationDelegate delegate; |
176 return mojo::runner::TestNativeMain(&delegate); | 176 return mojo::runner::TestNativeMain(&delegate); |
177 } | 177 } |
OLD | NEW |