| 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 union PodUnion { | 7 union PodUnion { |
| 8 int8 f_int8; | 8 int8 f_int8; |
| 9 int8 f_int8_other; | 9 int8 f_int8_other; |
| 10 uint8 f_uint8; | 10 uint8 f_uint8; |
| 11 int16 f_int16; | 11 int16 f_int16; |
| 12 uint16 f_uint16; | 12 uint16 f_uint16; |
| 13 int32 f_int32; | 13 int32 f_int32; |
| 14 uint32 f_uint32; | 14 uint32 f_uint32; |
| 15 int64 f_int64; | 15 int64 f_int64; |
| 16 uint64 f_uint64; | 16 uint64 f_uint64; |
| 17 float f_float; | 17 float f_float; |
| 18 double f_double; | 18 double f_double; |
| 19 bool f_bool; | 19 bool f_bool; |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 union ObjectUnion { | 22 union ObjectUnion { |
| 23 int8 f_int8; | 23 int8 f_int8; |
| 24 string f_string; | 24 string f_string; |
| 25 DummyStruct f_dummy; | 25 DummyStruct f_dummy; |
| 26 DummyStruct? f_nullable; | 26 DummyStruct? f_nullable; |
| 27 array<int8> f_array_int8; |
| 28 map<string, int8> f_map_int8; |
| 27 }; | 29 }; |
| 28 | 30 |
| 29 struct DummyStruct { | 31 struct DummyStruct { |
| 30 int8 f_int8; | 32 int8 f_int8; |
| 31 }; | 33 }; |
| 32 | 34 |
| 33 struct SmallStruct { | 35 struct SmallStruct { |
| 34 DummyStruct? dummy_struct; | 36 DummyStruct? dummy_struct; |
| 35 PodUnion? pod_union; | 37 PodUnion? pod_union; |
| 36 array<PodUnion>? pod_union_array; | 38 array<PodUnion>? pod_union_array; |
| 37 array<DummyStruct>? s_array; | 39 array<DummyStruct>? s_array; |
| 38 map<string, PodUnion>? pod_union_map; | 40 map<string, PodUnion>? pod_union_map; |
| 39 }; | 41 }; |
| 40 | 42 |
| 41 struct SmallStructNonNullableUnion { | 43 struct SmallStructNonNullableUnion { |
| 42 PodUnion pod_union; | 44 PodUnion pod_union; |
| 43 }; | 45 }; |
| 44 | 46 |
| 45 struct SmallObjStruct { | 47 struct SmallObjStruct { |
| 46 ObjectUnion obj_union; | 48 ObjectUnion obj_union; |
| 47 }; | 49 }; |
| OLD | NEW |