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

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: 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/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 a6b7a008c5ee5bc0b53759580b94c58db0162f5c..736e3e2b967703a9baf230a70b964625c7933afb 100644
--- a/sync/internal_api/public/change_record_unittest.cc
+++ b/sync/internal_api/public/change_record_unittest.cc
@@ -6,8 +6,8 @@
#include <stddef.h>
#include <stdint.h>
-
#include <string>
+#include <utility>
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_number_conversions.h"
@@ -87,7 +87,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) {
@@ -151,7 +151,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());
« no previous file with comments | « sync/internal_api/public/base/progress_marker_map.cc ('k') | sync/internal_api/public/sessions/commit_counters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698