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

Unified Diff: net/cert/internal/verify_certificate_chain_unittest.cc

Issue 2126803004: WIP: NSS trust store integration for path builder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cert-command-line-path-builder-add_certpathbuilder
Patch Set: . 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 | « net/cert/internal/verify_certificate_chain_typed_unittest.h ('k') | net/net.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/internal/verify_certificate_chain_unittest.cc
diff --git a/net/cert/internal/verify_certificate_chain_unittest.cc b/net/cert/internal/verify_certificate_chain_unittest.cc
index b8572964af810b397060e18a32d537cced705414..375d838670ed0f00b1ed2bf799fdfe1892b856fc 100644
--- a/net/cert/internal/verify_certificate_chain_unittest.cc
+++ b/net/cert/internal/verify_certificate_chain_unittest.cc
@@ -5,7 +5,6 @@
#include "net/cert/internal/verify_certificate_chain.h"
#include "net/cert/internal/signature_policy.h"
-#include "net/cert/internal/trust_store.h"
#include "net/cert/internal/verify_certificate_chain_typed_unittest.h"
namespace net {
@@ -18,9 +17,7 @@ class VerifyCertificateChainAssumingTrustedRootDelegate {
const ParsedCertificateList& roots,
const der::GeneralizedTime& time,
bool expected_result) {
- TrustStore trust_store;
ASSERT_EQ(1U, roots.size());
- trust_store.AddTrustedCertificate(roots[0]);
ParsedCertificateList full_chain(chain);
full_chain.push_back(roots[0]);
@@ -28,7 +25,7 @@ class VerifyCertificateChainAssumingTrustedRootDelegate {
SimpleSignaturePolicy signature_policy(1024);
bool result = VerifyCertificateChainAssumingTrustedRoot(
- full_chain, trust_store, &signature_policy, time);
+ full_chain, &signature_policy, time);
ASSERT_EQ(expected_result, result);
}
« no previous file with comments | « net/cert/internal/verify_certificate_chain_typed_unittest.h ('k') | net/net.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698