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

Side by Side Diff: services/shell/runner/child/native_apptest_target.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 <utility> 5 #include <utility>
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 "mojo/public/cpp/bindings/binding_set.h" 10 #include "mojo/public/cpp/bindings/binding_set.h"
11 #include "mojo/shell/public/cpp/connection.h" 11 #include "services/shell/public/cpp/connection.h"
12 #include "mojo/shell/public/cpp/interface_factory.h" 12 #include "services/shell/public/cpp/interface_factory.h"
13 #include "mojo/shell/public/cpp/shell_client.h" 13 #include "services/shell/public/cpp/shell_client.h"
14 #include "mojo/shell/runner/child/test_native_main.h" 14 #include "services/shell/runner/child/test_native_main.h"
15 #include "mojo/shell/runner/child/test_native_service.mojom.h" 15 #include "services/shell/runner/child/test_native_service.mojom.h"
16 #include "mojo/shell/runner/init.h" 16 #include "services/shell/runner/init.h"
17 17
18 namespace { 18 namespace {
19 19
20 class TargetApplicationDelegate 20 class TargetApplicationDelegate
21 : public mojo::ShellClient, 21 : public mojo::ShellClient,
22 public mojo::shell::test::TestNativeService, 22 public mojo::shell::test::TestNativeService,
23 public mojo::InterfaceFactory<mojo::shell::test::TestNativeService> { 23 public mojo::InterfaceFactory<mojo::shell::test::TestNativeService> {
24 public: 24 public:
25 TargetApplicationDelegate() {} 25 TargetApplicationDelegate() {}
26 ~TargetApplicationDelegate() override {} 26 ~TargetApplicationDelegate() override {}
(...skipping 26 matching lines...) Expand all
53 53
54 int main(int argc, char** argv) { 54 int main(int argc, char** argv) {
55 base::AtExitManager at_exit; 55 base::AtExitManager at_exit;
56 base::CommandLine::Init(argc, argv); 56 base::CommandLine::Init(argc, argv);
57 57
58 mojo::shell::InitializeLogging(); 58 mojo::shell::InitializeLogging();
59 59
60 TargetApplicationDelegate delegate; 60 TargetApplicationDelegate delegate;
61 return mojo::shell::TestNativeMain(&delegate); 61 return mojo::shell::TestNativeMain(&delegate);
62 } 62 }
OLDNEW
« no previous file with comments | « services/shell/runner/child/native_apptest.cc ('k') | services/shell/runner/child/test_native_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698