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

Issue 9663017: net: add OCSP tests. (Closed)

Created:
8 years, 9 months ago by agl
Modified:
8 years, 9 months ago
Reviewers:
wtc, Ryan Sleevi
CC:
chromium-reviews, pam+watch_chromium.org, cbentzel+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

net: add OCSP tests. I was getting increasingly unhappy altering EV and revocation checking semantics without any tests. We historically haven't had tests because online revocation checking is inherently flaky so I amended testserver with the minimum code to be able to sign and vend OCSP responses. These tests do not test the final EV/CRLSet/revocation checking semantics. They are intended to be altered in future CLs. Adding the EV policy is a little messy, but then so is altering the EV policy database to be mutable in unittests. Since nobody outside of the the unittests will trust the "Testing CA", the additional OID should be moot. (The policy OID has been allocated from Google's arc.) BUG=none TEST=net_unittests

Patch Set 1 #

Patch Set 2 : ... #

Patch Set 3 : ... #

Total comments: 10

Patch Set 4 : ... #

Total comments: 7

Patch Set 5 : ... #

Total comments: 17

Patch Set 6 : ... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+830 lines, -37 lines) Patch
M net/data/ssl/certificates/README View 1 chunk +3 lines, -0 lines 0 comments Download
A net/data/ssl/certificates/ocsp-test-root.pem View 1 1 chunk +51 lines, -0 lines 0 comments Download
M net/ocsp/nss_ocsp.cc View 1 2 3 4 5 3 chunks +3 lines, -9 lines 0 comments Download
M net/test/base_test_server.h View 1 2 3 4 3 chunks +21 lines, -0 lines 0 comments Download
M net/test/base_test_server.cc View 1 2 3 4 3 chunks +36 lines, -8 lines 0 comments Download
A net/tools/testserver/asn1.py View 1 2 3 4 5 1 chunk +165 lines, -0 lines 0 comments Download
A net/tools/testserver/minica.py View 1 2 3 4 5 1 chunk +328 lines, -0 lines 0 comments Download
M net/tools/testserver/testserver.py View 1 2 3 4 5 6 chunks +93 lines, -20 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 4 4 chunks +130 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
agl
8 years, 9 months ago (2012-03-09 20:29:22 UTC) #1
Ryan Sleevi
Adam: I think it's a good idea to add tests, but I have some concerns. ...
8 years, 9 months ago (2012-03-09 22:07:53 UTC) #2
agl
I've split the ASN.1 Python code off into it's own file but haven't split the ...
8 years, 9 months ago (2012-03-13 22:24:28 UTC) #3
Ryan Sleevi
Sorry, you're right - the Chromium style is PEP-8 + two spaces (instead of 4) ...
8 years, 9 months ago (2012-03-13 23:06:39 UTC) #4
agl
Hardcoding the key into testserver.py is a little unfortunate. But loading it (and the cert) ...
8 years, 9 months ago (2012-03-13 23:44:03 UTC) #5
Ryan Sleevi
https://chromiumcodereview.appspot.com/9663017/diff/12001/net/ocsp/nss_ocsp.cc File net/ocsp/nss_ocsp.cc (right): https://chromiumcodereview.appspot.com/9663017/diff/12001/net/ocsp/nss_ocsp.cc#newcode526 net/ocsp/nss_ocsp.cc:526: while (!requests_.empty()) { On 2012/03/13 23:44:03, agl wrote: > ...
8 years, 9 months ago (2012-03-13 23:50:19 UTC) #6
agl
On Tue, Mar 13, 2012 at 7:50 PM, <rsleevi@chromium.org> wrote: > For unit tests that ...
8 years, 9 months ago (2012-03-13 23:54:36 UTC) #7
Ryan Sleevi
agl: Looks like you landed in http://crrev.com/127680 - should this review be closed?
8 years, 9 months ago (2012-03-20 18:51:08 UTC) #8
agl
8 years, 9 months ago (2012-03-20 18:52:36 UTC) #9
On 2012/03/20 18:51:08, Ryan Sleevi wrote:
> agl: Looks like you landed in http://crrev.com/127680 - should this review be
> closed?

Yep, sorry. With the reverts and such it didn't happen automatically.

Powered by Google App Engine
This is Rietveld 408576698