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

Side by Side Diff: services/shell/tests/connect/connect_test_package.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 <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/run_loop.h" 13 #include "base/run_loop.h"
14 #include "base/threading/simple_thread.h" 14 #include "base/threading/simple_thread.h"
15 #include "mojo/public/c/system/main.h" 15 #include "mojo/public/c/system/main.h"
16 #include "mojo/public/cpp/bindings/binding_set.h" 16 #include "mojo/public/cpp/bindings/binding_set.h"
17 #include "mojo/shell/public/cpp/application_runner.h" 17 #include "services/shell/public/cpp/application_runner.h"
18 #include "mojo/shell/public/cpp/connector.h" 18 #include "services/shell/public/cpp/connector.h"
19 #include "mojo/shell/public/cpp/interface_factory.h" 19 #include "services/shell/public/cpp/interface_factory.h"
20 #include "mojo/shell/public/cpp/shell_client.h" 20 #include "services/shell/public/cpp/shell_client.h"
21 #include "mojo/shell/public/interfaces/shell_client_factory.mojom.h" 21 #include "services/shell/public/interfaces/shell_client_factory.mojom.h"
22 #include "mojo/shell/tests/connect/connect_test.mojom.h" 22 #include "services/shell/tests/connect/connect_test.mojom.h"
23 23
24 // Tests that multiple applications can be packaged in a single Mojo application 24 // Tests that multiple applications can be packaged in a single Mojo application
25 // implementing ShellClientFactory; that these applications can be specified by 25 // implementing ShellClientFactory; that these applications can be specified by
26 // the package's manifest and are thus registered with the PackageManager. 26 // the package's manifest and are thus registered with the PackageManager.
27 27
28 namespace mojo { 28 namespace mojo {
29 namespace shell { 29 namespace shell {
30 namespace { 30 namespace {
31 void QuitLoop(base::RunLoop* loop) { 31 void QuitLoop(base::RunLoop* loop) {
32 loop->Quit(); 32 loop->Quit();
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 } // namespace shell 230 } // namespace shell
231 } // namespace mojo 231 } // namespace mojo
232 232
233 233
234 MojoResult MojoMain(MojoHandle shell_handle) { 234 MojoResult MojoMain(MojoHandle shell_handle) {
235 MojoResult rv = mojo::ApplicationRunner( 235 MojoResult rv = mojo::ApplicationRunner(
236 new mojo::shell::ConnectTestShellClient).Run(shell_handle); 236 new mojo::shell::ConnectTestShellClient).Run(shell_handle);
237 return rv; 237 return rv;
238 } 238 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698