Index: base/test/test_pending_task.h |
diff --git a/base/test/test_pending_task.h b/base/test/test_pending_task.h |
index 2dbdb7eeccbdcc1927dca53114258f83eb06e477..c8fdea39560c6a3ec1972b6bf8bcd8b5786380d1 100644 |
--- a/base/test/test_pending_task.h |
+++ b/base/test/test_pending_task.h |
@@ -21,13 +21,14 @@ struct TestPendingTask { |
enum TestNestability { NESTABLE, NON_NESTABLE }; |
TestPendingTask(); |
- TestPendingTask(const TestPendingTask& other); |
+ TestPendingTask(TestPendingTask&& other); |
TestPendingTask(const tracked_objects::Location& location, |
- const Closure& task, |
+ OnceClosure task, |
TimeTicks post_time, |
TimeDelta delay, |
TestNestability nestability); |
~TestPendingTask(); |
+ TestPendingTask& operator=(TestPendingTask&& other); |
// Returns post_time + delay. |
TimeTicks GetTimeToRun() const; |
@@ -51,7 +52,7 @@ struct TestPendingTask { |
bool ShouldRunBefore(const TestPendingTask& other) const; |
tracked_objects::Location location; |
- Closure task; |
+ mutable OnceClosure task; |
TimeTicks post_time; |
TimeDelta delay; |
TestNestability nestability; |