| Index: net/http/http_auth_controller_unittest.cc
|
| diff --git a/net/http/http_auth_controller_unittest.cc b/net/http/http_auth_controller_unittest.cc
|
| index b3d1ca3c7a6fc3a85b7b605de0fd9a8a545af9e5..5cac8a7f89c288aec970c14325e25f2e5dc78abc 100644
|
| --- a/net/http/http_auth_controller_unittest.cc
|
| +++ b/net/http/http_auth_controller_unittest.cc
|
| @@ -114,8 +114,15 @@ TEST(HttpAuthControllerTest, PermanentErrors) {
|
|
|
| // If a non-permanent error is returned by the handler, then the
|
| // controller should report it unchanged.
|
| - RunSingleRoundAuthTest(RUN_HANDLER_ASYNC, ERR_INVALID_AUTH_CREDENTIALS,
|
| - ERR_INVALID_AUTH_CREDENTIALS, SCHEME_IS_ENABLED);
|
| + RunSingleRoundAuthTest(RUN_HANDLER_ASYNC, ERR_UNEXPECTED, ERR_UNEXPECTED,
|
| + SCHEME_IS_ENABLED);
|
| +
|
| + // ERR_INVALID_AUTH_CREDENTIALS is special. It's a non-permanet error, but
|
| + // the error isn't propagated, nor is the auth scheme disabled. This allows
|
| + // the scheme to re-attempt the authentication attempt using a different set
|
| + // of credentials.
|
| + RunSingleRoundAuthTest(RUN_HANDLER_ASYNC, ERR_INVALID_AUTH_CREDENTIALS, OK,
|
| + SCHEME_IS_ENABLED);
|
| }
|
|
|
| // If an HttpAuthHandler indicates that it doesn't allow explicit
|
|
|