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

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

Issue 1135743002: Check the size of ResourceRecords in ServiceWorkerDatabase::ReadRegistration() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added check logic in ServiceWorkerStorage and updated tests. Created 5 years, 7 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 c81d191bb9c39aec2562bcb7b1e6e53e809422e5..4abc088272370337f64c844bccc06a27a2d9e176 100644
--- a/content/browser/service_worker/embedded_worker_test_helper.h
+++ b/content/browser/service_worker/embedded_worker_test_helper.h
@@ -103,6 +103,7 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
// browser.
void SimulatePausedAfterDownload(int embedded_worker_id);
void SimulateWorkerReadyForInspection(int embedded_worker_id);
+ void SimulateLoadWorkerMainScript(int embedded_worker_id);
nhiroki 2015/05/11 05:46:04 nit: Can we make this function name consistent wit
horo 2015/05/11 07:41:30 Done.
void SimulateWorkerScriptLoaded(int thread_id, int embedded_worker_id);
void SimulateWorkerScriptEvaluated(int embedded_worker_id);
void SimulateWorkerStarted(int embedded_worker_id);
@@ -131,6 +132,8 @@ class EmbeddedWorkerTestHelper : public IPC::Sender,
int next_thread_id_;
int mock_render_process_id_;
+ std::map<int, int64> embedded_worker_id_service_worker_version_id_map_;
+
// Updated each time MessageToWorker message is received.
int current_embedded_worker_id_;

Powered by Google App Engine
This is Rietveld 408576698