| 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 a8fea6a912eb0cbfb8733a515ea6cb5260ef4bd4..60ff8b145b0e5a0af85eb8dd501d88b08d8e3fbf 100644
|
| --- a/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
|
| +++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp
|
| @@ -12,6 +12,7 @@
|
| #include "core/workers/WorkerThreadStartupData.h"
|
| #include "core/workers/WorkerThreadTestHelper.h"
|
| #include "core/workers/WorkletThreadHolder.h"
|
| +#include "platform/CrossThreadFunctional.h"
|
| #include "platform/testing/UnitTestHelpers.h"
|
| #include "platform/weborigin/SecurityOrigin.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| @@ -173,8 +174,8 @@ TEST_F(ThreadedWorkletTest, UseCounter) {
|
| EXPECT_FALSE(UseCounter::isCounted(document(), feature1));
|
| workerThread()->postTask(
|
| BLINK_FROM_HERE,
|
| - createCrossThreadTask(&ThreadedWorkletThreadForTest::countFeature,
|
| - crossThreadUnretained(workerThread()), feature1));
|
| + crossThreadBind(&ThreadedWorkletThreadForTest::countFeature,
|
| + crossThreadUnretained(workerThread()), feature1));
|
| testing::enterRunLoop();
|
| EXPECT_TRUE(UseCounter::isCounted(document(), feature1));
|
|
|
| @@ -186,8 +187,8 @@ TEST_F(ThreadedWorkletTest, UseCounter) {
|
| EXPECT_FALSE(UseCounter::isCounted(document(), feature2));
|
| workerThread()->postTask(
|
| BLINK_FROM_HERE,
|
| - createCrossThreadTask(&ThreadedWorkletThreadForTest::countDeprecation,
|
| - crossThreadUnretained(workerThread()), feature2));
|
| + crossThreadBind(&ThreadedWorkletThreadForTest::countDeprecation,
|
| + crossThreadUnretained(workerThread()), feature2));
|
| testing::enterRunLoop();
|
| EXPECT_TRUE(UseCounter::isCounted(document(), feature2));
|
| }
|
|
|