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

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

Issue 2689513003: Add field-initializing constructors to generated mojo structs. (Closed)
Patch Set: Created 3 years, 10 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_structs.mojom
diff --git a/mojo/public/interfaces/bindings/tests/test_structs.mojom b/mojo/public/interfaces/bindings/tests/test_structs.mojom
index 683f0a56a08fe68fee7ff7b3d901978c97265495..60c4245bc5846ca5d67a2f62d8fd87d05dd1ba66 100644
--- a/mojo/public/interfaces/bindings/tests/test_structs.mojom
+++ b/mojo/public/interfaces/bindings/tests/test_structs.mojom
@@ -360,6 +360,16 @@ struct MultiVersionStructV7 {
bool f_bool;
};
+// A struct where the fields are not sorted by their ordinals.
+struct ReorderedStruct {
+ [MinVersion=2]
+ int64 f_int64@3 = 3;
+ [MinVersion=4]
+ uint32 f_uint32@6 = 6;
+ [MinVersion=1]
+ int32 f_int32@1 = 1;
+};
+
// Used to verify that interfaces that are struct members can be defined in the
// same file.

Powered by Google App Engine
This is Rietveld 408576698