diff options
author | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 14:40:44 +0000 |
---|---|---|
committer | cbentzel@chromium.org <cbentzel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-17 14:40:44 +0000 |
commit | 54fea25621611a1fba6208684ff39fb5a4872b4e (patch) | |
tree | cd1d68e16658233fe7e156e69b088b495583e4d5 /net/http/http_network_transaction_unittest.cc | |
parent | 1f9239433087c7e4bf87ff8b431b0c83566165da (diff) | |
download | chromium_src-54fea25621611a1fba6208684ff39fb5a4872b4e.zip chromium_src-54fea25621611a1fba6208684ff39fb5a4872b4e.tar.gz chromium_src-54fea25621611a1fba6208684ff39fb5a4872b4e.tar.bz2 |
Remove static "set_fixed_cnonce" in favor of NonceGenerator objects.
Trying to simplify cleanup for more unit tests.
BUG=None
TEST=net_unittests
Review URL: http://codereview.chromium.org/5034001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@66439 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_network_transaction_unittest.cc')
-rw-r--r-- | net/http/http_network_transaction_unittest.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/net/http/http_network_transaction_unittest.cc b/net/http/http_network_transaction_unittest.cc index 881a037..6a389af 100644 --- a/net/http/http_network_transaction_unittest.cc +++ b/net/http/http_network_transaction_unittest.cc @@ -4088,8 +4088,13 @@ TEST_F(HttpNetworkTransactionTest, BasicAuthCacheAndPreauth) { // are started with the same nonce. TEST_F(HttpNetworkTransactionTest, DigestPreAuthNonceCount) { SessionDependencies session_deps; + HttpAuthHandlerDigest::Factory* digest_factory = + new HttpAuthHandlerDigest::Factory(); + HttpAuthHandlerDigest::FixedNonceGenerator* nonce_generator = + new HttpAuthHandlerDigest::FixedNonceGenerator("0123456789abcdef"); + digest_factory->set_nonce_generator(nonce_generator); + session_deps.http_auth_handler_factory.reset(digest_factory); scoped_refptr<HttpNetworkSession> session(CreateSession(&session_deps)); - HttpAuthHandlerDigest::SetFixedCnonce(true); // Transaction 1: authenticate (foo, bar) on MyRealm1 { |