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

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

Issue 1142043005: Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix type conversion errors on win64 for some msvs 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 side-by-side diff with in-line comments
Download patch
Index: third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_unions.mojom
diff --git a/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_unions.mojom b/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_unions.mojom
index 4e7a540d02f6e3a09267ff946ab045eba10f4f10..6c573bce1404ae75e8753272e22668fdedadaca7 100644
--- a/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_unions.mojom
+++ b/third_party/mojo/src/mojo/public/interfaces/bindings/tests/test_unions.mojom
@@ -40,6 +40,11 @@ union HandleUnion {
handle<data_pipe_consumer> f_data_pipe_consumer;
handle<data_pipe_producer> f_data_pipe_producer;
handle<shared_buffer> f_shared_buffer;
+ SmallCache f_small_cache;
+};
+
+struct HandleStruct {
+ SmallCache f_small_cache;
};
struct DummyStruct {
@@ -50,8 +55,10 @@ struct SmallStruct {
DummyStruct? dummy_struct;
PodUnion? pod_union;
array<PodUnion>? pod_union_array;
+ array<PodUnion?>? nullable_pod_union_array;
array<DummyStruct>? s_array;
map<string, PodUnion>? pod_union_map;
+ map<string, PodUnion?>? nullable_pod_union_map;
};
struct SmallStructNonNullableUnion {
@@ -61,3 +68,12 @@ struct SmallStructNonNullableUnion {
struct SmallObjStruct {
ObjectUnion obj_union;
};
+
+interface SmallCache {
+ SetIntValue(int64 int_value);
+ GetIntValue() => (int64 int_value);
+};
+
+interface UnionInterface {
+ Echo(PodUnion in) => (PodUnion out);
+};
« 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