| 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 6e4e965f8403440990e8e65c0d6f2b24a41f4568..b9fd83b36e3c2fdf007342a7033a599a2f25a6f2 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 @@ class AudioWorkletGlobalScopeTest : public ::testing::Test {
|
|
|
| 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();
|
| }
|
|
|
|
|