Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom

Issue 951573002: Add validation test cases for struct versioning. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 13 matching lines...) Expand all
24 24
25 struct StructE { 25 struct StructE {
26 StructD struct_d; 26 StructD struct_d;
27 handle<data_pipe_consumer> data_pipe_consumer; 27 handle<data_pipe_consumer> data_pipe_consumer;
28 }; 28 };
29 29
30 struct StructF { 30 struct StructF {
31 array<uint8, 3> fixed_size_array; 31 array<uint8, 3> fixed_size_array;
32 }; 32 };
33 33
34 struct StructG {
35 int32 i;
36 [MinVersion=1]
37 StructA? struct_a;
38 [MinVersion=3]
39 string? str;
40 [MinVersion=3]
41 bool b;
42 };
43
34 interface ConformanceTestInterface { 44 interface ConformanceTestInterface {
35 Method0(float param0); 45 Method0(float param0);
36 Method1(StructA param0); 46 Method1(StructA param0);
37 Method2(StructB param0, StructA param1); 47 Method2(StructB param0, StructA param1);
38 Method3(array<bool> param0); 48 Method3(array<bool> param0);
39 Method4(StructC param0, array<uint8> param1); 49 Method4(StructC param0, array<uint8> param1);
40 Method5(StructE param0, handle<data_pipe_producer> param1); 50 Method5(StructE param0, handle<data_pipe_producer> param1);
41 Method6(array<array<uint8>> param0); 51 Method6(array<array<uint8>> param0);
42 Method7(StructF param0, array<array<uint8, 3>?, 2> param1); 52 Method7(StructF param0, array<array<uint8, 3>?, 2> param1);
43 Method8(array<array<string>?> param0); 53 Method8(array<array<string>?> param0);
44 Method9(array<array<handle?>>? param0); 54 Method9(array<array<handle?>>? param0);
45 Method10(map<string, uint8> param0); 55 Method10(map<string, uint8> param0);
56 Method11(StructG param0);
46 }; 57 };
47 58
48 struct BasicStruct { 59 struct BasicStruct {
49 int32 a; 60 int32 a;
50 }; 61 };
51 62
52 interface IntegrationTestInterface { 63 interface IntegrationTestInterface {
53 Method0(BasicStruct param0) => (array<uint8> param0); 64 Method0(BasicStruct param0) => (array<uint8> param0);
54 }; 65 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698