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

Side by Side Diff: net/ssl/client_cert_store_chromeos.h

Issue 394013005: Remove NSSCertDatabase from ClientCertStoreChromeOS unittest. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments. Created 6 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « net/net.gyp ('k') | net/ssl/client_cert_store_chromeos.cc » ('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 #ifndef NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_ 5 #ifndef NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_
6 #define NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_ 6 #define NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "crypto/scoped_nss_types.h" 10 #include "crypto/scoped_nss_types.h"
(...skipping 22 matching lines...) Expand all
33 CertificateList* selected_certs) OVERRIDE; 33 CertificateList* selected_certs) OVERRIDE;
34 34
35 private: 35 private:
36 friend class ClientCertStoreChromeOSTestDelegate; 36 friend class ClientCertStoreChromeOSTestDelegate;
37 37
38 void DidGetPrivateSlot(const SSLCertRequestInfo* request, 38 void DidGetPrivateSlot(const SSLCertRequestInfo* request,
39 CertificateList* selected_certs, 39 CertificateList* selected_certs,
40 const base::Closure& callback, 40 const base::Closure& callback,
41 crypto::ScopedPK11Slot private_slot); 41 crypto::ScopedPK11Slot private_slot);
42 42
43 // Allows tests to initialize the cert store with the given slots.
44 // Must be called before SelectClientCertsForTesting.
45 void InitForTesting(crypto::ScopedPK11Slot public_slot,
46 crypto::ScopedPK11Slot private_slot);
47
48 // A hook for testing. Filters |input_certs| using the logic being used to
49 // filter the system store when GetClientCerts() is called.
50 // Implemented by creating a list of certificates that otherwise would be
51 // extracted from the system store and filtering it using the common logic
52 // (less adequate than the approach used on Windows).
53 bool SelectClientCertsForTesting(const CertificateList& input_certs,
54 const SSLCertRequestInfo& cert_request_info,
55 CertificateList* selected_certs);
56
57
58 std::string username_hash_; 43 std::string username_hash_;
59 NSSProfileFilterChromeOS profile_filter_; 44 NSSProfileFilterChromeOS profile_filter_;
60 45
61 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS); 46 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS);
62 }; 47 };
63 48
64 } // namespace net 49 } // namespace net
65 50
66 #endif // NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_ 51 #endif // NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_
OLDNEW
« no previous file with comments | « net/net.gyp ('k') | net/ssl/client_cert_store_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698