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

Issue 307353009: Mojo cpp bindings: report the reason of validation failure. (Closed)

Created:
6 years, 6 months ago by yzshen1
Modified:
6 years, 6 months ago
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
Visibility:
Public.

Description

Mojo cpp bindings: report the reason of validation failure. Validation errors are written to stderr and also used in validation tests. This CL also changes MessageHeaderValidator to use the same struct header validation code as other structs. BUG=None TEST=validation_unittest.cc

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+216 lines, -40 lines) Patch
M mojo/mojo_public.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/array_internal.h View 3 chunks +15 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/lib/array_internal.cc View 1 chunk +3 lines, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/bindings_serialization.cc View 2 chunks +14 lines, -4 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message_header_validator.cc View 2 chunks +28 lines, -22 lines 0 comments Download
A mojo/public/cpp/bindings/lib/validation_errors.h View 1 chunk +66 lines, -0 lines 0 comments Download
A mojo/public/cpp/bindings/lib/validation_errors.cc View 1 chunk +62 lines, -0 lines 0 comments Download
M mojo/public/cpp/bindings/tests/validation_unittest.cc View 3 chunks +12 lines, -2 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/data/validate_header_bad_empty.expected View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/data/validate_header_bad_too_small.expected View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/interfaces/bindings/tests/data/validate_header_bad_zeros.expected View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl View 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/tools/bindings/generators/cpp_templates/struct_macros.tmpl View 1 chunk +8 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
yzshen1
Hi, Darin. Would you please take a look? Thanks!
6 years, 6 months ago (2014-06-03 21:00:01 UTC) #1
darin (slow to review)
Nice, LGTM! I wonder if we shouldn't do more to enable these code paths to ...
6 years, 6 months ago (2014-06-03 22:47:49 UTC) #2
yzshen1
On 2014/06/03 22:47:49, darin wrote: > Nice, LGTM! > > I wonder if we shouldn't ...
6 years, 6 months ago (2014-06-04 04:28:56 UTC) #3
darin (slow to review)
Good point. No worries! -Darin On Tue, Jun 3, 2014 at 9:28 PM, <yzshen@chromium.org> wrote: ...
6 years, 6 months ago (2014-06-04 04:37:40 UTC) #4
yzshen1
The CQ bit was checked by yzshen@chromium.org
6 years, 6 months ago (2014-06-04 04:48:56 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yzshen@chromium.org/307353009/1
6 years, 6 months ago (2014-06-04 04:50:22 UTC) #6
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: chromium_presubmit on tryserver.chromium ...
6 years, 6 months ago (2014-06-04 10:52:29 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-04 10:58:41 UTC) #8
commit-bot: I haz the power
6 years, 6 months ago (2014-06-04 10:58:43 UTC) #9
Try jobs failed on following builders:
  chromium_presubmit on tryserver.chromium
(http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/bu...)

Powered by Google App Engine
This is Rietveld 408576698