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 a12f6da571d1e7b5814ba8afe3d8b2390630b2bd..18967559e473a0343787bc3e0aaddebb2f4ac4dd 100644 |
--- a/components/cast_certificate/cast_cert_validator_unittest.cc |
+++ b/components/cast_certificate/cast_cert_validator_unittest.cc |
@@ -109,15 +109,9 @@ void RunTest(TestResult expected_result, |
std::unique_ptr<CertVerificationContext> context; |
CastDeviceCertPolicy policy; |
- bool result; |
- if (trust_store.get()) { |
- result = |
- VerifyDeviceCertForTest(certs, time, &context, &policy, nullptr, |
- CRLPolicy::CRL_OPTIONAL, trust_store.get()); |
- } else { |
- result = VerifyDeviceCert(certs, time, &context, &policy, nullptr, |
- CRLPolicy::CRL_OPTIONAL); |
- } |
+ bool result = VerifyDeviceCertUsingCustomTrustStore( |
+ certs, time, &context, &policy, nullptr, CRLPolicy::CRL_OPTIONAL, |
+ trust_store.get()); |
if (expected_result == RESULT_FAIL) { |
ASSERT_FALSE(result); |