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

Unified Diff: third_party/WebKit/Source/platform/TimerTest.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/TimerTest.cpp
diff --git a/third_party/WebKit/Source/platform/TimerTest.cpp b/third_party/WebKit/Source/platform/TimerTest.cpp
index dec685062c1e1cf09f5bd020d3bebf5b2e802fb2..cb70f64a3625efaef9002ee037ca0b6d0b990204 100644
--- a/third_party/WebKit/Source/platform/TimerTest.cpp
+++ b/third_party/WebKit/Source/platform/TimerTest.cpp
@@ -88,15 +88,21 @@ public:
m_timerTasks->push(DelayedTask(task, delayMs * 0.001));
}
+ bool runsTasksOnCurrentThread() override
+ {
+ NOTREACHED();
+ return true;
+ }
+
WebTaskRunner* clone() override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return nullptr;
}
double virtualTimeSeconds() const override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0.0;
}
@@ -142,7 +148,7 @@ public:
WebTaskRunner* loadingTaskRunner() override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return nullptr;
}
@@ -207,19 +213,19 @@ public:
virtual bool isCurrentThread() const
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return true;
}
virtual PlatformThreadId threadId() const
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return 0;
}
WebTaskRunner* getWebTaskRunner() override
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
return nullptr;
}
@@ -230,12 +236,12 @@ public:
virtual void enterRunLoop()
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
virtual void exitRunLoop()
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
private:

Powered by Google App Engine
This is Rietveld 408576698