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

Unified Diff: third_party/WebKit/Source/core/testing/WorkerInternals.cpp

Issue 2764293002: Add LayoutTests for the fixed multithread GC bug of ServiceWorker Navigation Preload (Closed)
Patch Set: incorporated falken's comment Created 3 years, 9 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: third_party/WebKit/Source/core/testing/WorkerInternals.cpp
diff --git a/third_party/WebKit/Source/core/testing/WorkerInternals.cpp b/third_party/WebKit/Source/core/testing/WorkerInternals.cpp
index 7263097f7b6078c6e14b5e052301eb932cc8d2fb..c8a3c84ad684055bdc6ed5aad7dd585409aa02b7 100644
--- a/third_party/WebKit/Source/core/testing/WorkerInternals.cpp
+++ b/third_party/WebKit/Source/core/testing/WorkerInternals.cpp
@@ -30,4 +30,9 @@ void WorkerInternals::countDeprecation(ScriptState* scriptState,
static_cast<UseCounter::Feature>(feature));
}
+void WorkerInternals::collectGarbage(ScriptState* scriptState) {
+ scriptState->isolate()->RequestGarbageCollectionForTesting(
+ v8::Isolate::kFullGarbageCollection);
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/testing/WorkerInternals.h ('k') | third_party/WebKit/Source/core/testing/WorkerInternals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698