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

Unified Diff: mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd11_num_bytes_version_mismatch_2.data

Issue 951573002: Add validation test cases for struct versioning. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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/data/validation/conformance_mthd11_num_bytes_version_mismatch_2.data
diff --git a/mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd11_num_bytes_version_mismatch_2.data b/mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd11_num_bytes_version_mismatch_2.data
new file mode 100644
index 0000000000000000000000000000000000000000..f9457f7c0f21f4867fc34c03b0d01b5df861951c
--- /dev/null
+++ b/mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd11_num_bytes_version_mismatch_2.data
@@ -0,0 +1,17 @@
+[dist4]message_header // num_bytes
+[u4]2 // version
+[u4]11 // name
+[u4]0 // flags
+[anchr]message_header
+
+[dist4]method11_params // num_bytes
+[u4]1 // version
+[dist8]param0_ptr // param0
+[anchr]method11_params
+
+[anchr]param0_ptr
+[dist4]struct_g // num_bytes: The size is too small for the version.
+[u4]2 // version
+[s4]123 // i
+[u4]0 // padding
+[anchr]struct_g

Powered by Google App Engine
This is Rietveld 408576698