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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" |
9 #include "mojo/application/public/cpp/application_connection.h" | 10 #include "mojo/application/public/cpp/application_connection.h" |
10 #include "mojo/application/public/cpp/application_delegate.h" | 11 #include "mojo/application/public/cpp/application_delegate.h" |
11 #include "mojo/application/public/cpp/application_impl.h" | 12 #include "mojo/application/public/cpp/application_impl.h" |
12 #include "mojo/application/public/cpp/interface_factory.h" | 13 #include "mojo/application/public/cpp/interface_factory.h" |
13 #include "mojo/common/weak_binding_set.h" | 14 #include "mojo/common/weak_binding_set.h" |
14 #include "mojo/runner/child/test_native_main.h" | 15 #include "mojo/runner/child/test_native_main.h" |
15 #include "mojo/runner/child/test_native_service.mojom.h" | 16 #include "mojo/runner/child/test_native_service.mojom.h" |
16 #include "mojo/runner/init.h" | 17 #include "mojo/runner/init.h" |
17 | 18 |
18 namespace { | 19 namespace { |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 56 |
56 int main(int argc, char** argv) { | 57 int main(int argc, char** argv) { |
57 base::AtExitManager at_exit; | 58 base::AtExitManager at_exit; |
58 base::CommandLine::Init(argc, argv); | 59 base::CommandLine::Init(argc, argv); |
59 | 60 |
60 mojo::runner::InitializeLogging(); | 61 mojo::runner::InitializeLogging(); |
61 | 62 |
62 TargetApplicationDelegate delegate; | 63 TargetApplicationDelegate delegate; |
63 return mojo::runner::TestNativeMain(&delegate); | 64 return mojo::runner::TestNativeMain(&delegate); |
64 } | 65 } |
OLD | NEW |