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

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: rebase 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
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 5d845fe1d1e273107e4e953262e67e44a42739ed..27d51ed1d9825af1014f3e40b1541dfc11c7bef2 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_static.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::TrustStoreStatic> CreateTrustStoreFromFile(
const std::string& path) {
- std::unique_ptr<net::TrustStore> trust_store(new net::TrustStore());
+ std::unique_ptr<net::TrustStoreStatic> trust_store(
+ new net::TrustStoreStatic());
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::TrustStoreStatic> crl_trust_store;
+ std::unique_ptr<net::TrustStoreStatic> cast_trust_store;
if (test_case.use_test_trust_anchors()) {
crl_trust_store =
CreateTrustStoreFromFile("certificates/cast_crl_test_root_ca.pem");

Powered by Google App Engine
This is Rietveld 408576698