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

Side by Side Diff: third_party/WebKit/Source/platform/scheduler/base/task_queue_manager_delegate_for_test.cc

Issue 2823103003: Introduce TaskRunner::RunsTasksInCurrentSequence() (Closed)
Patch Set: rebase Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "platform/scheduler/base/task_queue_manager_delegate_for_test.h" 5 #include "platform/scheduler/base/task_queue_manager_delegate_for_test.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 25 matching lines...) Expand all
36 } 36 }
37 37
38 bool TaskQueueManagerDelegateForTest::PostNonNestableDelayedTask( 38 bool TaskQueueManagerDelegateForTest::PostNonNestableDelayedTask(
39 const tracked_objects::Location& from_here, 39 const tracked_objects::Location& from_here,
40 base::OnceClosure task, 40 base::OnceClosure task,
41 base::TimeDelta delay) { 41 base::TimeDelta delay) {
42 return task_runner_->PostNonNestableDelayedTask(from_here, std::move(task), 42 return task_runner_->PostNonNestableDelayedTask(from_here, std::move(task),
43 delay); 43 delay);
44 } 44 }
45 45
46 bool TaskQueueManagerDelegateForTest::RunsTasksOnCurrentThread() const { 46 bool TaskQueueManagerDelegateForTest::RunsTasksInCurrentSequence() const {
47 return task_runner_->RunsTasksOnCurrentThread(); 47 return task_runner_->RunsTasksInCurrentSequence();
48 } 48 }
49 49
50 bool TaskQueueManagerDelegateForTest::IsNested() const { 50 bool TaskQueueManagerDelegateForTest::IsNested() const {
51 return false; 51 return false;
52 } 52 }
53 53
54 void TaskQueueManagerDelegateForTest::AddNestingObserver( 54 void TaskQueueManagerDelegateForTest::AddNestingObserver(
55 base::MessageLoop::NestingObserver* observer) {} 55 base::MessageLoop::NestingObserver* observer) {}
56 56
57 void TaskQueueManagerDelegateForTest::RemoveNestingObserver( 57 void TaskQueueManagerDelegateForTest::RemoveNestingObserver(
58 base::MessageLoop::NestingObserver* observer) {} 58 base::MessageLoop::NestingObserver* observer) {}
59 59
60 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() { 60 base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() {
61 return time_source_->NowTicks(); 61 return time_source_->NowTicks();
62 } 62 }
63 63
64 } // namespace scheduler 64 } // namespace scheduler
65 } // namespace blink 65 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698