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

Issue 2359003003: Convert tests that parse a BasicConstraints value to instead (Closed)

Created:
4 years, 3 months ago by eroman
Modified:
4 years, 3 months ago
Reviewers:
mattm
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert tests that parse a BasicConstraints value to instead parse an entire Certificate. (Part of a series of changes for simplifying the parsing tests to be in terms of just certificates for consistent entry point and expectations) BUG=634443 Committed: https://crrev.com/07f7dafbfff3d483be66ddd85e1ed516f162e744 Cr-Commit-Position: refs/heads/master@{#420524}

Patch Set 1 #

Patch Set 2 : Simplify #

Total comments: 10

Patch Set 3 : Address mattm's feedback #

Total comments: 2

Patch Set 4 : fix comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+425 lines, -132 lines) Patch
M net/cert/internal/parse_certificate_unittest.cc View 1 2 3 3 chunks +96 lines, -68 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_ca_false.pem View 1 chunk +10 lines, -6 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_ca_no_path.pem View 1 chunk +10 lines, -6 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_ca_path_9.pem View 1 chunk +11 lines, -7 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_negative_path.pem View 1 chunk +11 lines, -7 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_not_ca.pem View 1 chunk +8 lines, -5 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_path_too_large.pem View 1 chunk +11 lines, -7 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_pathlen_255.pem View 1 chunk +11 lines, -7 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_pathlen_256.pem View 1 chunk +11 lines, -7 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_pathlen_not_ca.pem View 1 chunk +10 lines, -6 lines 0 comments Download
M net/data/parse_certificate_unittest/basic_constraints_unconsumed_data.pem View 1 chunk +10 lines, -6 lines 0 comments Download
A net/data/parse_certificate_unittest/regenerate_pem_from_ascii.py View 1 2 1 chunk +104 lines, -0 lines 0 comments Download
A net/data/parse_certificate_unittest/v3_certificate_template.txt View 1 2 1 chunk +122 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (16 generated)
eroman
(Per discussion over email)
4 years, 3 months ago (2016-09-22 01:05:33 UTC) #6
mattm
https://codereview.chromium.org/2359003003/diff/20001/net/cert/internal/parse_certificate_unittest.cc File net/cert/internal/parse_certificate_unittest.cc (right): https://codereview.chromium.org/2359003003/diff/20001/net/cert/internal/parse_certificate_unittest.cc#newcode662 net/cert/internal/parse_certificate_unittest.cc:662: ASSERT_FALSE(ParseCertificateFromFile("basic_constraints_pathlen_256.pem")); Is there a TODO for adding error logging ...
4 years, 3 months ago (2016-09-22 02:48:20 UTC) #9
eroman
https://codereview.chromium.org/2359003003/diff/20001/net/cert/internal/parse_certificate_unittest.cc File net/cert/internal/parse_certificate_unittest.cc (right): https://codereview.chromium.org/2359003003/diff/20001/net/cert/internal/parse_certificate_unittest.cc#newcode662 net/cert/internal/parse_certificate_unittest.cc:662: ASSERT_FALSE(ParseCertificateFromFile("basic_constraints_pathlen_256.pem")); On 2016/09/22 02:48:19, mattm wrote: > Is there ...
4 years, 3 months ago (2016-09-22 06:13:14 UTC) #13
mattm
lgtm https://codereview.chromium.org/2359003003/diff/40001/net/cert/internal/parse_certificate_unittest.cc File net/cert/internal/parse_certificate_unittest.cc (right): https://codereview.chromium.org/2359003003/diff/40001/net/cert/internal/parse_certificate_unittest.cc#newcode105 net/cert/internal/parse_certificate_unittest.cc:105: // TODO(crbug.com/634443): Every parse failue being tested should ...
4 years, 3 months ago (2016-09-22 22:30:57 UTC) #16
eroman
https://codereview.chromium.org/2359003003/diff/40001/net/cert/internal/parse_certificate_unittest.cc File net/cert/internal/parse_certificate_unittest.cc (right): https://codereview.chromium.org/2359003003/diff/40001/net/cert/internal/parse_certificate_unittest.cc#newcode105 net/cert/internal/parse_certificate_unittest.cc:105: // TODO(crbug.com/634443): Every parse failue being tested should emit ...
4 years, 3 months ago (2016-09-22 22:45:16 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2359003003/60001
4 years, 3 months ago (2016-09-22 22:46:09 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-23 01:08:06 UTC) #22
commit-bot: I haz the power
4 years, 3 months ago (2016-09-23 01:10:45 UTC) #24
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/07f7dafbfff3d483be66ddd85e1ed516f162e744
Cr-Commit-Position: refs/heads/master@{#420524}

Powered by Google App Engine
This is Rietveld 408576698