| 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 | 5 |
| 6 [JavaPackage="org.chromium.mojo.bindings.test.mojom.mojo"] | 6 [JavaPackage="org.chromium.mojo.bindings.test.mojom.mojo"] |
| 7 module mojo.test; | 7 module mojo.test; |
| 8 | 8 |
| 9 struct StructA { | 9 struct StructA { |
| 10 uint64 i; | 10 uint64 i; |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 Method6(array<array<uint8>> param0); | 75 Method6(array<array<uint8>> param0); |
| 76 Method7(StructF param0, array<array<uint8, 3>?, 2> param1); | 76 Method7(StructF param0, array<array<uint8, 3>?, 2> param1); |
| 77 Method8(array<array<string>?> param0); | 77 Method8(array<array<string>?> param0); |
| 78 Method9(array<array<handle?>>? param0); | 78 Method9(array<array<handle?>>? param0); |
| 79 Method10(map<string, uint8> param0); | 79 Method10(map<string, uint8> param0); |
| 80 Method11(StructG param0); | 80 Method11(StructG param0); |
| 81 Method12(float param0) => (float param0); | 81 Method12(float param0) => (float param0); |
| 82 Method13(InterfaceA? param0, uint32 param1, InterfaceA? param2); | 82 Method13(InterfaceA? param0, uint32 param1, InterfaceA? param2); |
| 83 Method14(EnumA param0, EnumB param1); | 83 Method14(EnumA param0, EnumB param1); |
| 84 Method15(array<EnumA>? param0, array<EnumB>? param1); | 84 Method15(array<EnumA>? param0, array<EnumB>? param1); |
| 85 Method16(map<EnumA, EnumA>? param0); |
| 85 }; | 86 }; |
| 86 | 87 |
| 87 struct BasicStruct { | 88 struct BasicStruct { |
| 88 int32 a; | 89 int32 a; |
| 89 }; | 90 }; |
| 90 | 91 |
| 91 interface IntegrationTestInterface { | 92 interface IntegrationTestInterface { |
| 92 Method0(BasicStruct param0) => (array<uint8> param0); | 93 Method0(BasicStruct param0) => (array<uint8> param0); |
| 93 }; | 94 }; |
| 94 | 95 |
| 95 // An enum generates a enum-value validation function, so we want to test it. | 96 // An enum generates a enum-value validation function, so we want to test it. |
| 96 // E.g., valid enum values for this enum should be: -3, 0, 1, 10 | 97 // E.g., valid enum values for this enum should be: -3, 0, 1, 10 |
| 97 enum BasicEnum { | 98 enum BasicEnum { |
| 98 A, | 99 A, |
| 99 B, | 100 B, |
| 100 C = A, | 101 C = A, |
| 101 D = -3, | 102 D = -3, |
| 102 E = 0xA | 103 E = 0xA |
| 103 }; | 104 }; |
| 104 | 105 |
| 105 // The enum validation function should be generated within the scope of this | 106 // The enum validation function should be generated within the scope of this |
| 106 // struct. | 107 // struct. |
| 107 struct StructWithEnum { | 108 struct StructWithEnum { |
| 108 enum EnumWithin { | 109 enum EnumWithin { |
| 109 A, B, C, D | 110 A, B, C, D |
| 110 }; | 111 }; |
| 111 }; | 112 }; |
| OLD | NEW |