Chromium Code Reviews| 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 8efd35bfe905ccf84af85ff5c9238c7f73c56c03..0d7e8ffe81e17ee9864ee7dc48bf85298285db92 100644 |
| --- a/content/browser/service_worker/embedded_worker_test_helper.h |
| +++ b/content/browser/service_worker/embedded_worker_test_helper.h |
| @@ -72,7 +72,17 @@ class EmbeddedWorkerTestHelper : public IPC::Sender, |
| ServiceWorkerContextWrapper* context_wrapper() { return wrapper_.get(); } |
| void ShutdownContext(); |
| + int next_thread_id() { return next_thread_id_; } |
| + void set_next_thread_id(int next_thread_id) { |
| + next_thread_id_ = next_thread_id; |
| + } |
|
falken
2016/01/05 04:21:16
How about a GetNextThreadId() instead that takes c
jungkees
2016/01/06 02:57:54
Yes, that'd be better. Done.
|
| + |
| int mock_render_process_id() const { return mock_render_process_id_;} |
| + |
| + std::map<int, int64> embedded_worker_id_service_worker_version_id_map() { |
|
falken
2016/01/05 04:21:16
int64_t
jungkees
2016/01/06 02:57:54
Done.
|
| + return embedded_worker_id_service_worker_version_id_map_; |
| + } |
| + |
| // Mock render process. Only set if the one-parameter constructor was used. |
| MockRenderProcessHost* mock_render_process_host() { |
| return render_process_host_.get(); |
| @@ -115,7 +125,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); |