| 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 "mojo/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 "mojo/public/c/system/main.h" | 9 #include "mojo/public/c/system/main.h" |
| 10 #include "mojo/public/cpp/application/application_connection.h" | 10 #include "mojo/public/cpp/application/application_connection.h" |
| 11 #include "mojo/public/cpp/application/application_runner.h" | 11 #include "mojo/public/cpp/application/application_runner.h" |
| 12 #include "mojo/public/cpp/utility/run_loop.h" | 12 #include "mojo/public/cpp/utility/run_loop.h" |
| 13 #include "mojo/services/test_service/test_service_impl.h" | 13 #include "services/test_service/test_service_impl.h" |
| 14 #include "mojo/services/test_service/test_time_service_impl.h" | 14 #include "services/test_service/test_time_service_impl.h" |
| 15 | 15 |
| 16 namespace mojo { | 16 namespace mojo { |
| 17 namespace test { | 17 namespace test { |
| 18 | 18 |
| 19 TestServiceApplication::TestServiceApplication() : ref_count_(0) { | 19 TestServiceApplication::TestServiceApplication() : ref_count_(0) { |
| 20 } | 20 } |
| 21 | 21 |
| 22 TestServiceApplication::~TestServiceApplication() { | 22 TestServiceApplication::~TestServiceApplication() { |
| 23 } | 23 } |
| 24 | 24 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 52 RunLoop::current()->Quit(); | 52 RunLoop::current()->Quit(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 } // namespace test | 55 } // namespace test |
| 56 } // namespace mojo | 56 } // namespace mojo |
| 57 | 57 |
| 58 MojoResult MojoMain(MojoHandle shell_handle) { | 58 MojoResult MojoMain(MojoHandle shell_handle) { |
| 59 mojo::ApplicationRunner runner(new mojo::test::TestServiceApplication); | 59 mojo::ApplicationRunner runner(new mojo::test::TestServiceApplication); |
| 60 return runner.Run(shell_handle); | 60 return runner.Run(shell_handle); |
| 61 } | 61 } |
| OLD | NEW |