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

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: Remove a 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 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);

Powered by Google App Engine
This is Rietveld 408576698