OLD | NEW |
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/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/test/test_suite.h" | 13 #include "base/test/test_suite.h" |
14 #include "mojo/public/cpp/bindings/binding_set.h" | 14 #include "mojo/public/cpp/bindings/binding_set.h" |
15 #include "mojo/shell/public/cpp/shell_test.h" | 15 #include "mojo/shell/public/cpp/shell_test.h" |
16 #include "mojo/shell/public/interfaces/application_manager.mojom.h" | 16 #include "mojo/shell/public/interfaces/shell.mojom.h" |
17 #include "mojo/shell/tests/connect/connect_test.mojom.h" | 17 #include "mojo/shell/tests/connect/connect_test.mojom.h" |
18 | 18 |
19 // Tests that multiple applications can be packaged in a single Mojo application | 19 // Tests that multiple applications can be packaged in a single Mojo application |
20 // implementing ShellClientFactory; that these applications can be specified by | 20 // implementing ShellClientFactory; that these applications can be specified by |
21 // the package's manifest and are thus registered with the PackageManager. | 21 // the package's manifest and are thus registered with the PackageManager. |
22 | 22 |
23 namespace mojo { | 23 namespace mojo { |
24 namespace shell { | 24 namespace shell { |
25 namespace { | 25 namespace { |
26 const char kTestPackageName[] = "mojo:connect_test_package"; | 26 const char kTestPackageName[] = "mojo:connect_test_package"; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 CompareConnectionState( | 252 CompareConnectionState( |
253 kTestAppAName, test_name(), test_userid(), test_instance_id(), | 253 kTestAppAName, test_name(), test_userid(), test_instance_id(), |
254 kTestAppAName, remote_id, connection->GetRemoteUserID()); | 254 kTestAppAName, remote_id, connection->GetRemoteUserID()); |
255 } | 255 } |
256 | 256 |
257 } | 257 } |
258 } | 258 } |
259 | 259 |
260 } // namespace shell | 260 } // namespace shell |
261 } // namespace mojo | 261 } // namespace mojo |
OLD | NEW |