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

Unified Diff: components/cast_certificate/cast_crl_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_crl.cc ('k') | net/cert/internal/path_builder_pkits_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cast_certificate/cast_crl_unittest.cc
diff --git a/components/cast_certificate/cast_crl_unittest.cc b/components/cast_certificate/cast_crl_unittest.cc
index 196f450c3bbcb36f559b9e8bdf6e099347b86afa..1062e8756e7e303753a4525d644c758a9dcb19b8 100644
--- a/components/cast_certificate/cast_crl_unittest.cc
+++ b/components/cast_certificate/cast_crl_unittest.cc
@@ -7,16 +7,17 @@
#include "components/cast_certificate/cast_cert_validator_test_helpers.h"
#include "components/cast_certificate/cast_crl.h"
#include "components/cast_certificate/proto/test_suite.pb.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 {
namespace {
// Creates a trust store using the test roots encoded in the PEM file at |path|.
-std::unique_ptr<net::TrustStore> CreateTrustStoreFromFile(
+std::unique_ptr<net::TrustStoreInMemory> CreateTrustStoreFromFile(
const std::string& path) {
- std::unique_ptr<net::TrustStore> trust_store(new net::TrustStore());
+ std::unique_ptr<net::TrustStoreInMemory> trust_store(
+ new net::TrustStoreInMemory());
const auto trusted_test_roots =
cast_certificate::testing::ReadCertificateChainFromFile(path);
for (const auto& trusted_root : trusted_test_roots) {
@@ -135,8 +136,8 @@ bool TestVerifyRevocation(TestStepResult expected_result,
// Runs a single test case.
bool RunTest(const DeviceCertTest& test_case) {
- std::unique_ptr<net::TrustStore> crl_trust_store;
- std::unique_ptr<net::TrustStore> cast_trust_store;
+ std::unique_ptr<net::TrustStoreInMemory> crl_trust_store;
+ std::unique_ptr<net::TrustStoreInMemory> cast_trust_store;
if (test_case.use_test_trust_anchors()) {
crl_trust_store =
CreateTrustStoreFromFile("certificates/cast_crl_test_root_ca.pem");
« no previous file with comments | « components/cast_certificate/cast_crl.cc ('k') | net/cert/internal/path_builder_pkits_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698