Chromium Code Reviews| 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 fb42ebf5fa495120ae089da25b53010e1015a19c..ea2f12a17c51ea14ca11f4e04de388712fbbbf0e 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 |
|
mmenke
2016/10/04 19:42:15
Should we update the description of this in net_er
asanka
2016/10/06 14:16:35
It could be caused by both. In this specific bug,
|
| + // 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 |