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

Unified Diff: components/cast_certificate/cast_cert_validator_test_helpers.cc

Issue 2832703002: Allow the TrustStore interface to return matching intermediates, and identify distrusted certs. (Closed)
Patch Set: fix cert_verify_tool 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: components/cast_certificate/cast_cert_validator_test_helpers.cc
diff --git a/components/cast_certificate/cast_cert_validator_test_helpers.cc b/components/cast_certificate/cast_cert_validator_test_helpers.cc
index d9ade267ccd88ba0e0ddc5ac7014b1e25d58ad9b..4a41ed2b0d3a35dc75ad67291da17e77caa13497 100644
--- a/components/cast_certificate/cast_cert_validator_test_helpers.cc
+++ b/components/cast_certificate/cast_cert_validator_test_helpers.cc
@@ -93,9 +93,7 @@ std::unique_ptr<net::TrustStoreInMemory> CreateTrustStoreFromFile(
scoped_refptr<net::ParsedCertificate> cert(net::ParsedCertificate::Create(
net::x509_util::CreateCryptoBuffer(trusted_root), {}, &errors));
EXPECT_TRUE(cert) << errors.ToDebugString();
- scoped_refptr<net::TrustAnchor> anchor =
- net::TrustAnchor::CreateFromCertificateWithConstraints(std::move(cert));
- trust_store->AddTrustAnchor(std::move(anchor));
+ trust_store->AddTrustAnchorWithConstraints(cert);
}
return trust_store;
}

Powered by Google App Engine
This is Rietveld 408576698