| 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 "base/at_exit.h" | 5 #include "base/at_exit.h" |
| 6 #include "base/command_line.h" | 6 #include "base/command_line.h" |
| 7 #include "base/macros.h" | 7 #include "base/macros.h" |
| 8 #include "mojo/public/cpp/bindings/binding_set.h" | 8 #include "mojo/public/cpp/bindings/binding_set.h" |
| 9 #include "services/shell/public/cpp/connection.h" | 9 #include "services/service_manager/public/cpp/connection.h" |
| 10 #include "services/shell/public/cpp/connector.h" | 10 #include "services/service_manager/public/cpp/connector.h" |
| 11 #include "services/shell/public/cpp/interface_factory.h" | 11 #include "services/service_manager/public/cpp/interface_factory.h" |
| 12 #include "services/shell/public/cpp/interface_registry.h" | 12 #include "services/service_manager/public/cpp/interface_registry.h" |
| 13 #include "services/shell/public/cpp/service.h" | 13 #include "services/service_manager/public/cpp/service.h" |
| 14 #include "services/shell/runner/child/test_native_main.h" | 14 #include "services/service_manager/runner/child/test_native_main.h" |
| 15 #include "services/shell/runner/init.h" | 15 #include "services/service_manager/runner/init.h" |
| 16 #include "services/shell/tests/connect/connect_test.mojom.h" | 16 #include "services/service_manager/tests/connect/connect_test.mojom.h" |
| 17 | 17 |
| 18 using shell::test::mojom::ConnectTestService; | 18 using shell::test::mojom::ConnectTestService; |
| 19 using shell::test::mojom::ConnectTestServiceRequest; | 19 using shell::test::mojom::ConnectTestServiceRequest; |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 class Target : public shell::Service, | 23 class Target : public shell::Service, |
| 24 public shell::InterfaceFactory<ConnectTestService>, | 24 public shell::InterfaceFactory<ConnectTestService>, |
| 25 public ConnectTestService { | 25 public ConnectTestService { |
| 26 public: | 26 public: |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 | 62 |
| 63 int main(int argc, char** argv) { | 63 int main(int argc, char** argv) { |
| 64 base::AtExitManager at_exit; | 64 base::AtExitManager at_exit; |
| 65 base::CommandLine::Init(argc, argv); | 65 base::CommandLine::Init(argc, argv); |
| 66 | 66 |
| 67 shell::InitializeLogging(); | 67 shell::InitializeLogging(); |
| 68 | 68 |
| 69 Target target; | 69 Target target; |
| 70 return shell::TestNativeMain(&target); | 70 return shell::TestNativeMain(&target); |
| 71 } | 71 } |
| OLD | NEW |