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

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

Issue 2002883002: ServiceWorker: Store the existence of fetch event handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/embedded_worker_test_helper.cc
diff --git a/content/browser/service_worker/embedded_worker_test_helper.cc b/content/browser/service_worker/embedded_worker_test_helper.cc
index adb88e7bab5fe2410539c75605843fa428d6caef..2e8097080ae612477468aaa8a1763feca5f0029c 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.cc
+++ b/content/browser/service_worker/embedded_worker_test_helper.cc
@@ -113,7 +113,6 @@ EmbeddedWorkerTestHelper::~EmbeddedWorkerTestHelper() {
wrapper_->Shutdown();
}
-void EmbeddedWorkerTestHelper::SimulateAddProcessToPattern(
falken 2016/05/23 08:41:13 mistake?
shimazu 2016/05/23 10:44:24 Oh,, This must be a mistake. I haven't found which
falken 2016/05/24 01:15:34 content_unittests I often run: out/Default/conten
shimazu 2016/05/24 04:17:46 Thank you, I'll do it.
const GURL& pattern,
int process_id) {
registry()->AddChildProcessSender(process_id, this,
@@ -223,10 +222,9 @@ void EmbeddedWorkerTestHelper::OnInstallEvent(int embedded_worker_id,
// The installing worker may have been doomed and terminated.
if (!registry()->GetWorker(embedded_worker_id))
return;
- SimulateSend(
- new ServiceWorkerHostMsg_InstallEventFinished(
- embedded_worker_id, request_id,
- blink::WebServiceWorkerEventResultCompleted));
+ SimulateSend(new ServiceWorkerHostMsg_InstallEventFinished(
+ embedded_worker_id, request_id,
+ blink::WebServiceWorkerEventResultCompleted, true));
}
void EmbeddedWorkerTestHelper::OnFetchEvent(

Powered by Google App Engine
This is Rietveld 408576698