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

Unified Diff: sync/engine/model_type_worker_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/engine/model_type_worker.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/engine/model_type_worker_unittest.cc
diff --git a/sync/engine/model_type_worker_unittest.cc b/sync/engine/model_type_worker_unittest.cc
index 878757d4033a428fd3254c6611d53d767deac28b..cc452d8a56bc2f38fdb2a5e34044d1de34c4f6d8 100644
--- a/sync/engine/model_type_worker_unittest.cc
+++ b/sync/engine/model_type_worker_unittest.cc
@@ -6,6 +6,7 @@
#include <stddef.h>
#include <stdint.h>
+#include <utility>
#include "base/strings/stringprintf.h"
#include "sync/engine/commit_contribution.h"
@@ -19,7 +20,6 @@
#include "sync/test/engine/mock_nudge_handler.h"
#include "sync/test/engine/single_type_mock_server.h"
#include "sync/test/fake_encryptor.h"
-
#include "testing/gtest/include/gtest/gtest.h"
static const syncer::ModelType kModelType = syncer::PREFERENCES;
@@ -283,8 +283,8 @@ void ModelTypeWorkerTest::InitializeWithState(
}
worker_.reset(new ModelTypeWorker(kModelType, state, initial_pending_updates,
- cryptographer_copy.Pass(),
- &mock_nudge_handler_, proxy.Pass()));
+ std::move(cryptographer_copy),
+ &mock_nudge_handler_, std::move(proxy)));
}
void ModelTypeWorkerTest::NewForeignEncryptionKey() {
« no previous file with comments | « sync/engine/model_type_worker.cc ('k') | sync/engine/sync_scheduler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698