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

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

Issue 2806713002: Some minor fixes for 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_service_unittest.cc
diff --git a/content/browser/background_fetch/background_fetch_service_unittest.cc b/content/browser/background_fetch/background_fetch_service_unittest.cc
index 8e5149142314f8f3db97af65ed528d0a0a707d59..8e47edd3c89f1582d2b511744ecbe50fdaafff86 100644
--- a/content/browser/background_fetch/background_fetch_service_unittest.cc
+++ b/content/browser/background_fetch/background_fetch_service_unittest.cc
@@ -128,6 +128,9 @@ class BackgroundFetchServiceTest : public BackgroundFetchTestBase {
context_ = new BackgroundFetchContext(
browser_context(), storage_partition,
make_scoped_refptr(embedded_worker_test_helper()->context_wrapper()));
+ context_->InitializeOnIOThread(
+ make_scoped_refptr(storage_partition->GetURLRequestContext()));
+
service_ = base::MakeUnique<BackgroundFetchServiceImpl>(
0 /* render_process_id */, context_);
}
@@ -369,7 +372,7 @@ TEST_F(BackgroundFetchServiceTest, FetchSuccessEventDispatch) {
EXPECT_EQ(fetches[i].response.status_code, 0);
EXPECT_TRUE(fetches[i].response.status_text.empty());
EXPECT_EQ(fetches[i].response.response_type,
- blink::WebServiceWorkerResponseTypeOpaque);
+ blink::WebServiceWorkerResponseTypeDefault);
EXPECT_TRUE(fetches[i].response.headers.empty());
EXPECT_EQ(fetches[i].response.error,
blink::WebServiceWorkerResponseErrorUnknown);
« no previous file with comments | « content/browser/background_fetch/background_fetch_data_manager.cc ('k') | content/browser/storage_partition_impl_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698