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

Unified Diff: content/browser/service_worker/service_worker_provider_host_unittest.cc

Issue 2771823002: Implement updateViaCache flag and no-cache by default for main service worker scripts
Patch Set: fix tests 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
Index: content/browser/service_worker/service_worker_provider_host_unittest.cc
diff --git a/content/browser/service_worker/service_worker_provider_host_unittest.cc b/content/browser/service_worker/service_worker_provider_host_unittest.cc
index ce0560be5e6e4003d99cd3ad8eab9158f3c1bf93..9a710e1efc75fb3431c6e02edebb7d08933b0fc9 100644
--- a/content/browser/service_worker/service_worker_provider_host_unittest.cc
+++ b/content/browser/service_worker/service_worker_provider_host_unittest.cc
@@ -54,11 +54,14 @@ class ServiceWorkerProviderHostTest : public testing::Test {
context_ = helper_->context();
script_url_ = GURL("https://www.example.com/service_worker.js");
registration1_ = new ServiceWorkerRegistration(
- GURL("https://www.example.com/"), 1L, context_->AsWeakPtr());
+ GURL("https://www.example.com/"), false /* use_cache */, 1L,
+ context_->AsWeakPtr());
registration2_ = new ServiceWorkerRegistration(
- GURL("https://www.example.com/example"), 2L, context_->AsWeakPtr());
+ GURL("https://www.example.com/example"), false /* use_cache */, 2L,
+ context_->AsWeakPtr());
registration3_ = new ServiceWorkerRegistration(
- GURL("https://other.example.com/"), 3L, context_->AsWeakPtr());
+ GURL("https://other.example.com/"), false /* use_cache */, 3L,
+ context_->AsWeakPtr());
}
void TearDown() override {

Powered by Google App Engine
This is Rietveld 408576698