| Index: third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
|
| index e08e4f90c1a79ee680beda069cd52cae9d6d6409..f4c540c379dd3c3392aacdfd4343b610760e8068 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletGlobalScopeTest.cpp
|
| @@ -15,6 +15,7 @@
|
| #include "bindings/core/v8/V8GCController.h"
|
| #include "bindings/core/v8/V8ObjectConstructor.h"
|
| #include "bindings/core/v8/WorkerOrWorkletScriptController.h"
|
| +#include "core/dom/TaskRunnerHelper.h"
|
| #include "core/workers/WorkerBackingThread.h"
|
| #include "core/workers/WorkerReportingProxy.h"
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| @@ -62,34 +63,37 @@
|
|
|
| void RunBasicTest(WorkerThread* thread) {
|
| WaitableEvent waitable_event;
|
| - thread->PostTask(
|
| - BLINK_FROM_HERE,
|
| - CrossThreadBind(
|
| - &AudioWorkletGlobalScopeTest::RunBasicTestOnWorkletThread,
|
| - CrossThreadUnretained(this), CrossThreadUnretained(thread),
|
| - CrossThreadUnretained(&waitable_event)));
|
| + TaskRunnerHelper::Get(TaskType::kUnthrottled, thread)
|
| + ->PostTask(
|
| + BLINK_FROM_HERE,
|
| + CrossThreadBind(
|
| + &AudioWorkletGlobalScopeTest::RunBasicTestOnWorkletThread,
|
| + CrossThreadUnretained(this), CrossThreadUnretained(thread),
|
| + CrossThreadUnretained(&waitable_event)));
|
| waitable_event.Wait();
|
| }
|
|
|
| void RunSimpleProcessTest(WorkerThread* thread) {
|
| WaitableEvent waitable_event;
|
| - thread->PostTask(
|
| - BLINK_FROM_HERE,
|
| - CrossThreadBind(
|
| - &AudioWorkletGlobalScopeTest::RunSimpleProcessTestOnWorkletThread,
|
| - CrossThreadUnretained(this), CrossThreadUnretained(thread),
|
| - CrossThreadUnretained(&waitable_event)));
|
| + TaskRunnerHelper::Get(TaskType::kUnthrottled, thread)
|
| + ->PostTask(BLINK_FROM_HERE,
|
| + CrossThreadBind(&AudioWorkletGlobalScopeTest::
|
| + RunSimpleProcessTestOnWorkletThread,
|
| + CrossThreadUnretained(this),
|
| + CrossThreadUnretained(thread),
|
| + CrossThreadUnretained(&waitable_event)));
|
| waitable_event.Wait();
|
| }
|
|
|
| void RunParsingTest(WorkerThread* thread) {
|
| WaitableEvent waitable_event;
|
| - thread->PostTask(
|
| - BLINK_FROM_HERE,
|
| - CrossThreadBind(
|
| - &AudioWorkletGlobalScopeTest::RunParsingTestOnWorkletThread,
|
| - CrossThreadUnretained(this), CrossThreadUnretained(thread),
|
| - CrossThreadUnretained(&waitable_event)));
|
| + TaskRunnerHelper::Get(TaskType::kUnthrottled, thread)
|
| + ->PostTask(
|
| + BLINK_FROM_HERE,
|
| + CrossThreadBind(
|
| + &AudioWorkletGlobalScopeTest::RunParsingTestOnWorkletThread,
|
| + CrossThreadUnretained(this), CrossThreadUnretained(thread),
|
| + CrossThreadUnretained(&waitable_event)));
|
| waitable_event.Wait();
|
| }
|
|
|
|
|