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

Issue 2036623002: Validate map keys in C++ Mojo bindings (Closed)

Created:
4 years, 6 months ago by tibell
Modified:
4 years, 6 months ago
Reviewers:
yzshen1
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, darin (slow to review), ben+mojo_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Validate map keys in C++ Mojo bindings BUG=616649 TESTED=mojo_public_bindings_unittests Committed: https://crrev.com/29d59af2f65f5c8929521ba0f09e86ae75f26e63 Cr-Commit-Position: refs/heads/master@{#397955}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 12

Patch Set 3 : Address review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -85 lines) Patch
M mojo/public/cpp/bindings/lib/map_data_internal.h View 1 2 4 chunks +8 lines, -37 lines 0 comments Download
M mojo/public/cpp/bindings/lib/map_serialization.h View 1 2 chunks +8 lines, -8 lines 0 comments Download
M mojo/public/cpp/bindings/lib/validate_params.h View 1 2 1 chunk +35 lines, -11 lines 0 comments Download
M mojo/public/cpp/bindings/lib/validation_util.h View 1 chunk +2 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/map_unittest.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/tests/union_unittest.cc View 2 chunks +6 lines, -2 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd16_uknown_non_extensible_enum_map_key.data View 1 2 1 chunk +14 lines, -5 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd16_uknown_non_extensible_enum_map_key.expected View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd16_uknown_non_extensible_enum_map_value.data View 1 2 1 chunk +14 lines, -5 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd16_uknown_non_extensible_enum_map_value.expected View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/validation_macros.tmpl View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/mojom_cpp_generator.py View 1 4 chunks +14 lines, -14 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (5 generated)
tibell
I will rename ArrayValidateParams to ContainerValidateParams in a subsequent CL, to keep this CL smallish.
4 years, 6 months ago (2016-06-02 01:45:01 UTC) #2
yzshen1
https://codereview.chromium.org/2036623002/diff/20001/mojo/public/cpp/bindings/lib/map_data_internal.h File mojo/public/cpp/bindings/lib/map_data_internal.h (right): https://codereview.chromium.org/2036623002/diff/20001/mojo/public/cpp/bindings/lib/map_data_internal.h#newcode26 mojo/public/cpp/bindings/lib/map_data_internal.h:26: // ||element_validate_params| members. "||" -> "|" https://codereview.chromium.org/2036623002/diff/20001/mojo/public/cpp/bindings/lib/validate_params.h File mojo/public/cpp/bindings/lib/validate_params.h ...
4 years, 6 months ago (2016-06-02 19:52:28 UTC) #3
yzshen1
https://codereview.chromium.org/2036623002/diff/20001/mojo/public/cpp/bindings/lib/validate_params.h File mojo/public/cpp/bindings/lib/validate_params.h (right): https://codereview.chromium.org/2036623002/diff/20001/mojo/public/cpp/bindings/lib/validate_params.h#newcode77 mojo/public/cpp/bindings/lib/validate_params.h:77: // Validation information for elements. It is either a ...
4 years, 6 months ago (2016-06-02 19:59:41 UTC) #4
tibell
https://codereview.chromium.org/2036623002/diff/20001/mojo/public/cpp/bindings/lib/map_data_internal.h File mojo/public/cpp/bindings/lib/map_data_internal.h (right): https://codereview.chromium.org/2036623002/diff/20001/mojo/public/cpp/bindings/lib/map_data_internal.h#newcode26 mojo/public/cpp/bindings/lib/map_data_internal.h:26: // ||element_validate_params| members. On 2016/06/02 19:52:28, yzshen1 wrote: > ...
4 years, 6 months ago (2016-06-02 23:55:02 UTC) #5
yzshen1
LGTM
4 years, 6 months ago (2016-06-02 23:57:05 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036623002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2036623002/40001
4 years, 6 months ago (2016-06-03 00:04:40 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/223966)
4 years, 6 months ago (2016-06-03 03:34:03 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2036623002/40001
4 years, 6 months ago (2016-06-05 23:31:01 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-06 00:41:38 UTC) #13
commit-bot: I haz the power
4 years, 6 months ago (2016-06-06 00:44:17 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/29d59af2f65f5c8929521ba0f09e86ae75f26e63
Cr-Commit-Position: refs/heads/master@{#397955}

Powered by Google App Engine
This is Rietveld 408576698