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

Issue 2680933009: Add unittests for HSTS decoding. (Closed)

Created:
3 years, 10 months ago by martijnc
Modified:
3 years, 9 months ago
Reviewers:
brettw, Ryan Sleevi
CC:
cbentzel+watch_chromium.org, chromium-reviews, lgarron, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add unittests for HSTS decoding. Add end-to-end tests for the decoding of the preloaded transport security state. Specifically, test that the Chromium code (net::DecodeHSTSPreload) can extract the data the generator encoded in the preloaded data. Review-Url: https://codereview.chromium.org/2680933009 Cr-Commit-Position: refs/heads/master@{#458485} Committed: https://chromium.googlesource.com/chromium/src/+/d369e670383cdee6cb66a4469b36e5308ed00aa2

Patch Set 1 : rebase #

Patch Set 2 : Add unittests for HSTS decoding. #

Patch Set 3 : Add unittests for HSTS decoding. #

Patch Set 4 : updates #

Patch Set 5 : -struct #

Total comments: 10

Patch Set 6 : rebase & comments rsleevi. #

Total comments: 2

Patch Set 7 : Comments brettw. #

Patch Set 8 : Move template file. #

Patch Set 9 : Comment rsleevi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+576 lines, -33 lines) Patch
M net/BUILD.gn View 1 2 3 4 5 6 2 chunks +1 line, -33 lines 0 comments Download
A net/http/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +26 lines, -0 lines 0 comments Download
A net/http/transport_security_state_static_unittest.pins View 1 2 3 4 5 6 7 8 1 chunk +12 lines, -0 lines 0 comments Download
A net/http/transport_security_state_static_unittest.template View 1 2 3 4 5 6 7 8 1 chunk +48 lines, -0 lines 0 comments Download
A net/http/transport_security_state_static_unittest1.json View 1 2 3 4 5 6 7 8 1 chunk +38 lines, -0 lines 0 comments Download
A net/http/transport_security_state_static_unittest2.json View 1 2 3 4 5 6 7 8 1 chunk +61 lines, -0 lines 0 comments Download
A net/http/transport_security_state_static_unittest3.json View 1 2 3 4 5 6 7 8 1 chunk +69 lines, -0 lines 0 comments Download
M net/http/transport_security_state_unittest.cc View 1 2 3 4 5 6 7 8 4 chunks +285 lines, -0 lines 0 comments Download
A net/tools/transport_security_state_generator/BUILD.gn View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download

Messages

Total messages: 37 (29 generated)
Ryan Sleevi
So we're in the home stretch! I avoided the LG on this because it may ...
3 years, 9 months ago (2017-03-17 22:17:38 UTC) #10
martijnc
+brettw: can you take a look at the GN files (see comments)? Thanks! https://codereview.chromium.org/2680933009/diff/120001/net/http/transport_security_state_unittest.cc File ...
3 years, 9 months ago (2017-03-18 21:36:05 UTC) #20
brettw
It's not a hard requirement, but the build files should generally go with the source ...
3 years, 9 months ago (2017-03-20 20:42:41 UTC) #21
martijnc
Thanks for the feedback. I've moved the GN configs around like you proposed. https://codereview.chromium.org/2680933009/diff/200001/net/tools/transport_security_state_generator/BUILD.gn File ...
3 years, 9 months ago (2017-03-20 21:46:25 UTC) #25
Ryan Sleevi
LGTM % nit Note: It's good to split rebasing and feedback into separate uploads - ...
3 years, 9 months ago (2017-03-21 03:24:36 UTC) #26
martijnc
https://codereview.chromium.org/2680933009/diff/120001/net/http/transport_security_state_unittest.cc File net/http/transport_security_state_unittest.cc (right): https://codereview.chromium.org/2680933009/diff/120001/net/http/transport_security_state_unittest.cc#newcode2045 net/http/transport_security_state_unittest.cc:2045: SetTransportSecurityStateSourceForTesting(nullptr); On 2017/03/21 at 03:24:36, Ryan Sleevi (conf till ...
3 years, 9 months ago (2017-03-21 17:19:18 UTC) #29
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/2680933009/280001
3 years, 9 months ago (2017-03-21 18:24:42 UTC) #34
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 18:37:38 UTC) #37
Message was sent while issue was closed.
Committed patchset #9 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/d369e670383cdee6cb66a4469b36...

Powered by Google App Engine
This is Rietveld 408576698