OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 module mojo.test; | |
6 | |
7 interface TestInterface { | |
8 Foo(); | |
9 }; | |
10 | |
11 struct StructWithInterface { | |
12 TestInterface iptr; | |
13 }; | |
14 | |
15 struct StructWithInterfaceArray { | |
16 array<StructWithInterface> structs_array; | |
17 array<StructWithInterface>? structs_nullable_array; | |
18 array<StructWithInterface?> nullable_structs_array; | |
19 array<StructWithInterface?>? nullable_structs_nullable_array; | |
20 }; | |
21 | |
22 struct StructWithDataPipeConsumers { | |
23 array<handle<data_pipe_consumer>> handles_array; | |
24 array<handle<data_pipe_consumer>>? handles_nullable_array; | |
25 array<handle<data_pipe_consumer>?> nullable_handles_array; | |
26 array<handle<data_pipe_consumer>?>? nullable_handles_nullable_array; | |
27 }; | |
28 | |
29 struct StructWithDataPipeProducers { | |
30 array<handle<data_pipe_producer>> handles_array; | |
31 array<handle<data_pipe_producer>>? handles_nullable_array; | |
32 array<handle<data_pipe_producer>?> nullable_handles_array; | |
33 array<handle<data_pipe_producer>?>? nullable_handles_nullable_array; | |
34 }; | |
35 | |
36 struct StructWithSharedBuffers { | |
37 array<handle<shared_buffer>> handles_array; | |
38 array<handle<shared_buffer>>? handles_nullable_array; | |
39 array<handle<shared_buffer>?> nullable_handles_array; | |
40 array<handle<shared_buffer>?>? nullable_handles_nullable_array; | |
41 }; | |
42 | |
43 struct StructWithMessagePipes { | |
44 array<handle<message_pipe>> handles_array; | |
45 array<handle<message_pipe>>? handles_nullable_array; | |
46 array<handle<message_pipe>?> nullable_handles_array; | |
47 array<handle<message_pipe>?>? nullable_handles_nullable_array; | |
48 }; | |
49 | |
50 struct StructWithHandles { | |
51 array<handle> handles_array; | |
52 array<handle>? handles_nullable_array; | |
53 array<handle?> nullable_handles_array; | |
54 array<handle?>? nullable_handles_nullable_array; | |
55 }; | |
56 | |
57 struct StructWithInterfaceRequests { | |
58 array<TestInterface&> req_array; | |
59 array<TestInterface&>? req_nullable_array; | |
60 array<TestInterface&?> nullable_req_array; | |
61 array<TestInterface&?>? nullable_req_nullable_array; | |
62 }; | |
OLD | NEW |