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

Unified Diff: net/data/verify_certificate_chain_unittest/generate-incorrect-trust-anchor.py

Issue 2329593002: Add optional context for certificate errors. (Closed)
Patch Set: Address Matt's comments Created 4 years, 3 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-incorrect-trust-anchor.py
diff --git a/net/data/verify_certificate_chain_unittest/generate-incorrect-trust-anchor.py b/net/data/verify_certificate_chain_unittest/generate-incorrect-trust-anchor.py
index 14e541ba526fabab9770b1b2e48229ed8d77a313..22a1e0acf96141aef1b5e55f29e687b56087c475 100755
--- a/net/data/verify_certificate_chain_unittest/generate-incorrect-trust-anchor.py
+++ b/net/data/verify_certificate_chain_unittest/generate-incorrect-trust-anchor.py
@@ -26,7 +26,10 @@ chain = [target, intermediate]
trusted = common.TrustAnchor(bogus_root, constrained=False)
time = common.DEFAULT_TIME
verify_result = False
-errors = """Signature verification failed
-VerifySignedData failed"""
+errors = """[Context] Processing Certificate
+ index: 0
+ [Error] Signature verification failed
+ [Error] VerifySignedData failed
+"""
common.write_test_file(__doc__, chain, trusted, time, verify_result, errors)

Powered by Google App Engine
This is Rietveld 408576698