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

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

Issue 1374653003: scheduler: Add a base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed gn clobber build. Created 5 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "components/scheduler/child/nestable_task_runner_for_test.h"
6
7 #include "base/bind.h"
8 #include "base/bind_helpers.h"
9
10 namespace scheduler {
11
12 // static
13 scoped_refptr<NestableTaskRunnerForTest> NestableTaskRunnerForTest::Create(
14 scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
15 return make_scoped_refptr(new NestableTaskRunnerForTest(task_runner));
16 }
17
18 NestableTaskRunnerForTest::NestableTaskRunnerForTest(
19 scoped_refptr<base::SingleThreadTaskRunner> task_runner)
20 : task_runner_(task_runner), is_nested_(false) {
21 }
22
23 NestableTaskRunnerForTest::~NestableTaskRunnerForTest() {
24 }
25
26 bool NestableTaskRunnerForTest::PostDelayedTask(
27 const tracked_objects::Location& from_here,
28 const base::Closure& task,
29 base::TimeDelta delay) {
30 return task_runner_->PostDelayedTask(from_here, task, delay);
31 }
32
33 bool NestableTaskRunnerForTest::PostNonNestableDelayedTask(
34 const tracked_objects::Location& from_here,
35 const base::Closure& task,
36 base::TimeDelta delay) {
37 return task_runner_->PostNonNestableDelayedTask(from_here, task, delay);
38 }
39
40 bool NestableTaskRunnerForTest::RunsTasksOnCurrentThread() const {
41 return task_runner_->RunsTasksOnCurrentThread();
42 }
43
44 bool NestableTaskRunnerForTest::IsNested() const {
45 return false;
46 }
47
48 } // namespace scheduler
OLDNEW
« no previous file with comments | « components/scheduler/child/nestable_task_runner_for_test.h ('k') | components/scheduler/child/pollable_thread_safe_flag.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698