| 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 961f16376cb348de446534ba3edbf1aa92c6e7ad..10c71699de1769ec5706c30a1616d974d6a186e2 100644
|
| --- a/content/browser/service_worker/embedded_worker_test_helper.h
|
| +++ b/content/browser/service_worker/embedded_worker_test_helper.h
|
| @@ -77,11 +77,17 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
|
| ServiceWorkerContextWrapper* context_wrapper() { return wrapper_.get(); }
|
| void ShutdownContext();
|
|
|
| + int GetNextThreadId() { return next_thread_id_++; }
|
| +
|
| int mock_render_process_id() const { return mock_render_process_id_;}
|
| MockRenderProcessHost* mock_render_process_host() {
|
| return render_process_host_.get();
|
| }
|
|
|
| + std::map<int, int64_t> embedded_worker_id_service_worker_version_id_map() {
|
| + return embedded_worker_id_service_worker_version_id_map_;
|
| + }
|
| +
|
| // Only used for tests that force creating a new render process. There is no
|
| // corresponding MockRenderProcessHost.
|
| int new_render_process_id() const { return mock_render_process_id_ + 1; }
|
| @@ -127,7 +133,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);
|
|
|