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

Unified Diff: net/test/cert_test_util.h

Issue 429633004: Test NSSCertDatabaseChromeOS in the presence of the system slot. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed a comment. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/ssl/client_cert_store_chromeos_unittest.cc ('k') | net/test/cert_test_util_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/cert_test_util.h
diff --git a/net/test/cert_test_util.h b/net/test/cert_test_util.h
index 4e6ae9ba78dd11ac8c82572e634077ec1a8707bb..6334dd7edd8e170fef9b9ce92b8447a3c4437f93 100644
--- a/net/test/cert_test_util.h
+++ b/net/test/cert_test_util.h
@@ -38,6 +38,15 @@ scoped_ptr<crypto::RSAPrivateKey> ImportSensitiveKeyFromFile(
const base::FilePath& dir,
const std::string& key_filename,
PK11SlotInfo* slot);
+
+bool ImportClientCertToSlot(const scoped_refptr<X509Certificate>& cert,
+ PK11SlotInfo* slot);
+
+scoped_refptr<X509Certificate> ImportClientCertAndKeyFromFile(
+ const base::FilePath& dir,
+ const std::string& cert_filename,
+ const std::string& key_filename,
+ PK11SlotInfo* slot);
#endif
// Imports all of the certificates in |cert_file|, a file in |certs_dir|, into a
« no previous file with comments | « net/ssl/client_cert_store_chromeos_unittest.cc ('k') | net/test/cert_test_util_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698