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

Unified Diff: third_party/WebKit/Source/platform/scheduler/renderer/task_cost_estimator_unittest.cc

Issue 2122543002: Replace Closure in TaskRunner::PostTask with OneShotCallback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@07_oneshot
Patch Set: fix Created 4 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: third_party/WebKit/Source/platform/scheduler/renderer/task_cost_estimator_unittest.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/renderer/task_cost_estimator_unittest.cc b/third_party/WebKit/Source/platform/scheduler/renderer/task_cost_estimator_unittest.cc
index 478fc98dcba30dfa0bc9b1106f03dfc125e459f1..ad24a6968ddc0690c424cd66f69e47c7fa4c4761 100644
--- a/third_party/WebKit/Source/platform/scheduler/renderer/task_cost_estimator_unittest.cc
+++ b/third_party/WebKit/Source/platform/scheduler/renderer/task_cost_estimator_unittest.cc
@@ -39,7 +39,7 @@ class TaskCostEstimatorForTest : public TaskCostEstimator {
TEST_F(TaskCostEstimatorTest, BasicEstimation) {
TaskCostEstimatorForTest estimator(test_time_source_.get(), 1, 100);
- base::PendingTask task(FROM_HERE, base::Closure());
+ base::PendingTask task(FROM_HERE, base::OnceClosure());
estimator.WillProcessTask(task);
clock_.Advance(base::TimeDelta::FromMilliseconds(500));
@@ -51,7 +51,7 @@ TEST_F(TaskCostEstimatorTest, BasicEstimation) {
TEST_F(TaskCostEstimatorTest, Clear) {
TaskCostEstimatorForTest estimator(test_time_source_.get(), 1, 100);
- base::PendingTask task(FROM_HERE, base::Closure());
+ base::PendingTask task(FROM_HERE, base::OnceClosure());
estimator.WillProcessTask(task);
clock_.Advance(base::TimeDelta::FromMilliseconds(500));
@@ -64,7 +64,7 @@ TEST_F(TaskCostEstimatorTest, Clear) {
TEST_F(TaskCostEstimatorTest, NestedRunLoop) {
TaskCostEstimatorForTest estimator(test_time_source_.get(), 1, 100);
- base::PendingTask task(FROM_HERE, base::Closure());
+ base::PendingTask task(FROM_HERE, base::OnceClosure());
// Make sure we ignore the tasks inside the nested run loop.
estimator.WillProcessTask(task);

Powered by Google App Engine
This is Rietveld 408576698