Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(34)

Side by Side Diff: services/service_manager/tests/connect/connect_test_driver.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <memory> 5 #include <memory>
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/process/process.h" 10 #include "base/process/process.h"
11 #include "mojo/public/cpp/bindings/binding_set.h" 11 #include "mojo/public/cpp/bindings/binding_set.h"
12 #include "services/shell/public/cpp/connection.h" 12 #include "services/service_manager/public/cpp/connection.h"
13 #include "services/shell/public/cpp/connector.h" 13 #include "services/service_manager/public/cpp/connector.h"
14 #include "services/shell/public/cpp/service.h" 14 #include "services/service_manager/public/cpp/service.h"
15 #include "services/shell/runner/child/test_native_main.h" 15 #include "services/service_manager/runner/child/test_native_main.h"
16 #include "services/shell/runner/init.h" 16 #include "services/service_manager/runner/init.h"
17 #include "services/shell/tests/connect/connect_test.mojom.h" 17 #include "services/service_manager/tests/connect/connect_test.mojom.h"
18 #include "services/shell/tests/util.h" 18 #include "services/service_manager/tests/util.h"
19 19
20 using shell::test::mojom::ClientProcessTest; 20 using shell::test::mojom::ClientProcessTest;
21 using shell::test::mojom::ClientProcessTestRequest; 21 using shell::test::mojom::ClientProcessTestRequest;
22 22
23 namespace { 23 namespace {
24 24
25 class Driver : public shell::Service, 25 class Driver : public shell::Service,
26 public shell::InterfaceFactory<ClientProcessTest>, 26 public shell::InterfaceFactory<ClientProcessTest>,
27 public ClientProcessTest { 27 public ClientProcessTest {
28 public: 28 public:
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 int main(int argc, char** argv) { 76 int main(int argc, char** argv) {
77 base::AtExitManager at_exit; 77 base::AtExitManager at_exit;
78 base::CommandLine::Init(argc, argv); 78 base::CommandLine::Init(argc, argv);
79 79
80 shell::InitializeLogging(); 80 shell::InitializeLogging();
81 81
82 Driver driver; 82 Driver driver;
83 return shell::TestNativeMain(&driver); 83 return shell::TestNativeMain(&driver);
84 } 84 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698