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

Unified Diff: third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp

Issue 2123783002: Expose RunsTasksOnCurrentThread through WebTaskRunner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@00_fix_thread_affinity
Patch Set: rebase Created 4 years, 5 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/platform/testing/TestingPlatformSupport.cpp
diff --git a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
index 971224d393d4160be420ac58ac85cf3a3b5d995d..34ec0bc12f3fd765feed185011cf78a265b239dd 100644
--- a/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
+++ b/third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp
@@ -81,7 +81,13 @@ public:
void postDelayedTask(const WebTraceLocation&, Task*, double delayMs) override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
+ }
+
+ bool runsTasksOnCurrentThread() override
+ {
+ NOTREACHED();
+ return true;
}
WebTaskRunner* clone() override
@@ -91,13 +97,13 @@ public:
double virtualTimeSeconds() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0.0;
}
double monotonicallyIncreasingVirtualTimeSeconds() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0.0;
}
@@ -148,7 +154,7 @@ public:
bool isCurrentThread() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return true;
}

Powered by Google App Engine
This is Rietveld 408576698