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

Unified Diff: third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase Created 3 years, 8 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/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
index bd41c59fef331ffed136343a1e3a45d4f71680ac..dc3cde010f0f6d5f5ed57b3525cff7c1057d9b82 100644
--- a/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
+++ b/third_party/WebKit/Source/platform/scheduler/test/lazy_scheduler_message_loop_delegate_for_tests.cc
@@ -37,7 +37,7 @@ base::MessageLoop* LazySchedulerMessageLoopDelegateForTests::EnsureMessageLoop()
const {
if (message_loop_)
return message_loop_;
- DCHECK(RunsTasksOnCurrentThread());
+ DCHECK(RunsTasksInCurrentSequence());
message_loop_ = base::MessageLoop::current();
DCHECK(message_loop_);
original_task_runner_ = message_loop_->task_runner();
@@ -84,7 +84,7 @@ bool LazySchedulerMessageLoopDelegateForTests::PostNonNestableDelayedTask(
from_here, std::move(task), delay);
}
-bool LazySchedulerMessageLoopDelegateForTests::RunsTasksOnCurrentThread()
+bool LazySchedulerMessageLoopDelegateForTests::RunsTasksInCurrentSequence()
const {
return thread_id_ == base::PlatformThread::CurrentId();
}

Powered by Google App Engine
This is Rietveld 408576698