Index: net/http/http_auth_handler_factory_unittest.cc |
diff --git a/net/http/http_auth_handler_factory_unittest.cc b/net/http/http_auth_handler_factory_unittest.cc |
index f845c8aa3a2a928d87787c83de994566225c04c6..173e951ed1341e97d04ac2e870c2053e57d472b3 100644 |
--- a/net/http/http_auth_handler_factory_unittest.cc |
+++ b/net/http/http_auth_handler_factory_unittest.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/scoped_ptr.h" |
+#include "net/base/mock_host_resolver.h" |
#include "net/base/net_errors.h" |
#include "net/http/http_auth_handler.h" |
#include "net/http/http_auth_handler_factory.h" |
@@ -95,9 +96,10 @@ TEST(HttpAuthHandlerFactoryTest, RegistryFactory) { |
} |
TEST(HttpAuthHandlerFactoryTest, DefaultFactory) { |
+ scoped_refptr<HostResolver> host_resolver(new MockHostResolver()); |
URLSecurityManagerAllow url_security_manager; |
scoped_ptr<HttpAuthHandlerRegistryFactory> http_auth_handler_factory( |
- HttpAuthHandlerFactory::CreateDefault()); |
+ HttpAuthHandlerFactory::CreateDefault(host_resolver)); |
http_auth_handler_factory->SetURLSecurityManager( |
"negotiate", &url_security_manager); |
GURL server_origin("http://www.example.com"); |