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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/testing/WorkerInternals.h" 5 #include "core/testing/WorkerInternals.h"
6 6
7 #include "bindings/core/v8/ScriptState.h" 7 #include "bindings/core/v8/ScriptState.h"
8 #include "core/frame/Deprecation.h" 8 #include "core/frame/Deprecation.h"
9 #include "core/frame/UseCounter.h" 9 #include "core/frame/UseCounter.h"
10 #include "core/testing/OriginTrialsTest.h" 10 #include "core/testing/OriginTrialsTest.h"
(...skipping 12 matching lines...) Expand all
23 UseCounter::count(scriptState->getExecutionContext(), 23 UseCounter::count(scriptState->getExecutionContext(),
24 static_cast<UseCounter::Feature>(feature)); 24 static_cast<UseCounter::Feature>(feature));
25 } 25 }
26 26
27 void WorkerInternals::countDeprecation(ScriptState* scriptState, 27 void WorkerInternals::countDeprecation(ScriptState* scriptState,
28 uint32_t feature) { 28 uint32_t feature) {
29 Deprecation::countDeprecation(scriptState->getExecutionContext(), 29 Deprecation::countDeprecation(scriptState->getExecutionContext(),
30 static_cast<UseCounter::Feature>(feature)); 30 static_cast<UseCounter::Feature>(feature));
31 } 31 }
32 32
33 void WorkerInternals::collectGarbage(ScriptState* scriptState) {
34 scriptState->isolate()->RequestGarbageCollectionForTesting(
35 v8::Isolate::kFullGarbageCollection);
36 }
37
33 } // namespace blink 38 } // namespace blink
OLDNEW
« 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