| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Module containing entities for regression tests of the generator. Entities | |
| 6 // must never be modified, instead new entity must be added to add new tests. | |
| 7 [DartPackage="_mojo_for_test_only", | |
| 8 JavaPackage="org.chromium.mojo.bindings.test.mojom.regression_tests"] | |
| 9 module regression_tests; | |
| 10 | |
| 11 interface CheckMethodWithEmptyResponse { | |
| 12 WithoutParameterAndEmptyResponse() => (); | |
| 13 WithParameterAndEmptyResponse(bool b) => (); | |
| 14 }; | |
| 15 | |
| 16 interface CheckNameCollision { | |
| 17 WithNameCollision(bool message, bool response) | |
| 18 => (bool message, bool response); | |
| 19 }; | |
| 20 | |
| 21 enum EnumWithReference { | |
| 22 k_STEREO_AND_KEYBOARD_MIC = 30, | |
| 23 k_MAX = k_STEREO_AND_KEYBOARD_MIC, | |
| 24 }; | |
| 25 | |
| 26 enum EnumWithLowercase { | |
| 27 PlanarF16, | |
| 28 PlanarF32, | |
| 29 }; | |
| 30 | |
| 31 enum EnumWithNumbers { | |
| 32 k_2_1 = 4, | |
| 33 }; | |
| 34 | |
| 35 enum EnumWithK { | |
| 36 K = 0, | |
| 37 }; | |
| 38 | |
| 39 struct Edge { | |
| 40 Vertex? v; | |
| 41 }; | |
| 42 | |
| 43 struct Vertex { | |
| 44 EmptyStruct? e; | |
| 45 }; | |
| 46 | |
| 47 struct EmptyStruct {}; | |
| 48 | |
| 49 struct A { | |
| 50 B? b; | |
| 51 }; | |
| 52 | |
| 53 struct B { | |
| 54 A? a; | |
| 55 }; | |
| 56 | |
| 57 enum EnumWithINTERNALAllCaps { | |
| 58 STANDARD, | |
| 59 FULLSCREEN, | |
| 60 IMMERSIVE, | |
| 61 }; | |
| 62 | |
| 63 interface CheckEnumCaps { | |
| 64 SetEnumWithINTERNALAllCaps(EnumWithINTERNALAllCaps e); | |
| 65 }; | |
| 66 | |
| 67 struct StructWithHandleCalledHandles { | |
| 68 handle handles; | |
| 69 }; | |
| 70 | |
| 71 struct StructWithArrayOfHandlesCalledHandles { | |
| 72 array<handle> handles; | |
| 73 }; | |
| 74 | |
| 75 interface TestInterface { | |
| 76 SomeMessage(); | |
| 77 }; | |
| 78 | |
| 79 struct StructWithInterfaceCalledHandles { | |
| 80 TestInterface handles; | |
| 81 }; | |
| 82 | |
| 83 enum NormalEnum { | |
| 84 FIRST, | |
| 85 SECOND, | |
| 86 }; | |
| 87 | |
| 88 struct ContainsArrayOfEnum { | |
| 89 array<NormalEnum> array_of_enums; | |
| 90 }; | |
| 91 | |
| 92 struct ContainsNullableArrayOfEnum { | |
| 93 array<NormalEnum>? array_of_enums; | |
| 94 }; | |
| 95 | |
| 96 interface Regression551 { | |
| 97 Get(array<string> key_prefixes) => (int32 result); | |
| 98 }; | |
| 99 | |
| 100 interface ServiceName { | |
| 101 serviceName() => (string serviceName); | |
| 102 }; | |
| 103 | |
| 104 enum CamelCaseTestEnum { | |
| 105 BOOL_THING, | |
| 106 DOUBLE_THING, | |
| 107 FLOAT_THING, | |
| 108 INT8_THING, | |
| 109 INT16THING, | |
| 110 INT32_TH1NG, | |
| 111 INT64_Th1ng, | |
| 112 UINT8T_h1ng, | |
| 113 UINT16t_h1NG, | |
| 114 UINT32_TH1ng, | |
| 115 UINT64_TH1NG, | |
| 116 }; | |
| OLD | NEW |