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); |