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

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

Issue 1127293003: Update mojo sdk to rev f84766d3b6420b7cf6a113d9d65d73cb5fe18d90 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: formatting 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 cda5be4c48ba10b7e88d91b599f927d1374bf7d4..4e7a540d02f6e3a09267ff946ab045eba10f4f10 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
@@ -4,6 +4,10 @@
module mojo.test;
+enum AnEnum {
+ FIRST, SECOND
+};
+
union PodUnion {
int8 f_int8;
int8 f_int8_other;
@@ -17,6 +21,7 @@ union PodUnion {
float f_float;
double f_double;
bool f_bool;
+ AnEnum f_enum;
};
union ObjectUnion {
@@ -26,6 +31,15 @@ union ObjectUnion {
DummyStruct? f_nullable;
array<int8> f_array_int8;
map<string, int8> f_map_int8;
+ PodUnion f_pod_union;
+};
+
+union HandleUnion {
+ handle f_handle;
+ handle<message_pipe> f_message_pipe;
+ handle<data_pipe_consumer> f_data_pipe_consumer;
+ handle<data_pipe_producer> f_data_pipe_producer;
+ handle<shared_buffer> f_shared_buffer;
};
struct DummyStruct {

Powered by Google App Engine
This is Rietveld 408576698