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

Unified Diff: sync/internal_api/attachments/task_queue_unittest.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleaned up Created 5 years 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: sync/internal_api/attachments/task_queue_unittest.cc
diff --git a/sync/internal_api/attachments/task_queue_unittest.cc b/sync/internal_api/attachments/task_queue_unittest.cc
index 361d49c6dced7d08066875cdd92a1f566f2c920c..a84cae231ef30eff5a97b64be36e0823a9981f58 100644
--- a/sync/internal_api/attachments/task_queue_unittest.cc
+++ b/sync/internal_api/attachments/task_queue_unittest.cc
@@ -4,6 +4,7 @@
#include "sync/internal_api/public/attachments/task_queue.h"
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -100,7 +101,7 @@ TEST_F(TaskQueueTest, AddToQueue_NoDuplicates) {
TEST_F(TaskQueueTest, Retry) {
scoped_ptr<base::MockTimer> timer_to_pass(new base::MockTimer(false, false));
base::MockTimer* mock_timer = timer_to_pass.get();
- queue_->SetTimerForTest(timer_to_pass.Pass());
+ queue_->SetTimerForTest(std::move(timer_to_pass));
// 1st attempt.
queue_->AddToQueue(1);
@@ -198,7 +199,7 @@ TEST_F(TaskQueueTest, Cancel) {
TEST_F(TaskQueueTest, ResetBackoff) {
scoped_ptr<base::MockTimer> timer_to_pass(new base::MockTimer(false, false));
base::MockTimer* mock_timer = timer_to_pass.get();
- queue_->SetTimerForTest(timer_to_pass.Pass());
+ queue_->SetTimerForTest(std::move(timer_to_pass));
// Add an item, mark it as failed, re-add it and see that we now have a
// backoff delay.
« no previous file with comments | « sync/internal_api/attachments/on_disk_attachment_store_unittest.cc ('k') | sync/internal_api/events/protocol_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698