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 23 matching lines...) Expand all Loading... |
34 struct StructG { | 34 struct StructG { |
35 int32 i; | 35 int32 i; |
36 [MinVersion=1] | 36 [MinVersion=1] |
37 StructA? struct_a; | 37 StructA? struct_a; |
38 [MinVersion=3] | 38 [MinVersion=3] |
39 string? str; | 39 string? str; |
40 [MinVersion=3] | 40 [MinVersion=3] |
41 bool b; | 41 bool b; |
42 }; | 42 }; |
43 | 43 |
| 44 // This interface is used for testing bounds-checking in the mojom |
| 45 // binding code. If you add a method please update the files |
| 46 // ./data/validation/boundscheck_*. If you add a response please update |
| 47 // ./data/validation/resp_boundscheck_*. |
| 48 interface BoundsCheckTestInterface { |
| 49 Method0(uint8 param0) => (uint8 param0); |
| 50 Method1(uint8 param0); |
| 51 }; |
| 52 |
44 interface ConformanceTestInterface { | 53 interface ConformanceTestInterface { |
45 Method0(float param0); | 54 Method0(float param0); |
46 Method1(StructA param0); | 55 Method1(StructA param0); |
47 Method2(StructB param0, StructA param1); | 56 Method2(StructB param0, StructA param1); |
48 Method3(array<bool> param0); | 57 Method3(array<bool> param0); |
49 Method4(StructC param0, array<uint8> param1); | 58 Method4(StructC param0, array<uint8> param1); |
50 Method5(StructE param0, handle<data_pipe_producer> param1); | 59 Method5(StructE param0, handle<data_pipe_producer> param1); |
51 Method6(array<array<uint8>> param0); | 60 Method6(array<array<uint8>> param0); |
52 Method7(StructF param0, array<array<uint8, 3>?, 2> param1); | 61 Method7(StructF param0, array<array<uint8, 3>?, 2> param1); |
53 Method8(array<array<string>?> param0); | 62 Method8(array<array<string>?> param0); |
54 Method9(array<array<handle?>>? param0); | 63 Method9(array<array<handle?>>? param0); |
55 Method10(map<string, uint8> param0); | 64 Method10(map<string, uint8> param0); |
56 Method11(StructG param0); | 65 Method11(StructG param0); |
57 Method12(float param0) => (float param0); | 66 Method12(float param0) => (float param0); |
58 }; | 67 }; |
59 | 68 |
60 struct BasicStruct { | 69 struct BasicStruct { |
61 int32 a; | 70 int32 a; |
62 }; | 71 }; |
63 | 72 |
64 interface IntegrationTestInterface { | 73 interface IntegrationTestInterface { |
65 Method0(BasicStruct param0) => (array<uint8> param0); | 74 Method0(BasicStruct param0) => (array<uint8> param0); |
66 }; | 75 }; |
OLD | NEW |