diff options
author | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-01 22:38:05 +0000 |
---|---|---|
committer | mattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-01 22:38:05 +0000 |
commit | 295f13906ac3663765b65e5d29b4dbe556b2fd00 (patch) | |
tree | d62e0e8da050c8999e99e4bacbd321d8fc5017d8 /net/base/cert_database_nss_unittest.cc | |
parent | 397b8ea50bffcc0764ca3ffcf7ec303e0f320fe4 (diff) | |
download | chromium_src-295f13906ac3663765b65e5d29b4dbe556b2fd00.zip chromium_src-295f13906ac3663765b65e5d29b4dbe556b2fd00.tar.gz chromium_src-295f13906ac3663765b65e5d29b4dbe556b2fd00.tar.bz2 |
Add ListCerts method to CertDatabase.
BUG=19991
TEST=CertDatabaseNSSTest.ListCerts
Review URL: http://codereview.chromium.org/3192021
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@58250 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database_nss_unittest.cc')
-rw-r--r-- | net/base/cert_database_nss_unittest.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/net/base/cert_database_nss_unittest.cc b/net/base/cert_database_nss_unittest.cc index 45ac72c0..6aa7095 100644 --- a/net/base/cert_database_nss_unittest.cc +++ b/net/base/cert_database_nss_unittest.cc @@ -136,6 +136,16 @@ class CertDatabaseNSSTest : public testing::Test { // static bool CertDatabaseNSSTest::temp_db_initialized_ = false; +TEST_F(CertDatabaseNSSTest, ListCerts) { + // This test isn't terribly useful, though it will at least let valgrind test + // for leaks. + CertificateList certs; + cert_db_.ListCerts(&certs); + // The test DB is empty, but let's assume there will always be something in + // the other slots. + EXPECT_LT(0U, certs.size()); +} + TEST_F(CertDatabaseNSSTest, ImportFromPKCS12WrongPassword) { std::string pkcs12_data = ReadTestFile("client.p12"); |