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

Unified Diff: net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-unconstrained-root.py

Issue 2801813004: Refactor VerifyCertificateChain test data to include a key purpose (Closed)
Patch Set: Address mattm's comment Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-unconstrained-root.py
diff --git a/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-unconstrained-root.py b/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-unconstrained-root.py
index d51a38a45fb0afd0bd5ab2f78a94479bba76ccd6..1a83ab014fc323c03939038f9d334b442e17e18e 100755
--- a/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-unconstrained-root.py
+++ b/net/data/verify_certificate_chain_unittest/generate-violates-pathlen-1-unconstrained-root.py
@@ -27,7 +27,9 @@ target = common.create_end_entity_certificate('Target', intermediate2)
chain = [target, intermediate2, intermediate1]
trusted = common.TrustAnchor(root, constrained=False)
time = common.DEFAULT_TIME
+key_purpose = common.DEFAULT_KEY_PURPOSE
verify_result = True
errors = None
-common.write_test_file(__doc__, chain, trusted, time, verify_result, errors)
+common.write_test_file(__doc__, chain, trusted, time, key_purpose,
+ verify_result, errors)

Powered by Google App Engine
This is Rietveld 408576698