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

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

Issue 1381153004: Service Worker: Change the criteria for bumping the last update check time (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename a member variable; update the comment. Created 5 years 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.h
diff --git a/content/browser/service_worker/embedded_worker_test_helper.h b/content/browser/service_worker/embedded_worker_test_helper.h
index d7139055f4e9aaa77916c673d2b98e57735484f2..5360f0ef0b83ee23a3b6c7f0de25e16d562af42b 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.h
+++ b/content/browser/service_worker/embedded_worker_test_helper.h
@@ -91,12 +91,18 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
// is sent to the embedded worker. Override if necessary. By default
// they verify given parameters and:
// - OnStartWorker calls SimulateWorkerStarted
+ // - OnStartWorkerFailed calls SimulateWorkerScriptEvaluated with |success|
+ // false
// - OnStopWorker calls SimulateWorkerStoped
// - OnSendMessageToWorker calls the message's respective On*Event handler
virtual void OnStartWorker(int embedded_worker_id,
int64 service_worker_version_id,
const GURL& scope,
const GURL& script_url);
+ virtual void OnStartWorkerFailed(int embedded_worker_id,
falken 2015/12/17 13:23:43 Sorry to nitpick a bit late in the game... this fu
jungkees 2015/12/23 03:08:58 I'd tried subclassing EmbeddedWorkerTestHelper to
+ int64 service_worker_version_id,
+ const GURL& scope,
+ const GURL& script_url);
virtual void OnStopWorker(int embedded_worker_id);
virtual bool OnMessageToWorker(int thread_id,
int embedded_worker_id,
@@ -121,7 +127,7 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
void SimulateWorkerScriptCached(int embedded_worker_id);
void SimulateWorkerScriptLoaded(int embedded_worker_id);
void SimulateWorkerThreadStarted(int thread_id, int embedded_worker_id);
- void SimulateWorkerScriptEvaluated(int embedded_worker_id);
+ void SimulateWorkerScriptEvaluated(int embedded_worker_id, bool success);
void SimulateWorkerStarted(int embedded_worker_id);
void SimulateWorkerStopped(int embedded_worker_id);
void SimulateSend(IPC::Message* message);

Powered by Google App Engine
This is Rietveld 408576698