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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/macros.h" |
7 #include "mojo/application/public/cpp/application_connection.h" | 8 #include "mojo/application/public/cpp/application_connection.h" |
8 #include "mojo/application/public/cpp/application_delegate.h" | 9 #include "mojo/application/public/cpp/application_delegate.h" |
9 #include "mojo/application/public/cpp/application_impl.h" | 10 #include "mojo/application/public/cpp/application_impl.h" |
10 #include "mojo/runner/child/test_native_main.h" | 11 #include "mojo/runner/child/test_native_main.h" |
11 #include "mojo/runner/init.h" | 12 #include "mojo/runner/init.h" |
12 #include "mojo/shell/application_manager_apptests.mojom.h" | 13 #include "mojo/shell/application_manager_apptests.mojom.h" |
13 | 14 |
14 using mojo::shell::test::mojom::CreateInstanceForHandleTestPtr; | 15 using mojo::shell::test::mojom::CreateInstanceForHandleTestPtr; |
15 | 16 |
16 namespace { | 17 namespace { |
(...skipping 22 matching lines...) Expand all Loading... |
39 | 40 |
40 int main(int argc, char** argv) { | 41 int main(int argc, char** argv) { |
41 base::AtExitManager at_exit; | 42 base::AtExitManager at_exit; |
42 base::CommandLine::Init(argc, argv); | 43 base::CommandLine::Init(argc, argv); |
43 | 44 |
44 mojo::runner::InitializeLogging(); | 45 mojo::runner::InitializeLogging(); |
45 | 46 |
46 TargetApplicationDelegate delegate; | 47 TargetApplicationDelegate delegate; |
47 return mojo::runner::TestNativeMain(&delegate); | 48 return mojo::runner::TestNativeMain(&delegate); |
48 } | 49 } |
OLD | NEW |