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

Unified Diff: content/browser/startup_task_runner_unittest.cc

Issue 2637843002: Migrate base::TaskRunner from Closure to OnceClosure (Closed)
Patch Set: rebase Created 3 years, 8 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
« no previous file with comments | « content/browser/dom_storage/dom_storage_task_runner.cc ('k') | content/child/worker_thread_registry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/startup_task_runner_unittest.cc
diff --git a/content/browser/startup_task_runner_unittest.cc b/content/browser/startup_task_runner_unittest.cc
index cec2ec3c57f6519c88de020f4f58757514ab2957..747c313f30dcbdf8f2b2a88c5d2fd8ec03bb7abb 100644
--- a/content/browser/startup_task_runner_unittest.cc
+++ b/content/browser/startup_task_runner_unittest.cc
@@ -88,25 +88,25 @@ class TaskRunnerProxy : public base::SingleThreadTaskRunner {
TaskRunnerProxy(MockTaskRunner* mock) : mock_(mock) {}
bool RunsTasksOnCurrentThread() const override { return true; }
bool PostDelayedTask(const tracked_objects::Location& location,
- base::Closure closure,
+ base::OnceClosure closure,
base::TimeDelta delta) override {
last_task_ = std::move(closure);
return mock_->PostDelayedTask(location, delta);
}
bool PostNonNestableDelayedTask(const tracked_objects::Location& location,
- base::Closure closure,
+ base::OnceClosure closure,
base::TimeDelta delta) override {
last_task_ = std::move(closure);
return mock_->PostNonNestableDelayedTask(location, delta);
}
- base::Closure TakeLastTaskClosure() { return std::move(last_task_); }
+ base::OnceClosure TakeLastTaskClosure() { return std::move(last_task_); }
private:
~TaskRunnerProxy() override {}
MockTaskRunner* mock_;
- base::Closure last_task_;
+ base::OnceClosure last_task_;
};
TEST_F(StartupTaskRunnerTest, SynchronousExecution) {
« no previous file with comments | « content/browser/dom_storage/dom_storage_task_runner.cc ('k') | content/child/worker_thread_registry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698