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

Unified Diff: chromeos/cert_loader_unittest.cc

Issue 405973003: Remove the deprecated NSSCertDatabase::GetInstance() . (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Changed 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 | « chromeos/cert_loader.cc ('k') | net/cert/nss_cert_database.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cert_loader_unittest.cc
diff --git a/chromeos/cert_loader_unittest.cc b/chromeos/cert_loader_unittest.cc
index fc47704a34c3257682fb662c5de5794e81255c6a..216a8db1eb2058f783ac8d1007c97522363c09d4 100644
--- a/chromeos/cert_loader_unittest.cc
+++ b/chromeos/cert_loader_unittest.cc
@@ -305,19 +305,5 @@ TEST_F(CertLoaderTest, UpdatedOnCACertTrustChange) {
EXPECT_EQ(1U, GetAndResetCertificatesLoadedEventsCount());
}
-TEST_F(CertLoaderTest, DatabaseWithUnsetSlots) {
- primary_db_.reset(new net::NSSCertDatabaseChromeOS(crypto::ScopedPK11Slot(),
- crypto::ScopedPK11Slot()));
- primary_db_->SetSlowTaskRunnerForTest(message_loop_.message_loop_proxy());
- cert_loader_->StartWithNSSDB(primary_db_.get());
-
- base::RunLoop().RunUntilIdle();
- EXPECT_EQ(1u, GetAndResetCertificatesLoadedEventsCount());
-
- EXPECT_TRUE(cert_loader_->certificates_loaded());
- EXPECT_EQ(-1, cert_loader_->TPMTokenSlotID());
- EXPECT_FALSE(cert_loader_->IsHardwareBacked());
-}
-
} // namespace
} // namespace chromeos
« no previous file with comments | « chromeos/cert_loader.cc ('k') | net/cert/nss_cert_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698