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

Unified Diff: net/http/http_network_transaction_unittest.cc

Issue 5034001: Remove static "set_fixed_cnonce" in favor of NonceGenerator objects.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Merge with trunk Created 10 years, 1 month 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
Index: net/http/http_network_transaction_unittest.cc
===================================================================
--- net/http/http_network_transaction_unittest.cc (revision 66330)
+++ net/http/http_network_transaction_unittest.cc (working copy)
@@ -4088,8 +4088,13 @@
// 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
{
« net/http/http_auth_handler_factory.h ('K') | « net/http/http_auth_handler_factory.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698