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

Unified Diff: components/cast_certificate/cast_cert_validator_unittest.cc

Issue 2252933002: Make TrustStore into an interface, move impl to TrustStoreInMemory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update cast_cert_validator_unittest.cc Created 4 years, 4 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
« no previous file with comments | « components/cast_certificate/cast_cert_validator.cc ('k') | components/cast_certificate/cast_crl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ee6b47f0bea77598f3e672a146cef7464d9a61d8..d3de949d5719d441176028538a436d1afa7b2777 100644
--- a/components/cast_certificate/cast_cert_validator_unittest.cc
+++ b/components/cast_certificate/cast_cert_validator_unittest.cc
@@ -6,7 +6,7 @@
#include "components/cast_certificate/cast_cert_validator_test_helpers.h"
#include "net/cert/internal/parsed_certificate.h"
-#include "net/cert/internal/trust_store.h"
+#include "net/cert/internal/trust_store_in_memory.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace cast_certificate {
@@ -67,7 +67,7 @@ void RunTest(TestResult expected_result,
auto certs =
cast_certificate::testing::ReadCertificateChainFromFile(certs_file_name);
- std::unique_ptr<net::TrustStore> trust_store;
+ std::unique_ptr<net::TrustStoreInMemory> trust_store;
switch (trust_store_dependency) {
case TRUST_STORE_BUILTIN:
@@ -87,7 +87,7 @@ void RunTest(TestResult expected_result,
certs.pop_back();
// Add it to the trust store as a trust anchor
- trust_store.reset(new net::TrustStore);
+ trust_store.reset(new net::TrustStoreInMemory);
if (trust_store_dependency == TRUST_STORE_FROM_TEST_FILE_UNCONSTRAINED) {
// This is a test-only mode where anchor constraints are not enforced.
« no previous file with comments | « components/cast_certificate/cast_cert_validator.cc ('k') | components/cast_certificate/cast_crl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698