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

Unified Diff: Source/web/tests/SpinLockTest.cpp

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing #include Created 5 years, 3 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
« no previous file with comments | « Source/web/tests/FrameTestHelpers.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/SpinLockTest.cpp
diff --git a/Source/web/tests/SpinLockTest.cpp b/Source/web/tests/SpinLockTest.cpp
index 8233746ea6b2f14bae0f549717bdb6eec97b4ff0..11ead51cbd8d6cd80f885dfcf3063696ead86905 100644
--- a/Source/web/tests/SpinLockTest.cpp
+++ b/Source/web/tests/SpinLockTest.cpp
@@ -82,8 +82,8 @@ TEST(SpinLockTest, Torture)
OwnPtr<WebThread> thread1 = adoptPtr(Platform::current()->createThread("thread1"));
OwnPtr<WebThread> thread2 = adoptPtr(Platform::current()->createThread("thread2"));
- thread1->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
- thread2->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
+ thread1->taskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
+ thread2->taskRunner()->postTask(FROM_HERE, new Task(threadSafeBind(&threadMain, AllowCrossThreadAccess(static_cast<char*>(sharedBuffer)))));
thread1.clear();
thread2.clear();
« no previous file with comments | « Source/web/tests/FrameTestHelpers.cpp ('k') | Source/web/tests/WebFrameTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698