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

Unified Diff: net/cert/internal/verify_certificate_chain_typed_unittest.h

Issue 2860853003: Add tests for VerifyCertificateChain() when the last certificate is not (Closed)
Patch Set: update for ios Created 3 years, 7 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_typed_unittest.h
diff --git a/net/cert/internal/verify_certificate_chain_typed_unittest.h b/net/cert/internal/verify_certificate_chain_typed_unittest.h
index 63bba1c64cae0844be937bc49b0ffd63a5055484..c2228dab47f8a0fa494bc6628e01dc328a364c1b 100644
--- a/net/cert/internal/verify_certificate_chain_typed_unittest.h
+++ b/net/cert/internal/verify_certificate_chain_typed_unittest.h
@@ -81,6 +81,11 @@ TYPED_TEST_P(VerifyCertificateChainSingleRootTest, WrongSignature) {
this->RunTest("incorrect-trust-anchor/main.test");
}
+TYPED_TEST_P(VerifyCertificateChainSingleRootTest, LastCertificateNotTrusted) {
+ this->RunTest("target-and-intermediate/distrusted-root.test");
+ this->RunTest("target-and-intermediate/unspecified-trust-root.test");
+}
+
TYPED_TEST_P(VerifyCertificateChainSingleRootTest, TargetSignedBy512bitRsa) {
this->RunTest("target-signed-by-512bit-rsa/main.test");
}
@@ -155,6 +160,7 @@ REGISTER_TYPED_TEST_CASE_P(VerifyCertificateChainSingleRootTest,
UnknownExtension,
Md5,
WrongSignature,
+ LastCertificateNotTrusted,
TargetSignedBy512bitRsa,
TargetSignedUsingEcdsa,
Expired,

Powered by Google App Engine
This is Rietveld 408576698