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

Side by Side Diff: services/shell/tests/connect/connect_test_exe.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 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 "mojo/shell/public/cpp/connection.h" 9 #include "services/shell/public/cpp/connection.h"
10 #include "mojo/shell/public/cpp/connector.h" 10 #include "services/shell/public/cpp/connector.h"
11 #include "mojo/shell/public/cpp/shell_client.h" 11 #include "services/shell/public/cpp/shell_client.h"
12 #include "mojo/shell/runner/child/test_native_main.h" 12 #include "services/shell/runner/child/test_native_main.h"
13 #include "mojo/shell/runner/init.h" 13 #include "services/shell/runner/init.h"
14 #include "mojo/shell/tests/connect/connect_test.mojom.h" 14 #include "services/shell/tests/connect/connect_test.mojom.h"
15 15
16 using mojo::shell::test::mojom::ConnectTestService; 16 using mojo::shell::test::mojom::ConnectTestService;
17 using mojo::shell::test::mojom::ConnectTestServiceRequest; 17 using mojo::shell::test::mojom::ConnectTestServiceRequest;
18 18
19 namespace { 19 namespace {
20 20
21 class Target : public mojo::ShellClient, 21 class Target : public mojo::ShellClient,
22 public mojo::InterfaceFactory<ConnectTestService>, 22 public mojo::InterfaceFactory<ConnectTestService>,
23 public ConnectTestService { 23 public ConnectTestService {
24 public: 24 public:
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 60
61 int main(int argc, char** argv) { 61 int main(int argc, char** argv) {
62 base::AtExitManager at_exit; 62 base::AtExitManager at_exit;
63 base::CommandLine::Init(argc, argv); 63 base::CommandLine::Init(argc, argv);
64 64
65 mojo::shell::InitializeLogging(); 65 mojo::shell::InitializeLogging();
66 66
67 Target target; 67 Target target;
68 return mojo::shell::TestNativeMain(&target); 68 return mojo::shell::TestNativeMain(&target);
69 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698