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

Unified Diff: mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: remove RunsTasksOnCurrentThread() overrided. 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: mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc
diff --git a/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc b/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc
index 569eb518c6ccb01591aa90d5fc0a574138556582..0c3dd7075c22e4afdc9a8d3c2ab71d6127fe8abd 100644
--- a/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc
+++ b/mojo/public/cpp/bindings/tests/bind_task_runner_unittest.cc
@@ -48,7 +48,10 @@ class TestTaskRunner : public base::SingleThreadTaskRunner {
task_ready_.Signal();
return true;
}
- bool RunsTasksOnCurrentThread() const override {
+ bool RunsTasksOnCurrentThread() const {
gab 2017/04/18 15:00:33 Remove this.
+ return RunsTasksInCurrentSequence();
+ }
+ bool RunsTasksInCurrentSequence() const override {
return base::PlatformThread::CurrentRef() == thread_id_;
}

Powered by Google App Engine
This is Rietveld 408576698