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

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

Issue 1877753003: Move mojo\shell to services\shell (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@62scan
Patch Set: . Created 4 years, 8 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 "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 "base/process/process.h" 8 #include "base/process/process.h"
9 #include "mojo/public/cpp/bindings/binding_set.h" 9 #include "mojo/public/cpp/bindings/binding_set.h"
10 #include "mojo/shell/public/cpp/connection.h" 10 #include "services/shell/public/cpp/connection.h"
11 #include "mojo/shell/public/cpp/connector.h" 11 #include "services/shell/public/cpp/connector.h"
12 #include "mojo/shell/public/cpp/shell_client.h" 12 #include "services/shell/public/cpp/shell_client.h"
13 #include "mojo/shell/runner/child/test_native_main.h" 13 #include "services/shell/runner/child/test_native_main.h"
14 #include "mojo/shell/runner/init.h" 14 #include "services/shell/runner/init.h"
15 #include "mojo/shell/tests/connect/connect_test.mojom.h" 15 #include "services/shell/tests/connect/connect_test.mojom.h"
16 #include "mojo/shell/tests/util.h" 16 #include "services/shell/tests/util.h"
17 17
18 using mojo::shell::test::mojom::ClientProcessTest; 18 using mojo::shell::test::mojom::ClientProcessTest;
19 using mojo::shell::test::mojom::ClientProcessTestRequest; 19 using mojo::shell::test::mojom::ClientProcessTestRequest;
20 20
21 namespace { 21 namespace {
22 22
23 class Driver : public mojo::ShellClient, 23 class Driver : public mojo::ShellClient,
24 public mojo::InterfaceFactory<ClientProcessTest>, 24 public mojo::InterfaceFactory<ClientProcessTest>,
25 public ClientProcessTest { 25 public ClientProcessTest {
26 public: 26 public:
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 int main(int argc, char** argv) { 80 int main(int argc, char** argv) {
81 base::AtExitManager at_exit; 81 base::AtExitManager at_exit;
82 base::CommandLine::Init(argc, argv); 82 base::CommandLine::Init(argc, argv);
83 83
84 mojo::shell::InitializeLogging(); 84 mojo::shell::InitializeLogging();
85 85
86 Driver driver; 86 Driver driver;
87 return mojo::shell::TestNativeMain(&driver); 87 return mojo::shell::TestNativeMain(&driver);
88 } 88 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698