OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 mojo.test; | 5 module mojo.test; |
6 | 6 |
7 enum AnEnum { | 7 enum AnEnum { |
8 FIRST, SECOND | 8 FIRST, SECOND |
9 }; | 9 }; |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 map<string, int8> f_map_int8; | 33 map<string, int8> f_map_int8; |
34 PodUnion f_pod_union; | 34 PodUnion f_pod_union; |
35 }; | 35 }; |
36 | 36 |
37 union HandleUnion { | 37 union HandleUnion { |
38 handle f_handle; | 38 handle f_handle; |
39 handle<message_pipe> f_message_pipe; | 39 handle<message_pipe> f_message_pipe; |
40 handle<data_pipe_consumer> f_data_pipe_consumer; | 40 handle<data_pipe_consumer> f_data_pipe_consumer; |
41 handle<data_pipe_producer> f_data_pipe_producer; | 41 handle<data_pipe_producer> f_data_pipe_producer; |
42 handle<shared_buffer> f_shared_buffer; | 42 handle<shared_buffer> f_shared_buffer; |
| 43 SmallCache f_small_cache; |
| 44 }; |
| 45 |
| 46 struct HandleStruct { |
| 47 SmallCache f_small_cache; |
43 }; | 48 }; |
44 | 49 |
45 struct DummyStruct { | 50 struct DummyStruct { |
46 int8 f_int8; | 51 int8 f_int8; |
47 }; | 52 }; |
48 | 53 |
49 struct SmallStruct { | 54 struct SmallStruct { |
50 DummyStruct? dummy_struct; | 55 DummyStruct? dummy_struct; |
51 PodUnion? pod_union; | 56 PodUnion? pod_union; |
52 array<PodUnion>? pod_union_array; | 57 array<PodUnion>? pod_union_array; |
| 58 array<PodUnion?>? nullable_pod_union_array; |
53 array<DummyStruct>? s_array; | 59 array<DummyStruct>? s_array; |
54 map<string, PodUnion>? pod_union_map; | 60 map<string, PodUnion>? pod_union_map; |
| 61 map<string, PodUnion?>? nullable_pod_union_map; |
55 }; | 62 }; |
56 | 63 |
57 struct SmallStructNonNullableUnion { | 64 struct SmallStructNonNullableUnion { |
58 PodUnion pod_union; | 65 PodUnion pod_union; |
59 }; | 66 }; |
60 | 67 |
61 struct SmallObjStruct { | 68 struct SmallObjStruct { |
62 ObjectUnion obj_union; | 69 ObjectUnion obj_union; |
63 }; | 70 }; |
| 71 |
| 72 interface SmallCache { |
| 73 SetIntValue(int64 int_value); |
| 74 GetIntValue() => (int64 int_value); |
| 75 }; |
| 76 |
| 77 interface UnionInterface { |
| 78 Echo(PodUnion in) => (PodUnion out); |
| 79 }; |
OLD | NEW |