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

Unified Diff: components/scheduler/child/nestable_task_runner_for_test.cc

Issue 1370343002: Revert of scheduler: Add a base directory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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: components/scheduler/child/nestable_task_runner_for_test.cc
diff --git a/components/scheduler/child/nestable_task_runner_for_test.cc b/components/scheduler/child/nestable_task_runner_for_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..6193d5ea97072287012c7f7433966371096de364
--- /dev/null
+++ b/components/scheduler/child/nestable_task_runner_for_test.cc
@@ -0,0 +1,48 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "components/scheduler/child/nestable_task_runner_for_test.h"
+
+#include "base/bind.h"
+#include "base/bind_helpers.h"
+
+namespace scheduler {
+
+// static
+scoped_refptr<NestableTaskRunnerForTest> NestableTaskRunnerForTest::Create(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
+ return make_scoped_refptr(new NestableTaskRunnerForTest(task_runner));
+}
+
+NestableTaskRunnerForTest::NestableTaskRunnerForTest(
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner)
+ : task_runner_(task_runner), is_nested_(false) {
+}
+
+NestableTaskRunnerForTest::~NestableTaskRunnerForTest() {
+}
+
+bool NestableTaskRunnerForTest::PostDelayedTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta delay) {
+ return task_runner_->PostDelayedTask(from_here, task, delay);
+}
+
+bool NestableTaskRunnerForTest::PostNonNestableDelayedTask(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task,
+ base::TimeDelta delay) {
+ return task_runner_->PostNonNestableDelayedTask(from_here, task, delay);
+}
+
+bool NestableTaskRunnerForTest::RunsTasksOnCurrentThread() const {
+ return task_runner_->RunsTasksOnCurrentThread();
+}
+
+bool NestableTaskRunnerForTest::IsNested() const {
+ return false;
+}
+
+} // namespace scheduler
« 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