diff options
author | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 09:56:51 +0000 |
---|---|---|
committer | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-28 09:56:51 +0000 |
commit | 190933f29103844bbc40a88bca8b14e49bf7e008 (patch) | |
tree | 8a14ff4d9011f73175a12f851d5fb039c45bd41c /net/ssl | |
parent | a017c66088a4671cf0ea59be150c73d3679f31d4 (diff) | |
download | chromium_src-190933f29103844bbc40a88bca8b14e49bf7e008.zip chromium_src-190933f29103844bbc40a88bca8b14e49bf7e008.tar.gz chromium_src-190933f29103844bbc40a88bca8b14e49bf7e008.tar.bz2 |
Extract ScopedTestNSSDB from nss_util.
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
Diffstat (limited to 'net/ssl')
-rw-r--r-- | net/ssl/client_cert_store_chromeos_unittest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ssl/client_cert_store_chromeos_unittest.cc b/net/ssl/client_cert_store_chromeos_unittest.cc index 4a6a6c3..3bd6d60 100644 --- a/net/ssl/client_cert_store_chromeos_unittest.cc +++ b/net/ssl/client_cert_store_chromeos_unittest.cc @@ -13,6 +13,7 @@ #include "crypto/nss_util.h" #include "crypto/nss_util_internal.h" #include "crypto/rsa_private_key.h" +#include "crypto/scoped_test_nss_chromeos_user.h" #include "net/base/test_data_directory.h" #include "net/cert/cert_type.h" #include "net/cert/x509_certificate.h" |