Index: net/http/http_auth_unittest.cc |
diff --git a/net/http/http_auth_unittest.cc b/net/http/http_auth_unittest.cc |
index d9c06fa9f3e418b46fa422606a179496483e6bc2..b66e0bef97007d078f54702fd16be157275c74b7 100644 |
--- a/net/http/http_auth_unittest.cc |
+++ b/net/http/http_auth_unittest.cc |
@@ -70,8 +70,11 @@ TEST(HttpAuthTest, ChooseBestChallenge) { |
} |
}; |
GURL origin("http://www.example.com"); |
- scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory( |
+ URLSecurityManagerAllow url_security_manager; |
+ scoped_ptr<HttpAuthHandlerRegistryFactory> http_auth_handler_factory( |
HttpAuthHandlerFactory::CreateDefault()); |
+ http_auth_handler_factory->SetURLSecurityManager( |
+ "negotiate", &url_security_manager); |
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { |
// Make a HttpResponseHeaders object. |
@@ -186,8 +189,11 @@ TEST(HttpAuthTest, ChooseBestChallengeConnectionBasedNegotiate) { |
} |
}; |
GURL origin("http://www.example.com"); |
- scoped_ptr<HttpAuthHandlerFactory> http_auth_handler_factory( |
+ URLSecurityManagerAllow url_security_manager; |
+ scoped_ptr<HttpAuthHandlerRegistryFactory> http_auth_handler_factory( |
HttpAuthHandlerFactory::CreateDefault()); |
+ http_auth_handler_factory->SetURLSecurityManager( |
+ "negotiate", &url_security_manager); |
scoped_ptr<HttpAuthHandler> handler; |
for (size_t i = 0; i < ARRAYSIZE_UNSAFE(tests); ++i) { |