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

Side by Side 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/ssl/client_cert_store_nss.h" 5 #include "net/ssl/client_cert_store_nss.h"
6 6
7 #include "net/ssl/client_cert_store_unittest-inl.h" 7 #include "net/ssl/client_cert_store_unittest-inl.h"
8 8
9 namespace net { 9 namespace net {
10 10
11 class ClientCertStoreNSSTestDelegate { 11 class ClientCertStoreNSSTestDelegate {
12 public: 12 public:
13 ClientCertStoreNSSTestDelegate() 13 ClientCertStoreNSSTestDelegate() {}
14 : store_(ClientCertStoreNSS::PasswordDelegateFactory()) {}
15 14
16 bool SelectClientCerts(const CertificateList& input_certs, 15 bool SelectClientCerts(const CertificateList& input_certs,
17 const SSLCertRequestInfo& cert_request_info, 16 const SSLCertRequestInfo& cert_request_info,
18 CertificateList* selected_certs) { 17 CertificateList* selected_certs) {
19 return store_.SelectClientCertsForTesting( 18 // Filters |input_certs| using the logic being used to filter the system
20 input_certs, cert_request_info, selected_certs); 19 // store when GetClientCerts() is called.
20 ClientCertStoreNSS::FilterCertsOnWorkerThread(
21 input_certs, cert_request_info, false, selected_certs);
22 return true;
21 } 23 }
22
23 private:
24 ClientCertStoreNSS store_;
25 }; 24 };
26 25
27 INSTANTIATE_TYPED_TEST_CASE_P(NSS, 26 INSTANTIATE_TYPED_TEST_CASE_P(NSS,
28 ClientCertStoreTest, 27 ClientCertStoreTest,
29 ClientCertStoreNSSTestDelegate); 28 ClientCertStoreNSSTestDelegate);
30 29
31 } // namespace net 30 } // namespace net
OLDNEW
« 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