Index: net/http/http_auth_unittest.cc |
diff --git a/net/http/http_auth_unittest.cc b/net/http/http_auth_unittest.cc |
index a3f2b286807ff32a2a6f5b0420034c227456aa69..cc622146dcb58d134dac9b08bc6bb86c5e7e6145 100644 |
--- a/net/http/http_auth_unittest.cc |
+++ b/net/http/http_auth_unittest.cc |
@@ -8,6 +8,7 @@ |
#include "base/ref_counted.h" |
#include "base/scoped_ptr.h" |
#include "base/string_util.h" |
+#include "net/base/mock_host_resolver.h" |
#include "net/base/net_errors.h" |
#include "net/http/http_auth.h" |
#include "net/http/http_auth_filter.h" |
@@ -97,8 +98,9 @@ TEST(HttpAuthTest, ChooseBestChallenge) { |
GURL origin("http://www.example.com"); |
std::set<std::string> disabled_schemes; |
URLSecurityManagerAllow url_security_manager; |
+ scoped_refptr<HostResolver> host_resolver(new MockHostResolver()); |
scoped_ptr<HttpAuthHandlerRegistryFactory> http_auth_handler_factory( |
- HttpAuthHandlerFactory::CreateDefault()); |
+ HttpAuthHandlerFactory::CreateDefault(host_resolver)); |
http_auth_handler_factory->SetURLSecurityManager( |
"negotiate", &url_security_manager); |