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

Unified Diff: net/cert/internal/verify_certificate_chain_unittest.cc

Issue 2759023002: Improvements to the net/cert/internal error handling. (Closed)
Patch Set: fix comment Created 3 years, 9 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/cert/internal/verify_certificate_chain_unittest.cc
diff --git a/net/cert/internal/verify_certificate_chain_unittest.cc b/net/cert/internal/verify_certificate_chain_unittest.cc
index ec5f637a5a54127638c0d1cf0417e7c6a2f45283..d66f67496f2982c30497d41305a2f47223d22fdb 100644
--- a/net/cert/internal/verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/verify_certificate_chain_unittest.cc
@@ -24,14 +24,13 @@ class VerifyCertificateChainDelegate {
SimpleSignaturePolicy signature_policy(1024);
- CertErrors errors;
+ CertPathErrors errors;
bool result = VerifyCertificateChain(chain, trust_anchor.get(),
&signature_policy, time, &errors);
EXPECT_EQ(expected_result, result);
- EXPECT_EQ(expected_errors, errors.ToDebugString()) << "Test file: "
- << test_file_path;
- if (!result)
- EXPECT_FALSE(errors.empty());
+ EXPECT_EQ(expected_errors, errors.ToDebugString(chain))
+ << "Test file: " << test_file_path;
+ EXPECT_EQ(result, !errors.ContainsHighSeverityErrors());
}
};

Powered by Google App Engine
This is Rietveld 408576698