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

Unified Diff: tools/json_schema_compiler/test/idl_basics.idl

Issue 1982193002: Add enum class support to json_schema_compiler (idl files) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: I accidentally a patchset dependency Created 4 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
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | tools/json_schema_compiler/test/idl_schemas_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/json_schema_compiler/test/idl_basics.idl
diff --git a/tools/json_schema_compiler/test/idl_basics.idl b/tools/json_schema_compiler/test/idl_basics.idl
index bfa49dce7f41e1d46bb5432bb8a9ca8676011108..b8daa200076df39f254a491305a7cf6c543c9d6b 100644
--- a/tools/json_schema_compiler/test/idl_basics.idl
+++ b/tools/json_schema_compiler/test/idl_basics.idl
@@ -17,6 +17,21 @@
name2
};
+ [cpp_enum_prefix_override="prefix"] enum EnumWithPrefix {
+ name1,
+ name2
+ };
+
+ [enum_class] enum EnumClass {
+ name1,
+ name2
+ };
+
+ [enum_class,cpp_enum_prefix_override="prefix"] enum EnumClassWithPrefix {
+ name1,
+ name2
+ };
+
dictionary MyType1 {
// This comment tests "double-quotes".
[legalValues=(1,2)] long x;
@@ -31,6 +46,13 @@
DOMString x;
};
+ dictionary MyType3 {
+ EnumType w;
+ EnumWithPrefix x;
+ EnumClass y;
+ EnumClassWithPrefix z;
+ };
+
dictionary UnionType {
(EnumType or DOMString)? x;
(DOMString or EnumType) y;
« no previous file with comments | « tools/json_schema_compiler/model.py ('k') | tools/json_schema_compiler/test/idl_schemas_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698