Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: google_apis/gaia/gaia_oauth_client_unittest.cc

Issue 1239993004: Fix all failed and canceled URLRequestStatuses without errors. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix more failures Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: google_apis/gaia/gaia_oauth_client_unittest.cc
diff --git a/google_apis/gaia/gaia_oauth_client_unittest.cc b/google_apis/gaia/gaia_oauth_client_unittest.cc
index 18bda59e297ea9956a37628347d498229dd6b1be..ee9f17aa51929d3f5b6d9ec0187aa7d154b7b050 100644
--- a/google_apis/gaia/gaia_oauth_client_unittest.cc
+++ b/google_apis/gaia/gaia_oauth_client_unittest.cc
@@ -56,12 +56,12 @@ class MockOAuthFetcher : public net::TestURLFetcher {
set_response_code(net::HTTP_OK);
}
- net::URLRequestStatus::Status code = net::URLRequestStatus::SUCCESS;
+ net::Error error = net::OK;
if (GetResponseCode() != net::HTTP_OK) {
- code = net::URLRequestStatus::FAILED;
+ error = net::ERR_FAILED;
current_failure_count_++;
}
- set_status(net::URLRequestStatus(code, 0));
+ set_status(net::URLRequestStatus::FromError(error));
if (complete_immediately_)
delegate()->OnURLFetchComplete(this);
« no previous file with comments | « google_apis/gaia/gaia_auth_fetcher_unittest.cc ('k') | google_apis/gaia/oauth2_access_token_fetcher_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698