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

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

Issue 2832703002: Allow the TrustStore interface to return matching intermediates, and identify distrusted certs. (Closed)
Patch Set: address comments 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/path_builder_pkits_unittest.cc
diff --git a/net/cert/internal/path_builder_pkits_unittest.cc b/net/cert/internal/path_builder_pkits_unittest.cc
index a7b02e3c3b7bde9c61ed7a4afb4e841a68e8f2ce..c98502084db47fe94690095f75dc7570cbfd42a3 100644
--- a/net/cert/internal/path_builder_pkits_unittest.cc
+++ b/net/cert/internal/path_builder_pkits_unittest.cc
@@ -74,9 +74,7 @@ class PathBuilderPkitsTestDelegate {
// TODO(mattm): test with all possible trust anchors in the trust store?
TrustStoreInMemory trust_store;
- scoped_refptr<TrustAnchor> trust_anchor =
- TrustAnchor::CreateFromCertificateNoConstraints(certs[0]);
- trust_store.AddTrustAnchor(std::move(trust_anchor));
+ trust_store.AddTrustAnchor(certs[0]);
// TODO(mattm): test with other irrelevant certs in cert_issuer_sources?
CertIssuerSourceStatic cert_issuer_source;

Powered by Google App Engine
This is Rietveld 408576698