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

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

Issue 2093223002: Allow Cast certificates to have serial numbers greater than 20 bytes, as well as non-minimal INTEGE… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
« no previous file with comments | « net/cert/internal/verify_certificate_chain_pkits_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 a4443ca2d1c61d60b6c5d43b0d8a67d8aff5ff6d..3c5749943a2937585b9803faa9c5bed23d0b4a97 100644
--- a/net/cert/internal/verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/verify_certificate_chain_unittest.cc
@@ -107,8 +107,8 @@ void RunTest(const char* file_name) {
SimpleSignaturePolicy signature_policy(1024);
- bool result =
- VerifyCertificateChain(input_chain, trust_store, &signature_policy, time);
+ bool result = VerifyCertificateChain(input_chain, {}, trust_store,
+ &signature_policy, time);
ASSERT_EQ(expected_result, result);
}
@@ -229,7 +229,7 @@ TEST(VerifyCertificateChainTest, EmptyChainIsInvalid) {
SimpleSignaturePolicy signature_policy(2048);
ASSERT_FALSE(
- VerifyCertificateChain(chain, trust_store, &signature_policy, time));
+ VerifyCertificateChain(chain, {}, trust_store, &signature_policy, time));
}
// TODO(eroman): Add test that invalidate validity dates where the day or month
« no previous file with comments | « net/cert/internal/verify_certificate_chain_pkits_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698