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 [DartPackage="_mojo_for_test_only", JavaPackage="org.chromium.mojo.bindings.test
.mojom.mojo"] | 6 [DartPackage="_mojo_for_test_only", 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 uint32 d; | 69 uint32 d; |
70 }; | 70 }; |
71 | 71 |
72 interface InterfaceA { | 72 interface InterfaceA { |
73 }; | 73 }; |
74 | 74 |
75 // This interface is used for testing bounds-checking in the mojom | 75 // This interface is used for testing bounds-checking in the mojom |
76 // binding code. If you add a method please update the files | 76 // binding code. If you add a method please update the files |
77 // ./data/validation/boundscheck_*. If you add a response please update | 77 // ./data/validation/boundscheck_*. If you add a response please update |
78 // ./data/validation/resp_boundscheck_*. | 78 // ./data/validation/resp_boundscheck_*. |
| 79 [ServiceName="this.is.the.service.name.for.BoundsCheckTestInterface"] |
79 interface BoundsCheckTestInterface { | 80 interface BoundsCheckTestInterface { |
80 Method0(uint8 param0) => (uint8 param0); | 81 Method0(uint8 param0) => (uint8 param0); |
81 Method1(uint8 param0); | 82 Method1(uint8 param0); |
82 }; | 83 }; |
83 | 84 |
84 interface ConformanceTestInterface { | 85 interface ConformanceTestInterface { |
85 Method0(float param0); | 86 Method0(float param0); |
86 Method1(StructA param0); | 87 Method1(StructA param0); |
87 Method2(StructB param0, StructA param1); | 88 Method2(StructB param0, StructA param1); |
88 Method3(array<bool> param0); | 89 Method3(array<bool> param0); |
(...skipping 29 matching lines...) Expand all Loading... |
118 E = 0xA | 119 E = 0xA |
119 }; | 120 }; |
120 | 121 |
121 // The enum validation function should be generated within the scope of this | 122 // The enum validation function should be generated within the scope of this |
122 // struct. | 123 // struct. |
123 struct StructWithEnum { | 124 struct StructWithEnum { |
124 enum EnumWithin { | 125 enum EnumWithin { |
125 A, B, C, D | 126 A, B, C, D |
126 }; | 127 }; |
127 }; | 128 }; |
OLD | NEW |