| Index: google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc
|
| diff --git a/google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc b/google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc
|
| index 55b50db05aa45035f72a4017b2e0fa319d30d45a..f234b39d90742706835eaadf2c9a34cc4d63fe87 100644
|
| --- a/google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc
|
| +++ b/google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc
|
| @@ -13,6 +13,7 @@
|
| #include "google_apis/gaia/google_service_auth_error.h"
|
| #include "google_apis/gaia/oauth2_access_token_consumer.h"
|
| #include "google_apis/gaia/oauth2_access_token_fetcher_impl.h"
|
| +#include "net/base/net_errors.h"
|
| #include "net/http/http_status_code.h"
|
| #include "net/url_request/test_url_fetcher_factory.h"
|
| #include "net/url_request/url_fetcher.h"
|
| @@ -106,9 +107,8 @@ class OAuth2AccessTokenFetcherImplTest : public testing::Test {
|
| const std::string& body) {
|
| GURL url(GaiaUrls::GetInstance()->oauth2_token_url());
|
| TestURLFetcher* url_fetcher = new TestURLFetcher(0, url, &fetcher_);
|
| - URLRequestStatus::Status status =
|
| - fetch_succeeds ? URLRequestStatus::SUCCESS : URLRequestStatus::FAILED;
|
| - url_fetcher->set_status(URLRequestStatus(status, 0));
|
| + net::Error error = fetch_succeeds ? net::OK : net::ERR_FAILED;
|
| + url_fetcher->set_status(URLRequestStatus::FromError(error));
|
|
|
| if (response_code != 0)
|
| url_fetcher->set_response_code(response_code);
|
|
|