OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "services/test_service/test_service_application.h" | 5 #include "services/test_service/test_service_application.h" |
6 | 6 |
7 #include <assert.h> | 7 #include <assert.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "mojo/public/c/system/main.h" | 11 #include "mojo/public/c/system/main.h" |
12 #include "mojo/public/cpp/application/application_connection.h" | |
13 #include "mojo/public/cpp/application/application_runner.h" | 12 #include "mojo/public/cpp/application/application_runner.h" |
| 13 #include "mojo/public/cpp/application/service_provider_impl.h" |
14 #include "mojo/public/cpp/utility/run_loop.h" | 14 #include "mojo/public/cpp/utility/run_loop.h" |
15 #include "services/test_service/test_service_impl.h" | 15 #include "services/test_service/test_service_impl.h" |
16 #include "services/test_service/test_time_service_impl.h" | 16 #include "services/test_service/test_time_service_impl.h" |
17 | 17 |
18 namespace mojo { | 18 namespace mojo { |
19 namespace test { | 19 namespace test { |
20 | 20 |
21 TestServiceApplication::TestServiceApplication() | 21 TestServiceApplication::TestServiceApplication() |
22 : ref_count_(0), app_impl_(nullptr) {} | 22 : ref_count_(0), app_impl_(nullptr) {} |
23 | 23 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 } // namespace test | 58 } // namespace test |
59 } // namespace mojo | 59 } // namespace mojo |
60 | 60 |
61 MojoResult MojoMain(MojoHandle application_request) { | 61 MojoResult MojoMain(MojoHandle application_request) { |
62 mojo::ApplicationRunner runner( | 62 mojo::ApplicationRunner runner( |
63 std::unique_ptr<mojo::test::TestServiceApplication>( | 63 std::unique_ptr<mojo::test::TestServiceApplication>( |
64 new mojo::test::TestServiceApplication())); | 64 new mojo::test::TestServiceApplication())); |
65 return runner.Run(application_request); | 65 return runner.Run(application_request); |
66 } | 66 } |
OLD | NEW |