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

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

Issue 1125183007: Java: Implements union generation. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix validation tests. Created 5 years, 7 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 module mojo.test; 5 module mojo.test;
6 6
7 enum AnEnum { 7 enum AnEnum {
8 FIRST, SECOND 8 FIRST, SECOND
9 }; 9 };
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 }; 48 };
49 49
50 struct DummyStruct { 50 struct DummyStruct {
51 int8 f_int8; 51 int8 f_int8;
52 }; 52 };
53 53
54 struct SmallStruct { 54 struct SmallStruct {
55 DummyStruct? dummy_struct; 55 DummyStruct? dummy_struct;
56 PodUnion? pod_union; 56 PodUnion? pod_union;
57 array<PodUnion>? pod_union_array; 57 array<PodUnion>? pod_union_array;
58 array<PodUnion?>? nullable_pod_union_array;
58 array<DummyStruct>? s_array; 59 array<DummyStruct>? s_array;
59 map<string, PodUnion>? pod_union_map; 60 map<string, PodUnion>? pod_union_map;
61 map<string, PodUnion?>? nullable_pod_union_map;
60 }; 62 };
61 63
62 struct SmallStructNonNullableUnion { 64 struct SmallStructNonNullableUnion {
63 PodUnion pod_union; 65 PodUnion pod_union;
64 }; 66 };
65 67
66 struct SmallObjStruct { 68 struct SmallObjStruct {
67 ObjectUnion obj_union; 69 ObjectUnion obj_union;
68 }; 70 };
69 71
70 interface SmallCache { 72 interface SmallCache {
71 SetIntValue(int64 int_value); 73 SetIntValue(int64 int_value);
72 GetIntValue() => (int64 int_value); 74 GetIntValue() => (int64 int_value);
73 }; 75 };
74 76
75 interface UnionInterface { 77 interface UnionInterface {
76 Echo(PodUnion in) => (PodUnion out); 78 Echo(PodUnion in) => (PodUnion out);
77 }; 79 };
OLDNEW
« no previous file with comments | « mojo/android/javatests/src/org/chromium/mojo/bindings/UnionTest.java ('k') | mojo/public/java/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698