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

Unified Diff: components/cast_certificate/cast_cert_validator_unittest.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_unittest.cc
diff --git a/components/cast_certificate/cast_cert_validator_unittest.cc b/components/cast_certificate/cast_cert_validator_unittest.cc
index a32e728305a68d20c3f31995576ff174d20efb5b..3a6e4f1d590356fe64d2dfaac7393babf821cafe 100644
--- a/components/cast_certificate/cast_cert_validator_unittest.cc
+++ b/components/cast_certificate/cast_cert_validator_unittest.cc
@@ -95,15 +95,11 @@ void RunTest(TestResult expected_result,
if (trust_store_dependency == TRUST_STORE_FROM_TEST_FILE_UNCONSTRAINED) {
// This is a test-only mode where anchor constraints are not enforced.
- trust_store->AddTrustAnchor(
- net::TrustAnchor::CreateFromCertificateNoConstraints(
- std::move(root)));
+ trust_store->AddTrustAnchor(std::move(root));
} else {
- // This is the regular mode used by the TrustAnchors for the built-in
- // Cast store.
- trust_store->AddTrustAnchor(
- net::TrustAnchor::CreateFromCertificateWithConstraints(
- std::move(root)));
+ // Add a trust anchor and enforce constraints on it (regular mode for
+ // buil-in Cast roots).
mattm 2017/04/28 20:26:47 built-in
eroman 2017/04/28 21:48:03 Done.
+ trust_store->AddTrustAnchorWithConstraints(std::move(root));
}
}
}

Powered by Google App Engine
This is Rietveld 408576698