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 containing entities for regression tests of the generator. Entities | 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. | 6 // must never be modified, instead new entity must be added to add new tests. |
7 [DartPackage="_mojo_for_test_only", JavaPackage="org.chromium.mojo.bindings.test
.mojom.regression_tests"] | 7 [DartPackage="_mojo_for_test_only", |
| 8 JavaPackage="org.chromium.mojo.bindings.test.mojom.regression_tests"] |
8 module regression_tests; | 9 module regression_tests; |
9 | 10 |
10 interface CheckMethodWithEmptyResponse { | 11 interface CheckMethodWithEmptyResponse { |
11 WithoutParameterAndEmptyResponse() => (); | 12 WithoutParameterAndEmptyResponse() => (); |
12 WithParameterAndEmptyResponse(bool b) => (); | 13 WithParameterAndEmptyResponse(bool b) => (); |
13 }; | 14 }; |
14 | 15 |
15 interface CheckNameCollision { | 16 interface CheckNameCollision { |
16 WithNameCollision(bool message, bool response) => (bool message, bool response); | 17 WithNameCollision(bool message, bool response) |
| 18 => (bool message, bool response); |
17 }; | 19 }; |
18 | 20 |
19 enum EnumWithReference { | 21 enum EnumWithReference { |
20 k_STEREO_AND_KEYBOARD_MIC = 30, | 22 k_STEREO_AND_KEYBOARD_MIC = 30, |
21 k_MAX = k_STEREO_AND_KEYBOARD_MIC | 23 k_MAX = k_STEREO_AND_KEYBOARD_MIC, |
22 }; | 24 }; |
23 | 25 |
24 enum EnumWithLowercase { | 26 enum EnumWithLowercase { |
25 PlanarF16, | 27 PlanarF16, |
26 PlanarF32 | 28 PlanarF32, |
27 }; | 29 }; |
28 | 30 |
29 enum EnumWithNumbers { | 31 enum EnumWithNumbers { |
30 k_2_1 = 4 | 32 k_2_1 = 4, |
31 }; | 33 }; |
32 | 34 |
33 enum EnumWithK { | 35 enum EnumWithK { |
34 K = 0 | 36 K = 0, |
35 }; | 37 }; |
36 | 38 |
37 struct Edge { | 39 struct Edge { |
38 Vertex? v; | 40 Vertex? v; |
39 }; | 41 }; |
40 | 42 |
41 struct Vertex { | 43 struct Vertex { |
42 EmptyStruct? e; | 44 EmptyStruct? e; |
43 }; | 45 }; |
44 | 46 |
45 struct EmptyStruct { | 47 struct EmptyStruct {}; |
46 }; | |
47 | 48 |
48 struct A { | 49 struct A { |
49 B? b; | 50 B? b; |
50 }; | 51 }; |
51 | 52 |
52 struct B { | 53 struct B { |
53 A? a; | 54 A? a; |
54 }; | 55 }; |
55 | 56 |
56 enum EnumWithINTERNALAllCaps { | 57 enum EnumWithINTERNALAllCaps { |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 BOOL_THING, | 101 BOOL_THING, |
101 DOUBLE_THING, | 102 DOUBLE_THING, |
102 FLOAT_THING, | 103 FLOAT_THING, |
103 INT8_THING, | 104 INT8_THING, |
104 INT16THING, | 105 INT16THING, |
105 INT32_TH1NG, | 106 INT32_TH1NG, |
106 INT64_Th1ng, | 107 INT64_Th1ng, |
107 UINT8T_h1ng, | 108 UINT8T_h1ng, |
108 UINT16t_h1NG, | 109 UINT16t_h1NG, |
109 UINT32_TH1ng, | 110 UINT32_TH1ng, |
110 UINT64_TH1NG | 111 UINT64_TH1NG, |
111 }; | 112 }; |
OLD | NEW |