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

Unified Diff: content/browser/background_fetch/background_fetch_job_controller_unittest.cc

Issue 2814683003: Pass through the response code and headers in Background Fetch (Closed)
Patch Set: Created 3 years, 8 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: content/browser/background_fetch/background_fetch_job_controller_unittest.cc
diff --git a/content/browser/background_fetch/background_fetch_job_controller_unittest.cc b/content/browser/background_fetch/background_fetch_job_controller_unittest.cc
index c474c3c13581d83260916aba103684433f1a50c9..d267814283eceda172bb1bc48c722eb20af97793 100644
--- a/content/browser/background_fetch/background_fetch_job_controller_unittest.cc
+++ b/content/browser/background_fetch/background_fetch_job_controller_unittest.cc
@@ -74,9 +74,9 @@ class BackgroundFetchJobControllerTest : public BackgroundFetchTestBase {
// Provide fake responses for the given |request_data| pairs.
for (const auto& pair : request_data) {
- CreateRequestWithProvidedResponse(pair.second, pair.first,
- 200 /* status_code */,
- "" /* response_text */);
+ CreateRequestWithProvidedResponse(
+ pair.second, pair.first,
+ TestResponseBuilder(200 /* response_code */).Build());
}
}

Powered by Google App Engine
This is Rietveld 408576698