| Index: net/http/http_auth_controller_unittest.cc
|
| ===================================================================
|
| --- net/http/http_auth_controller_unittest.cc (revision 120359)
|
| +++ net/http/http_auth_controller_unittest.cc (working copy)
|
| @@ -71,8 +71,9 @@
|
| new HttpAuthController(HttpAuth::AUTH_PROXY,
|
| GURL("http://example.com"),
|
| &dummy_auth_cache, &auth_handler_factory));
|
| - ASSERT_EQ(OK,
|
| - controller->HandleAuthChallenge(headers, false, false, dummy_log));
|
| + ASSERT_EQ(OK, controller->HandleAuthChallenge(
|
| + headers, HttpAuthController::CHALLENGE_OPTION_SEND_SERVER_AUTH,
|
| + dummy_log));
|
| ASSERT_TRUE(controller->HaveAuthHandler());
|
| controller->ResetAuth(AuthCredentials());
|
| EXPECT_TRUE(controller->HaveAuth());
|
| @@ -208,8 +209,9 @@
|
| new HttpAuthController(HttpAuth::AUTH_SERVER,
|
| GURL("http://example.com"),
|
| &dummy_auth_cache, &auth_handler_factory));
|
| - ASSERT_EQ(OK,
|
| - controller->HandleAuthChallenge(headers, false, false, dummy_log));
|
| + ASSERT_EQ(OK, controller->HandleAuthChallenge(
|
| + headers, HttpAuthController::CHALLENGE_OPTION_SEND_SERVER_AUTH,
|
| + dummy_log));
|
| ASSERT_TRUE(controller->HaveAuthHandler());
|
| controller->ResetAuth(AuthCredentials());
|
| EXPECT_TRUE(controller->HaveAuth());
|
| @@ -221,8 +223,9 @@
|
|
|
| // Once a token is generated, simulate the receipt of a server response
|
| // indicating that the authentication attempt was rejected.
|
| - ASSERT_EQ(OK,
|
| - controller->HandleAuthChallenge(headers, false, false, dummy_log));
|
| + ASSERT_EQ(OK, controller->HandleAuthChallenge(
|
| + headers, HttpAuthController::CHALLENGE_OPTION_SEND_SERVER_AUTH,
|
| + dummy_log));
|
| ASSERT_TRUE(controller->HaveAuthHandler());
|
| controller->ResetAuth(AuthCredentials(ASCIIToUTF16("Hello"), string16()));
|
| EXPECT_TRUE(controller->HaveAuth());
|
|
|