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

Side by Side Diff: mojo/shell/application_manager_apptest_driver.cc

Issue 1442893002: Move Shell connection to content (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@i2
Patch Set: . Created 5 years, 1 month 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
« no previous file with comments | « mojo/shell/application_manager.mojom ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/base_paths.h" 6 #include "base/base_paths.h"
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/path_service.h" 13 #include "base/path_service.h"
14 #include "base/process/process.h" 14 #include "base/process/process.h"
15 #include "base/thread_task_runner_handle.h" 15 #include "base/thread_task_runner_handle.h"
16 #include "mojo/application/public/cpp/application_connection.h" 16 #include "mojo/application/public/cpp/application_connection.h"
17 #include "mojo/application/public/cpp/application_delegate.h" 17 #include "mojo/application/public/cpp/application_delegate.h"
18 #include "mojo/application/public/cpp/application_impl.h" 18 #include "mojo/application/public/cpp/application_impl.h"
19 #include "mojo/application/public/cpp/interface_factory.h" 19 #include "mojo/application/public/cpp/interface_factory.h"
20 #include "mojo/common/weak_binding_set.h" 20 #include "mojo/common/weak_binding_set.h"
21 #include "mojo/converters/network/network_type_converters.h" 21 #include "mojo/converters/network/network_type_converters.h"
22 #include "mojo/runner/child/test_native_main.h" 22 #include "mojo/runner/child/test_native_main.h"
23 #include "mojo/runner/init.h" 23 #include "mojo/runner/init.h"
24 #include "mojo/shell/application_manager.mojom.h" 24 #include "mojo/shell/application_manager.mojom.h"
25 #include "mojo/shell/application_manager_apptests.mojom.h" 25 #include "mojo/shell/application_manager_apptests.mojom.h"
26 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h" 26 #include "third_party/mojo/src/mojo/edk/embedder/embedder.h"
27 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h" 27 #include "third_party/mojo/src/mojo/edk/embedder/platform_channel_pair.h"
28 #include "third_party/mojo/src/mojo/edk/embedder/process_delegate.h"
29 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h" 28 #include "third_party/mojo/src/mojo/edk/embedder/scoped_platform_handle.h"
30 29
31 using mojo::shell::test::mojom::Driver; 30 using mojo::shell::test::mojom::Driver;
32 31
33 namespace { 32 namespace {
34 33
35 class TargetApplicationDelegate : public mojo::ApplicationDelegate, 34 class TargetApplicationDelegate : public mojo::ApplicationDelegate,
36 public mojo::InterfaceFactory<Driver>, 35 public mojo::InterfaceFactory<Driver>,
37 public Driver { 36 public Driver {
38 public: 37 public:
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 127
129 int main(int argc, char** argv) { 128 int main(int argc, char** argv) {
130 base::AtExitManager at_exit; 129 base::AtExitManager at_exit;
131 base::CommandLine::Init(argc, argv); 130 base::CommandLine::Init(argc, argv);
132 131
133 mojo::runner::InitializeLogging(); 132 mojo::runner::InitializeLogging();
134 133
135 TargetApplicationDelegate delegate; 134 TargetApplicationDelegate delegate;
136 return mojo::runner::TestNativeMain(&delegate); 135 return mojo::runner::TestNativeMain(&delegate);
137 } 136 }
OLDNEW
« no previous file with comments | « mojo/shell/application_manager.mojom ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698