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

Unified Diff: net/base/cert_database_nss_unittest.cc

Issue 8566056: This applies GUIDs to certificate and key nicknames when (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More review changes Created 9 years 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
Index: net/base/cert_database_nss_unittest.cc
diff --git a/net/base/cert_database_nss_unittest.cc b/net/base/cert_database_nss_unittest.cc
index 1129544aad76747975f10b3dbbd63671e485d8e7..c76b5bba45d2333b6f78efb234545b02d0710603 100644
--- a/net/base/cert_database_nss_unittest.cc
+++ b/net/base/cert_database_nss_unittest.cc
@@ -154,7 +154,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12WrongPassword) {
cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
string16(),
- true)); // is_extractable
+ true, // is_extractable
+ NULL));
// Test db should still be empty.
EXPECT_EQ(0U, ListCertsInSlot(slot_->os_module_handle()).size());
@@ -166,7 +167,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12AsExtractableAndExportAgain) {
EXPECT_EQ(OK, cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
ASCIIToUTF16("12345"),
- true)); // is_extractable
+ true, // is_extractable
+ NULL));
CertificateList cert_list = ListCertsInSlot(slot_->os_module_handle());
ASSERT_EQ(1U, cert_list.size());
@@ -189,7 +191,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12Twice) {
EXPECT_EQ(OK, cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
ASCIIToUTF16("12345"),
- true)); // is_extractable
+ true, // is_extractable
+ NULL));
EXPECT_EQ(1U, ListCertsInSlot(slot_->os_module_handle()).size());
// NSS has a SEC_ERROR_PKCS12_DUPLICATE_DATA error, but it doesn't look like
@@ -197,7 +200,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12Twice) {
EXPECT_EQ(OK, cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
ASCIIToUTF16("12345"),
- true)); // is_extractable
+ true, // is_extractable
+ NULL));
EXPECT_EQ(1U, ListCertsInSlot(slot_->os_module_handle()).size());
}
@@ -207,7 +211,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12AsUnextractableAndExportAgain) {
EXPECT_EQ(OK, cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
ASCIIToUTF16("12345"),
- false)); // is_extractable
+ false, // is_extractable
+ NULL));
CertificateList cert_list = ListCertsInSlot(slot_->os_module_handle());
ASSERT_EQ(1U, cert_list.size());
@@ -228,7 +233,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12OnlyMarkIncludedKey) {
EXPECT_EQ(OK, cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
ASCIIToUTF16("12345"),
- true)); // is_extractable
+ true, // is_extractable
+ NULL));
CertificateList cert_list = ListCertsInSlot(slot_->os_module_handle());
ASSERT_EQ(1U, cert_list.size());
@@ -238,7 +244,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12OnlyMarkIncludedKey) {
EXPECT_EQ(OK, cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
ASCIIToUTF16("12345"),
- false)); // is_extractable
+ false, // is_extractable
+ NULL));
cert_list = ListCertsInSlot(slot_->os_module_handle());
ASSERT_EQ(1U, cert_list.size());
@@ -257,7 +264,8 @@ TEST_F(CertDatabaseNSSTest, ImportFromPKCS12InvalidFile) {
cert_db_.ImportFromPKCS12(slot_,
pkcs12_data,
string16(),
- true)); // is_extractable
+ true, // is_extractable
+ NULL));
// Test db should still be empty.
EXPECT_EQ(0U, ListCertsInSlot(slot_->os_module_handle()).size());

Powered by Google App Engine
This is Rietveld 408576698