forked from crosswalk-project/chromium-crosswalk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate enum validation for Mojo Java bindings
BUG=581392 TESTED='build/android/test_runner.py instrumentation --test-apk MojoTest' Review-Url: https://codereview.chromium.org/1968373002 Cr-Commit-Position: refs/heads/master@{#394036}
- Loading branch information
tibell
authored and
Commit bot
committed
May 17, 2016
1 parent
481a8ec
commit 24920a6
Showing
8 changed files
with
75 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
...ndings/tests/data/validation/conformance_mthd16_uknown_non_extensible_enum_map_entry.data
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[dist4]message_header // num_bytes | ||
[u4]0 // version | ||
[u4]0 // interface ID | ||
[u4]16 // name | ||
[u4]0 // flags | ||
[u4]0 // padding | ||
[anchr]message_header | ||
|
||
[dist4]method16_params // num_bytes | ||
[u4]0 // version | ||
[dist8]map_data_ptr // param0 | ||
[anchr]method16_params | ||
|
||
[anchr]map_data_ptr | ||
[dist4]map_data_struct_header // num_bytes | ||
[u4]0 // version | ||
[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 | ||
[u4]0x5678 // Unknown value is not allowed for non-extensible | ||
// enum. | ||
[u4]1 | ||
[anchr]key_array_member | ||
|
||
[anchr]value_array_ptr | ||
[dist4]value_array_member // num_bytes | ||
[u4]2 // num_elements | ||
[u4]0x5678 // Unknown value is allowed for extensible enum. | ||
[u4]1 | ||
[anchr]value_array_member |
1 change: 1 addition & 0 deletions
1
...gs/tests/data/validation/conformance_mthd16_uknown_non_extensible_enum_map_entry.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
VALIDATION_ERROR_UNKNOWN_ENUM_VALUE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters