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

Unified Diff: sync/internal_api/public/change_record_unittest.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/public/change_record_unittest.cc
diff --git a/sync/internal_api/public/change_record_unittest.cc b/sync/internal_api/public/change_record_unittest.cc
index b68831a3f596e577eec5278c59e7ee43ea3935b3..2187e024ec179edd681b71a0c8dde22c3a32f403 100644
--- a/sync/internal_api/public/change_record_unittest.cc
+++ b/sync/internal_api/public/change_record_unittest.cc
@@ -5,6 +5,7 @@
#include "sync/internal_api/public/change_record.h"
#include <string>
+#include <utility>
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
@@ -84,7 +85,7 @@ class TestExtraChangeRecordData : public ExtraPasswordChangeRecordData {
}
void set_dictionary_value(scoped_ptr<base::DictionaryValue> dict) {
- dict_ = dict.Pass();
+ dict_ = std::move(dict);
}
void set_expected_to_value_calls(size_t expectation) {
@@ -148,7 +149,7 @@ TEST_F(ChangeRecordTest, ChangeRecordToValue) {
extra_value->SetString("foo", "bar");
scoped_ptr<TestExtraChangeRecordData> extra(
new TestExtraChangeRecordData());
- extra->set_dictionary_value(extra_value.Pass());
+ extra->set_dictionary_value(std::move(extra_value));
extra->set_expected_to_value_calls(2U);
record.extra.reset(extra.release());

Powered by Google App Engine
This is Rietveld 408576698