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

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

Issue 2778793002: Start aligning BackgroundFetchRequestInfo with the passed in request object. (Closed)
Patch Set: Rebase Created 3 years, 9 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
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_job_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/background_fetch/background_fetch_data_manager_unittest.cc
diff --git a/content/browser/background_fetch/background_fetch_data_manager_unittest.cc b/content/browser/background_fetch/background_fetch_data_manager_unittest.cc
index a89fd8d708fd3f6a3c5fc911259442fcc0e8ba37..6096005243774c876779a655628876a580c670f1 100644
--- a/content/browser/background_fetch/background_fetch_data_manager_unittest.cc
+++ b/content/browser/background_fetch/background_fetch_data_manager_unittest.cc
@@ -76,12 +76,15 @@ class BackgroundFetchDataManagerTest : public BackgroundFetchTestBase {
// Create |num_requests| BackgroundFetchRequestInfo's.
std::vector<std::unique_ptr<BackgroundFetchRequestInfo>> request_infos;
for (int i = 0; i < num_requests; i++) {
+ ServiceWorkerHeaderMap headers;
+ ServiceWorkerFetchRequest request(GURL(kResource), "GET", headers,
+ Referrer(), false /* is_reload */);
request_infos.push_back(
- base::MakeUnique<BackgroundFetchRequestInfo>(GURL(kResource), kTag));
+ base::MakeUnique<BackgroundFetchRequestInfo>(request));
}
std::unique_ptr<BackgroundFetchJobInfo> job_info =
base::MakeUnique<BackgroundFetchJobInfo>(
- "tag", url::Origin(GURL(kJobOrigin)), kServiceWorkerRegistrationId);
+ kTag, url::Origin(GURL(kJobOrigin)), kServiceWorkerRegistrationId);
job_info->set_num_requests(num_requests);
job_guid_ = job_info->guid();
« no previous file with comments | « no previous file | content/browser/background_fetch/background_fetch_job_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698