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

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

Issue 1157843002: Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 22 matching lines...) Expand all
33 map<string, int8> f_map_int8; 33 map<string, int8> f_map_int8;
34 PodUnion f_pod_union; 34 PodUnion f_pod_union;
35 }; 35 };
36 36
37 union HandleUnion { 37 union HandleUnion {
38 handle f_handle; 38 handle f_handle;
39 handle<message_pipe> f_message_pipe; 39 handle<message_pipe> f_message_pipe;
40 handle<data_pipe_consumer> f_data_pipe_consumer; 40 handle<data_pipe_consumer> f_data_pipe_consumer;
41 handle<data_pipe_producer> f_data_pipe_producer; 41 handle<data_pipe_producer> f_data_pipe_producer;
42 handle<shared_buffer> f_shared_buffer; 42 handle<shared_buffer> f_shared_buffer;
43 SmallCache f_small_cache;
44 };
45
46 struct HandleStruct {
47 SmallCache f_small_cache;
43 }; 48 };
44 49
45 struct DummyStruct { 50 struct DummyStruct {
46 int8 f_int8; 51 int8 f_int8;
47 }; 52 };
48 53
49 struct SmallStruct { 54 struct SmallStruct {
50 DummyStruct? dummy_struct; 55 DummyStruct? dummy_struct;
51 PodUnion? pod_union; 56 PodUnion? pod_union;
52 array<PodUnion>? pod_union_array; 57 array<PodUnion>? pod_union_array;
58 array<PodUnion?>? nullable_pod_union_array;
53 array<DummyStruct>? s_array; 59 array<DummyStruct>? s_array;
54 map<string, PodUnion>? pod_union_map; 60 map<string, PodUnion>? pod_union_map;
61 map<string, PodUnion?>? nullable_pod_union_map;
55 }; 62 };
56 63
57 struct SmallStructNonNullableUnion { 64 struct SmallStructNonNullableUnion {
58 PodUnion pod_union; 65 PodUnion pod_union;
59 }; 66 };
60 67
61 struct SmallObjStruct { 68 struct SmallObjStruct {
62 ObjectUnion obj_union; 69 ObjectUnion obj_union;
63 }; 70 };
71
72 interface SmallCache {
73 SetIntValue(int64 int_value);
74 GetIntValue() => (int64 int_value);
75 };
76
77 interface UnionInterface {
78 Echo(PodUnion in) => (PodUnion out);
79 };
OLDNEW
« no previous file with comments | « third_party/mojo/src/mojo/public/interfaces/bindings/tests/BUILD.gn ('k') | third_party/mojo/src/mojo/public/java/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698