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 module shell.test.mojom; | 5 module service_manager.test.mojom; |
6 | 6 |
7 import "services/service_manager/public/interfaces/connector.mojom"; | 7 import "services/service_manager/public/interfaces/connector.mojom"; |
8 | 8 |
9 interface ConnectTestService { | 9 interface ConnectTestService { |
10 GetTitle() => (string title); | 10 GetTitle() => (string title); |
11 GetInstance() => (string instance); | 11 GetInstance() => (string instance); |
12 }; | 12 }; |
13 | 13 |
14 interface ClassInterface { | 14 interface ClassInterface { |
15 Ping() => (string response); | 15 Ping() => (string response); |
(...skipping 13 matching lines...) Expand all Loading... |
29 // defines as including ClassInterface. | 29 // defines as including ClassInterface. |
30 // The response contains the response from ClassInterface::Ping() and | 30 // The response contains the response from ClassInterface::Ping() and |
31 // ConnectTestService::GetTitle(). | 31 // ConnectTestService::GetTitle(). |
32 ConnectToClassInterface() => (string class_interface_response, string title); | 32 ConnectToClassInterface() => (string class_interface_response, string title); |
33 }; | 33 }; |
34 | 34 |
35 interface UserIdTest { | 35 interface UserIdTest { |
36 // Attempts to connect to mojo:connect_test_class_app as |user_id|. | 36 // Attempts to connect to mojo:connect_test_class_app as |user_id|. |
37 // The callback takes the connection response result, and the identity | 37 // The callback takes the connection response result, and the identity |
38 // mojo:connect_test_class_app was run as, which should match |user_id|. | 38 // mojo:connect_test_class_app was run as, which should match |user_id|. |
39 ConnectToClassAppAsDifferentUser(shell.mojom.Identity target) => | 39 ConnectToClassAppAsDifferentUser(service_manager.mojom.Identity target) => |
40 (int32 connection_result, shell.mojom.Identity target); | 40 (int32 connection_result, service_manager.mojom.Identity target); |
41 }; | 41 }; |
42 | 42 |
43 interface ClientProcessTest { | 43 interface ClientProcessTest { |
44 // Attempts to launch a bare exe and connect to it using the | 44 // Attempts to launch a bare exe and connect to it using the |
45 // ClientProcessConnection param to Connector::Connect(). The callback takes | 45 // ClientProcessConnection param to Connector::Connect(). The callback takes |
46 // the result of the connection, and the identity of the app that the caller | 46 // the result of the connection, and the identity of the app that the caller |
47 // can use to connect to this app as well. | 47 // can use to connect to this app as well. |
48 LaunchAndConnectToProcess() => | 48 LaunchAndConnectToProcess() => |
49 (int32 connection_result, shell.mojom.Identity target); | 49 (int32 connection_result, service_manager.mojom.Identity target); |
50 }; | 50 }; |
51 | 51 |
52 struct ConnectionState { | 52 struct ConnectionState { |
53 string connection_remote_name; | 53 string connection_remote_name; |
54 string connection_remote_userid; | 54 string connection_remote_userid; |
55 string initialize_local_name; | 55 string initialize_local_name; |
56 string initialize_userid; | 56 string initialize_userid; |
57 }; | 57 }; |
58 | 58 |
59 interface ExposedInterface { | 59 interface ExposedInterface { |
60 ConnectionAccepted(ConnectionState state); | 60 ConnectionAccepted(ConnectionState state); |
61 }; | 61 }; |
62 | 62 |
63 interface BlockedInterface { | 63 interface BlockedInterface { |
64 GetTitleBlocked() => (string blocked_title); | 64 GetTitleBlocked() => (string blocked_title); |
65 }; | 65 }; |
OLD | NEW |