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

Issue 322003002: Mojo message validation tests: add integration tests and move existing conformance tests. (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 message validation tests: add integration tests and move existing conformance tests. More conformance tests will come in a separate CL. BUG=None TEST=ValidationTest.*; ValidationIntegrationTest.* R=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=277334

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 4

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -62 lines) Patch
M mojo/apps/js/test/js_to_cpp_unittest.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M mojo/mojo_public.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M mojo/public/cpp/bindings/lib/message_header_validator.cc View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/router.h View 1 3 chunks +8 lines, -7 lines 0 comments Download
M mojo/public/cpp/bindings/lib/router.cc View 1 3 chunks +8 lines, -2 lines 0 comments Download
M mojo/public/cpp/bindings/lib/validation_errors.h View 1 chunk +1 line, -1 line 0 comments Download
M mojo/public/cpp/bindings/lib/validation_errors.cc View 2 chunks +7 lines, -5 lines 0 comments Download
M mojo/public/cpp/bindings/tests/validation_unittest.cc View 1 2 3 4 5 4 chunks +172 lines, -34 lines 0 comments Download
M mojo/public/interfaces/bindings/tests/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_bad_empty.data View 0 chunks +-1 lines, --1 lines 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_bad_empty.expected View 1 chunk +0 lines, -1 line 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_bad_too_small.data View 1 chunk +0 lines, -1 line 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_bad_too_small.expected View 1 chunk +0 lines, -1 line 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_bad_zeros.data View 1 chunk +0 lines, -4 lines 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_bad_zeros.expected View 1 chunk +0 lines, -1 line 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_good_simple.data View 1 chunk +0 lines, -5 lines 0 comments Download
D mojo/public/interfaces/bindings/tests/data/validate_header_good_simple.expected View 1 chunk +0 lines, -4 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_empty.data View 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_empty.expected View 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_msghdr_incomplete_struct_header.data View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_msghdr_incomplete_struct_header.expected View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_msghdr_num_bytes_less_than_struct_header.data View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_msghdr_num_bytes_less_than_struct_header.expected View 1 2 0 chunks +-1 lines, --1 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd0_good.data View 1 chunk +4 lines, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/conformance_mthd0_good.expected View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_intf1_mthd0_rqst_good.data View 1 chunk +17 lines, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_intf1_mthd0_rqst_good.expected View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_intf1_mthd0_rqst_unexpected_struct_header.data View 1 chunk +14 lines, -0 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/integration_intf1_mthd0_rqst_unexpected_struct_header.expected View 0 chunks +-1 lines, --1 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_intf2_mthd0_resp_good.data View 1 chunk +17 lines, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_intf2_mthd0_resp_good.expected View 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_intf2_mthd0_resp_unexpected_array_header.data View 1 chunk +17 lines, -0 lines 0 comments Download
A + mojo/public/interfaces/bindings/tests/data/validation/integration_intf2_mthd0_resp_unexpected_array_header.expected View 1 chunk +1 line, -1 line 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_msghdr_invalid_flags.data View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/data/validation/integration_msghdr_invalid_flags.expected View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A mojo/public/interfaces/bindings/tests/validation_test_interfaces.mojom View 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
yzshen1
Hi, Darin. Would you please take a look? Thanks!
6 years, 6 months ago (2014-06-10 03:25:10 UTC) #1
yzshen1
On 2014/06/10 03:25:10, yzshen1 wrote: > Hi, Darin. > > Would you please take a ...
6 years, 6 months ago (2014-06-12 23:02:05 UTC) #2
darin (slow to review)
LGTM https://codereview.chromium.org/322003002/diff/40001/mojo/public/cpp/bindings/lib/router.h File mojo/public/cpp/bindings/lib/router.h (right): https://codereview.chromium.org/322003002/diff/40001/mojo/public/cpp/bindings/lib/router.h#newcode58 mojo/public/cpp/bindings/lib/router.h:58: void EnableTestingMode(); another idea is to call this ...
6 years, 6 months ago (2014-06-12 23:06:56 UTC) #3
yzshen1
Thanks Darin! https://codereview.chromium.org/322003002/diff/40001/mojo/public/cpp/bindings/lib/router.h File mojo/public/cpp/bindings/lib/router.h (right): https://codereview.chromium.org/322003002/diff/40001/mojo/public/cpp/bindings/lib/router.h#newcode58 mojo/public/cpp/bindings/lib/router.h:58: void EnableTestingMode(); On 2014/06/12 23:06:56, darin wrote: ...
6 years, 6 months ago (2014-06-12 23:12:21 UTC) #4
yzshen1
The CQ bit was checked by yzshen@chromium.org
6 years, 6 months ago (2014-06-12 23:18:51 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/322003002/60001
6 years, 6 months ago (2014-06-12 23:23:17 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-13 08:00:55 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-13 08:05:50 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/chromium_presubmit/builds/73539)
6 years, 6 months ago (2014-06-13 08:05:52 UTC) #9
yzshen1
6 years, 6 months ago (2014-06-15 18:38:28 UTC) #10
Message was sent while issue was closed.
Committed patchset #6 manually as r277334.

Powered by Google App Engine
This is Rietveld 408576698