| Index: google_apis/gaia/oauth2_mint_token_flow_unittest.cc
|
| diff --git a/google_apis/gaia/oauth2_mint_token_flow_unittest.cc b/google_apis/gaia/oauth2_mint_token_flow_unittest.cc
|
| index 913d55535474fc8e924fe8bcd832155aac5d54e0..e9eecbca43c0c7b0b775b15e7f4a86cfcce76c7c 100644
|
| --- a/google_apis/gaia/oauth2_mint_token_flow_unittest.cc
|
| +++ b/google_apis/gaia/oauth2_mint_token_flow_unittest.cc
|
| @@ -14,6 +14,7 @@
|
| #include "google_apis/gaia/google_service_auth_error.h"
|
| #include "google_apis/gaia/oauth2_access_token_fetcher.h"
|
| #include "google_apis/gaia/oauth2_mint_token_flow.h"
|
| +#include "net/base/net_errors.h"
|
| #include "net/url_request/test_url_fetcher_factory.h"
|
| #include "net/url_request/url_request_status.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| @@ -352,14 +353,14 @@ TEST_F(OAuth2MintTokenFlowTest, ProcessApiCallSuccess) {
|
| TEST_F(OAuth2MintTokenFlowTest, ProcessApiCallFailure) {
|
| { // Null delegate should work fine.
|
| TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL);
|
| - url_fetcher.set_status(URLRequestStatus(URLRequestStatus::FAILED, 101));
|
| + url_fetcher.set_status(URLRequestStatus::FromError(net::ERR_FAILED));
|
| CreateFlow(NULL, OAuth2MintTokenFlow::MODE_MINT_TOKEN_NO_FORCE, "");
|
| flow_->ProcessApiCallFailure(&url_fetcher);
|
| }
|
|
|
| { // Non-null delegate.
|
| TestURLFetcher url_fetcher(1, GURL("http://www.google.com"), NULL);
|
| - url_fetcher.set_status(URLRequestStatus(URLRequestStatus::FAILED, 101));
|
| + url_fetcher.set_status(URLRequestStatus::FromError(net::ERR_FAILED));
|
| CreateFlow(OAuth2MintTokenFlow::MODE_MINT_TOKEN_NO_FORCE);
|
| EXPECT_CALL(delegate_, OnMintTokenFailure(_));
|
| flow_->ProcessApiCallFailure(&url_fetcher);
|
|
|