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

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

Issue 1618963006: Mojo C++ bindings: support enum validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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: mojo/public/interfaces/bindings/tests/test_unions.mojom
diff --git a/mojo/public/interfaces/bindings/tests/test_unions.mojom b/mojo/public/interfaces/bindings/tests/test_unions.mojom
index e998f47f192499be86a9af485948c74a987c7ad4..16a291a8ae068d902956b15ac823822db8f1442b 100644
--- a/mojo/public/interfaces/bindings/tests/test_unions.mojom
+++ b/mojo/public/interfaces/bindings/tests/test_unions.mojom
@@ -8,6 +8,11 @@ enum AnEnum {
FIRST, SECOND
};
+[Extensible=True]
+enum AnExtensibleEnum {
+ FIRST, SECOND, THIRD
+};
+
union PodUnion {
int8 f_int8;
int8 f_int8_other;
@@ -22,6 +27,7 @@ union PodUnion {
double f_double;
bool f_bool;
AnEnum f_enum;
+ AnExtensibleEnum f_extensible_enum;
};
union ObjectUnion {

Powered by Google App Engine
This is Rietveld 408576698