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

Unified Diff: sync/sessions/nudge_tracker_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
« no previous file with comments | « sync/sessions/nudge_tracker.cc ('k') | sync/syncable/directory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/nudge_tracker_unittest.cc
diff --git a/sync/sessions/nudge_tracker_unittest.cc b/sync/sessions/nudge_tracker_unittest.cc
index 06e2c765d79cb3327967092bf62d35d4cd637588..b0d6130e00384db14728f37f762fc45386201edd 100644
--- a/sync/sessions/nudge_tracker_unittest.cc
+++ b/sync/sessions/nudge_tracker_unittest.cc
@@ -6,8 +6,8 @@
#include <stddef.h>
#include <stdint.h>
-
#include <string>
+#include <utility>
#include <vector>
#include "base/message_loop/message_loop.h"
@@ -841,7 +841,7 @@ class NudgeTrackerAckTrackingTest : public NudgeTrackerTest {
int id = inv->GetTrackingId();
// Send it to the NudgeTracker.
- nudge_tracker_.RecordRemoteInvalidation(type, inv.Pass());
+ nudge_tracker_.RecordRemoteInvalidation(type, std::move(inv));
// Return its ID to the test framework for use in assertions.
return id;
@@ -854,7 +854,7 @@ class NudgeTrackerAckTrackingTest : public NudgeTrackerTest {
int id = inv->GetTrackingId();
// Send it to the NudgeTracker.
- nudge_tracker_.RecordRemoteInvalidation(type, inv.Pass());
+ nudge_tracker_.RecordRemoteInvalidation(type, std::move(inv));
// Return its ID to the test framework for use in assertions.
return id;
« no previous file with comments | « sync/sessions/nudge_tracker.cc ('k') | sync/syncable/directory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698