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

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

Issue 651823005: mojom: Add conformance tests for map<>. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename the files per yzshen's request. Created 6 years, 2 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_mthd10_one_null_key.data
diff --git a/mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd10_one_null_key.data b/mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd10_one_null_key.data
new file mode 100644
index 0000000000000000000000000000000000000000..06b55fbf52e94e3d80f92560f108c14b4f989a5a
--- /dev/null
+++ b/mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd10_one_null_key.data
@@ -0,0 +1,38 @@
+[dist4]message_header // num_bytes
+[u4]2 // num_fields
+[u4]10 // name
+[u4]0 // flags
+[anchr]message_header
+
+[dist4]method10_params // num_bytes
+[u4]1 // num_fields
+[dist8]map_data_ptr // param0
+[anchr]method10_params
+
+[anchr]map_data_ptr
+[dist4]map_data_struct_header // num_bytes
+[u4]2 // num_elements
+[dist8]key_array_ptr
+[dist8]value_array_ptr
+[anchr]map_data_struct_header
+
+[anchr]key_array_ptr
+[dist4]key_array_member // num_bytes
+[u4]2 // num_elements
+[dist8]key_string_1
+[u8]0 // one null key
+[anchr]key_array_member
+
+[anchr]key_string_1
+[dist4]key_string_1_member // num_bytes
+[u4]5 // num_elements
+0 1 2 3 4
+[anchr]key_string_1_member
+
+[u4]0 [u4]0 [u1]0 [u1]0 [u1]0 // manual padding for array alignment
+
+[anchr]value_array_ptr
+[dist4]value_array_member // num_bytes
+[u4]2 // num_elements
+1 2
+[anchr]value_array_member

Powered by Google App Engine
This is Rietveld 408576698