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

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

Issue 2919863003: Fix a reachable LOG(ERROR) from path builder unit-test. (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | net/cert/internal/trust_store_in_memory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
diff --git a/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc b/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
index e6dfa424ef5999defc2251526af31e8c4105b78c..ca3d81bd030240f166ff6760176b4b7812a957cc 100644
--- a/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/path_builder_verify_certificate_chain_unittest.cc
@@ -30,7 +30,7 @@ class PathBuilderDelegate {
trust_store.AddTrustAnchorWithConstraints(test.chain.back());
break;
case CertificateTrustType::UNSPECIFIED:
- LOG(ERROR) << "Unexpected CertificateTrustType";
+ trust_store.AddCertificateWithUnspecifiedTrust(test.chain.back());
break;
case CertificateTrustType::DISTRUSTED:
trust_store.AddDistrustedCertificateForTest(test.chain.back());
« no previous file with comments | « no previous file | net/cert/internal/trust_store_in_memory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698