summaryrefslogtreecommitdiffstats
path: root/crypto/scoped_test_nss_db.cc
Commit message (Collapse)AuthorAgeFilesLines
* Remove trust from any certs in ScopedTestDB before closing it.mattm2015-12-281-0/+18
| | | | | | | | | | | Otherwise NSS may cache verification results even after the test DB is gone. BUG=569657 TEST=net_unittests --gtest_filter='CertDatabaseNSSTest.ImportCaAndServerCert:TestRootCertsTest.OverrideTrust' --gtest_shuffle --gtest_repeat=25 Review URL: https://codereview.chromium.org/1532223005 Cr-Commit-Position: refs/heads/master@{#367016}
* Fix ScopedTestNSSDB for older NSS versions.pneubeck@chromium.org2014-08-031-4/+9
| | | | | | | | | | | | | Before, if NSS version was < 3.15.1, then the ScopedTempDir was destructed without ScopedAllowIO and lead to a thread restriction violation. Now, the temp dir is not deleted in this case as the NSS DB is left open. BUG=210525 TBR=rsleevi@chromium.org Review URL: https://codereview.chromium.org/423363005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@287257 0039d316-1c4b-4281-b951-d872f2087c98
* Extract ScopedTestNSSDB from nss_util.pneubeck@chromium.org2014-07-281-0/+48
Before ScopedTestNSSDB affected several slot getters from nss_util.h . This change reduces ScopedTestNSSDB to solely setup a temporary test DB and not influencing the global state in nss_util anymore. As a replacement for some of its old behavior, a new ScopedTestSystemNSSKeySlot is added, which allows to override the slot returned by GetSystemNSSKeySlot(). With this change it's now possible to write tests that need both a user and system NSS DB by using ScopedTestSystemNSSKeySlot. As a side-effect, GetPersistentNSSKeySlot() is now compiled on !OS_CHROMEOS only. BUG=210525 (For include changes:) R=rsleevi@chromium.org TBR=nkostylev@chromium.org, stevenjb@chromium.org Review URL: https://codereview.chromium.org/401623006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285881 0039d316-1c4b-4281-b951-d872f2087c98