OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "mojo/public/cpp/application/application.h" |
| 6 #include "mojo/public/cpp/system/macros.h" |
| 7 #include "mojo/services/test_service/test_service_impl.h" |
| 8 |
| 9 namespace mojo { |
| 10 namespace test { |
| 11 namespace { |
| 12 |
| 13 class TestServiceApplication : public Application { |
| 14 public: |
| 15 TestServiceApplication() {} |
| 16 virtual ~TestServiceApplication() {} |
| 17 |
| 18 virtual void Initialize() MOJO_OVERRIDE { |
| 19 AddService<TestServiceImpl>(); |
| 20 } |
| 21 |
| 22 private: |
| 23 MOJO_DISALLOW_COPY_AND_ASSIGN(TestServiceApplication); |
| 24 }; |
| 25 |
| 26 } // namespace |
| 27 } // namespace test |
| 28 |
| 29 // static |
| 30 Application* Application::Create() { |
| 31 return new mojo::test::TestServiceApplication(); |
| 32 } |
| 33 |
| 34 } // namespace mojo |
OLD | NEW |