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

Unified Diff: net/ssl/client_cert_store_nss_unittest.cc

Issue 1274143002: ClientCertStoreChromeOS: support additional non-platform certs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Steven's comments. Created 5 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/ssl/client_cert_store_nss.cc ('k') | net/ssl/client_cert_store_unittest-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/client_cert_store_nss_unittest.cc
diff --git a/net/ssl/client_cert_store_nss_unittest.cc b/net/ssl/client_cert_store_nss_unittest.cc
index 6690e674966ed95c31dad55dacf268f0b921b471..00d3a9c655d32c590565da87c5d1912a445197de 100644
--- a/net/ssl/client_cert_store_nss_unittest.cc
+++ b/net/ssl/client_cert_store_nss_unittest.cc
@@ -10,18 +10,17 @@ namespace net {
class ClientCertStoreNSSTestDelegate {
public:
- ClientCertStoreNSSTestDelegate()
- : store_(ClientCertStoreNSS::PasswordDelegateFactory()) {}
+ ClientCertStoreNSSTestDelegate() {}
bool SelectClientCerts(const CertificateList& input_certs,
const SSLCertRequestInfo& cert_request_info,
CertificateList* selected_certs) {
- return store_.SelectClientCertsForTesting(
- input_certs, cert_request_info, selected_certs);
+ // Filters |input_certs| using the logic being used to filter the system
+ // store when GetClientCerts() is called.
+ ClientCertStoreNSS::FilterCertsOnWorkerThread(
+ input_certs, cert_request_info, false, selected_certs);
+ return true;
}
-
- private:
- ClientCertStoreNSS store_;
};
INSTANTIATE_TYPED_TEST_CASE_P(NSS,
« no previous file with comments | « net/ssl/client_cert_store_nss.cc ('k') | net/ssl/client_cert_store_unittest-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698