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

Unified Diff: components/scheduler/base/task_queue_manager_delegate_for_test.cc

Issue 2118903002: scheduler: Move the Blink scheduler into Blink (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 4 years, 4 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/base/task_queue_manager_delegate_for_test.cc
diff --git a/components/scheduler/base/task_queue_manager_delegate_for_test.cc b/components/scheduler/base/task_queue_manager_delegate_for_test.cc
deleted file mode 100644
index 56380307db470bfb56ef89840762f568db2739ad..0000000000000000000000000000000000000000
--- a/components/scheduler/base/task_queue_manager_delegate_for_test.cc
+++ /dev/null
@@ -1,56 +0,0 @@
-// 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/base/task_queue_manager_delegate_for_test.h"
-
-#include <utility>
-
-#include "base/bind.h"
-#include "base/bind_helpers.h"
-
-namespace scheduler {
-
-// static
-scoped_refptr<TaskQueueManagerDelegateForTest>
-TaskQueueManagerDelegateForTest::Create(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- std::unique_ptr<base::TickClock> time_source) {
- return make_scoped_refptr(
- new TaskQueueManagerDelegateForTest(task_runner, std::move(time_source)));
-}
-
-TaskQueueManagerDelegateForTest::TaskQueueManagerDelegateForTest(
- scoped_refptr<base::SingleThreadTaskRunner> task_runner,
- std::unique_ptr<base::TickClock> time_source)
- : task_runner_(task_runner), time_source_(std::move(time_source)) {}
-
-TaskQueueManagerDelegateForTest::~TaskQueueManagerDelegateForTest() {}
-
-bool TaskQueueManagerDelegateForTest::PostDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) {
- return task_runner_->PostDelayedTask(from_here, task, delay);
-}
-
-bool TaskQueueManagerDelegateForTest::PostNonNestableDelayedTask(
- const tracked_objects::Location& from_here,
- const base::Closure& task,
- base::TimeDelta delay) {
- return task_runner_->PostNonNestableDelayedTask(from_here, task, delay);
-}
-
-bool TaskQueueManagerDelegateForTest::RunsTasksOnCurrentThread() const {
- return task_runner_->RunsTasksOnCurrentThread();
-}
-
-bool TaskQueueManagerDelegateForTest::IsNested() const {
- return false;
-}
-
-base::TimeTicks TaskQueueManagerDelegateForTest::NowTicks() {
- return time_source_->NowTicks();
-}
-
-} // namespace scheduler

Powered by Google App Engine
This is Rietveld 408576698