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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 }; | 48 }; |
49 | 49 |
50 struct DummyStruct { | 50 struct DummyStruct { |
51 int8 f_int8; | 51 int8 f_int8; |
52 }; | 52 }; |
53 | 53 |
54 struct SmallStruct { | 54 struct SmallStruct { |
55 DummyStruct? dummy_struct; | 55 DummyStruct? dummy_struct; |
56 PodUnion? pod_union; | 56 PodUnion? pod_union; |
57 array<PodUnion>? pod_union_array; | 57 array<PodUnion>? pod_union_array; |
| 58 array<PodUnion?>? nullable_pod_union_array; |
58 array<DummyStruct>? s_array; | 59 array<DummyStruct>? s_array; |
59 map<string, PodUnion>? pod_union_map; | 60 map<string, PodUnion>? pod_union_map; |
| 61 map<string, PodUnion?>? nullable_pod_union_map; |
60 }; | 62 }; |
61 | 63 |
62 struct SmallStructNonNullableUnion { | 64 struct SmallStructNonNullableUnion { |
63 PodUnion pod_union; | 65 PodUnion pod_union; |
64 }; | 66 }; |
65 | 67 |
66 struct SmallObjStruct { | 68 struct SmallObjStruct { |
67 ObjectUnion obj_union; | 69 ObjectUnion obj_union; |
68 }; | 70 }; |
69 | 71 |
70 interface SmallCache { | 72 interface SmallCache { |
71 SetIntValue(int64 int_value); | 73 SetIntValue(int64 int_value); |
72 GetIntValue() => (int64 int_value); | 74 GetIntValue() => (int64 int_value); |
73 }; | 75 }; |
74 | 76 |
75 interface UnionInterface { | 77 interface UnionInterface { |
76 Echo(PodUnion in) => (PodUnion out); | 78 Echo(PodUnion in) => (PodUnion out); |
77 }; | 79 }; |
OLD | NEW |