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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedWorkletTest.cpp

Issue 2642113002: Worker: Reduce use of ExecutionContextTask in core/workers (Closed)
Patch Set: fix build failures Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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));
}

Powered by Google App Engine
This is Rietveld 408576698