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

Unified Diff: net/cert/internal/trust_store_in_memory.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 | « net/cert/internal/trust_store_in_memory.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/trust_store_in_memory.cc
diff --git a/net/cert/internal/trust_store_in_memory.cc b/net/cert/internal/trust_store_in_memory.cc
index 34f53b573df3bf1561a5bc36b11301bc65f5b780..09efd721726446a77df2c10a4ee18330024fc936 100644
--- a/net/cert/internal/trust_store_in_memory.cc
+++ b/net/cert/internal/trust_store_in_memory.cc
@@ -28,6 +28,11 @@ void TrustStoreInMemory::AddDistrustedCertificateForTest(
AddCertificate(std::move(cert), CertificateTrust::ForDistrusted());
}
+void TrustStoreInMemory::AddCertificateWithUnspecifiedTrust(
+ scoped_refptr<ParsedCertificate> cert) {
+ AddCertificate(std::move(cert), CertificateTrust::ForUnspecified());
+}
+
void TrustStoreInMemory::SyncGetIssuersOf(const ParsedCertificate* cert,
ParsedCertificateList* issuers) {
auto range = entries_.equal_range(cert->normalized_issuer().AsStringPiece());
« no previous file with comments | « net/cert/internal/trust_store_in_memory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698