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

Side by Side Diff: components/scheduler/child/scheduler_task_runner_delegate_for_test.cc

Issue 1250613002: scheduler: Remove task observer shenanigans (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed a failing test. Created 5 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 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 "components/scheduler/child/scheduler_task_runner_delegate_for_test.h" 5 #include "components/scheduler/child/scheduler_task_runner_delegate_for_test.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "components/scheduler/child/nestable_task_runner_for_test.h" 9 #include "components/scheduler/child/nestable_task_runner_for_test.h"
10 10
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 49
50 bool SchedulerTaskRunnerDelegateForTest::RunsTasksOnCurrentThread() const { 50 bool SchedulerTaskRunnerDelegateForTest::RunsTasksOnCurrentThread() const {
51 return task_runner_->RunsTasksOnCurrentThread(); 51 return task_runner_->RunsTasksOnCurrentThread();
52 } 52 }
53 53
54 bool SchedulerTaskRunnerDelegateForTest::IsNested() const { 54 bool SchedulerTaskRunnerDelegateForTest::IsNested() const {
55 return task_runner_->IsNested(); 55 return task_runner_->IsNested();
56 } 56 }
57 57
58 void SchedulerTaskRunnerDelegateForTest::AddTaskObserver(
59 base::MessageLoop::TaskObserver* task_observer) {
60 task_runner_->AddTaskObserver(task_observer);
61 }
62
63 void SchedulerTaskRunnerDelegateForTest::RemoveTaskObserver(
64 base::MessageLoop::TaskObserver* task_observer) {
65 task_runner_->RemoveTaskObserver(task_observer);
66 }
67
68 } // namespace scheduler 58 } // namespace scheduler
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698