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: 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: 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: 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);
ryanchung 2017/04/28 23:11:30 nit: std:move(cert) ?
eroman 2017/04/28 23:51:06 AddTrustAnchorWithConstraints() in this case takes
ryanchung 2017/04/28 23:57:37 Isn't it AddTrustAnchorWithConstraints(scoped_refp
}
return trust_store;
}
« no previous file with comments | « components/cast_certificate/cast_cert_validator.cc ('k') | components/cast_certificate/cast_cert_validator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698