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

Unified Diff: content/browser/background_sync/background_sync_manager_unittest.cc

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: change useCache to updateViaCache Created 3 years, 6 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_sync/background_sync_manager_unittest.cc
diff --git a/content/browser/background_sync/background_sync_manager_unittest.cc b/content/browser/background_sync/background_sync_manager_unittest.cc
index 81ed0b6d73712946bca0df474542c94d432e931b..521ad44af44801fcde91145a3155585b9d41b6a8 100644
--- a/content/browser/background_sync/background_sync_manager_unittest.cc
+++ b/content/browser/background_sync/background_sync_manager_unittest.cc
@@ -158,12 +158,14 @@ class BackgroundSyncManagerTest : public testing::Test {
bool called_1 = false;
bool called_2 = false;
helper_->context()->RegisterServiceWorker(
- GURL(kPattern1), GURL(kScript1), NULL,
+ GURL(kScript1), ServiceWorkerRegistrationOptions(GURL(kPattern1)),
+ nullptr,
base::Bind(&RegisterServiceWorkerCallback, &called_1,
&sw_registration_id_1_));
helper_->context()->RegisterServiceWorker(
- GURL(kPattern2), GURL(kScript2), NULL,
+ GURL(kScript2), ServiceWorkerRegistrationOptions(GURL(kPattern2)),
+ nullptr,
base::Bind(&RegisterServiceWorkerCallback, &called_2,
&sw_registration_id_2_));
base::RunLoop().RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698