| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/public/c/system/main.h" | 5 #include "mojo/public/c/system/main.h" |
| 6 #include "mojo/public/cpp/bindings/binding_set.h" | 6 #include "mojo/public/cpp/bindings/binding_set.h" |
| 7 #include "mojo/shell/background/tests/test.mojom.h" | 7 #include "services/shell/background/tests/test.mojom.h" |
| 8 #include "mojo/shell/public/cpp/application_runner.h" | 8 #include "services/shell/public/cpp/application_runner.h" |
| 9 #include "mojo/shell/public/cpp/connection.h" | 9 #include "services/shell/public/cpp/connection.h" |
| 10 #include "mojo/shell/public/cpp/shell_client.h" | 10 #include "services/shell/public/cpp/shell_client.h" |
| 11 | 11 |
| 12 namespace mojo { | 12 namespace mojo { |
| 13 namespace shell { | 13 namespace shell { |
| 14 | 14 |
| 15 class TestClient : public ShellClient, | 15 class TestClient : public ShellClient, |
| 16 public InterfaceFactory<mojom::TestService>, | 16 public InterfaceFactory<mojom::TestService>, |
| 17 public mojom::TestService { | 17 public mojom::TestService { |
| 18 public: | 18 public: |
| 19 TestClient() {} | 19 TestClient() {} |
| 20 ~TestClient() override {} | 20 ~TestClient() override {} |
| (...skipping 24 matching lines...) Expand all Loading... |
| 45 DISALLOW_COPY_AND_ASSIGN(TestClient); | 45 DISALLOW_COPY_AND_ASSIGN(TestClient); |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace shell | 48 } // namespace shell |
| 49 } // namespace mojo | 49 } // namespace mojo |
| 50 | 50 |
| 51 MojoResult MojoMain(MojoHandle shell_handle) { | 51 MojoResult MojoMain(MojoHandle shell_handle) { |
| 52 mojo::ApplicationRunner runner(new mojo::shell::TestClient); | 52 mojo::ApplicationRunner runner(new mojo::shell::TestClient); |
| 53 return runner.Run(shell_handle); | 53 return runner.Run(shell_handle); |
| 54 } | 54 } |
| OLD | NEW |