Chromium Code Reviews| 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)); |
| } |
| } |
| } |