| Index: components/policy/core/common/cloud/user_info_fetcher_unittest.cc
|
| diff --git a/components/policy/core/common/cloud/user_info_fetcher_unittest.cc b/components/policy/core/common/cloud/user_info_fetcher_unittest.cc
|
| index 8649427d42cd1e3bb6679f2de3ed049c81d2516d..c43e6dbc4abed91612ee26e780cd9caeca7c025e 100644
|
| --- a/components/policy/core/common/cloud/user_info_fetcher_unittest.cc
|
| +++ b/components/policy/core/common/cloud/user_info_fetcher_unittest.cc
|
| @@ -5,8 +5,10 @@
|
| #include "base/values.h"
|
| #include "components/policy/core/common/cloud/user_info_fetcher.h"
|
| #include "google_apis/gaia/google_service_auth_error.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_request_status.h"
|
| #include "testing/gmock/include/gmock/gmock.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
|
|
| @@ -50,8 +52,7 @@ TEST_F(UserInfoFetcherTest, FailedFetch) {
|
| // Fake a failed fetch - should result in the failure callback being invoked.
|
| EXPECT_CALL(delegate, OnGetUserInfoFailure(_));
|
| net::TestURLFetcher* url_fetcher = url_factory_.GetFetcherByID(0);
|
| - url_fetcher->set_status(net::URLRequestStatus(
|
| - net::URLRequestStatus::FAILED, -1));
|
| + url_fetcher->set_status(net::URLRequestStatus::FromError(net::ERR_FAILED));
|
| url_fetcher->delegate()->OnURLFetchComplete(url_fetcher);
|
| }
|
|
|
|
|