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

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

Issue 2832703002: Allow the TrustStore interface to return matching intermediates, and identify distrusted certs. (Closed)
Patch Set: fix cert_verify_tool 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/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 62d3b3b3bbe86042dc3fc92a59a99c6eff7ba097..694cd65778e447612220834a18119d0ee96b0f29 100644
--- a/net/cert/internal/verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/verify_certificate_chain_unittest.cc
@@ -16,18 +16,15 @@ class VerifyCertificateChainDelegate {
public:
static void Verify(const VerifyCertChainTest& test,
const std::string& test_file_path) {
- ASSERT_TRUE(test.trust_anchor);
-
SimpleSignaturePolicy signature_policy(1024);
CertPathErrors errors;
- bool result = VerifyCertificateChain(test.chain, test.trust_anchor.get(),
- &signature_policy, test.time,
- test.key_purpose, &errors);
+ VerifyCertificateChain(test.chain, test.last_cert_trust, &signature_policy,
+ test.time, test.key_purpose, &errors);
+ bool result = !errors.ContainsHighSeverityErrors();
EXPECT_EQ(test.expected_result, result);
EXPECT_EQ(test.expected_errors, errors.ToDebugString(test.chain))
<< "Test file: " << test_file_path;
- EXPECT_EQ(result, !errors.ContainsHighSeverityErrors());
}
};

Powered by Google App Engine
This is Rietveld 408576698