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

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: Rebase Created 4 years, 11 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.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);

Powered by Google App Engine
This is Rietveld 408576698