| Index: third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
|
| diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp b/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
|
| index 61b5b91bd9524fdc8a3019dac70082ab4eb10320..ee203e3b7a4babf6944480a969d9b5a3b3d260df 100644
|
| --- a/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
|
| @@ -2,7 +2,6 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "core/dom/TaskRunnerHelper.h"
|
| #include "core/inspector/ConsoleMessageStorage.h"
|
| #include "core/testing/DummyPageHolder.h"
|
| #include "core/workers/ThreadedWorkletGlobalScope.h"
|
| @@ -174,11 +173,10 @@
|
| // API use on the DedicatedWorkerGlobalScope should be recorded in UseCounter
|
| // on the Document.
|
| EXPECT_FALSE(UseCounter::IsCounted(GetDocument(), kFeature1));
|
| - TaskRunnerHelper::Get(TaskType::kUnspecedTimer, GetWorkerThread())
|
| - ->PostTask(
|
| - BLINK_FROM_HERE,
|
| - CrossThreadBind(&ThreadedWorkletThreadForTest::CountFeature,
|
| - CrossThreadUnretained(GetWorkerThread()), kFeature1));
|
| + GetWorkerThread()->PostTask(
|
| + BLINK_FROM_HERE,
|
| + CrossThreadBind(&ThreadedWorkletThreadForTest::CountFeature,
|
| + CrossThreadUnretained(GetWorkerThread()), kFeature1));
|
| testing::EnterRunLoop();
|
| EXPECT_TRUE(UseCounter::IsCounted(GetDocument(), kFeature1));
|
|
|
| @@ -189,11 +187,10 @@
|
| // Deprecated API use on the ThreadedWorkletGlobalScope should be recorded in
|
| // UseCounter on the Document.
|
| EXPECT_FALSE(UseCounter::IsCounted(GetDocument(), kFeature2));
|
| - TaskRunnerHelper::Get(TaskType::kUnspecedTimer, GetWorkerThread())
|
| - ->PostTask(
|
| - BLINK_FROM_HERE,
|
| - CrossThreadBind(&ThreadedWorkletThreadForTest::CountDeprecation,
|
| - CrossThreadUnretained(GetWorkerThread()), kFeature2));
|
| + GetWorkerThread()->PostTask(
|
| + BLINK_FROM_HERE,
|
| + CrossThreadBind(&ThreadedWorkletThreadForTest::CountDeprecation,
|
| + CrossThreadUnretained(GetWorkerThread()), kFeature2));
|
| testing::EnterRunLoop();
|
| EXPECT_TRUE(UseCounter::IsCounted(GetDocument(), kFeature2));
|
| }
|
|
|