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

Unified Diff: components/cast_certificate/cast_cert_validator_unittest.cc

Issue 2303673004: Hook up Chrome Cast sender to Cast CRL. (Closed)
Patch Set: Fixed nit Created 4 years, 2 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 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);
« no previous file with comments | « components/cast_certificate/cast_cert_validator_test_helpers.cc ('k') | components/cast_certificate/cast_crl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698