summaryrefslogtreecommitdiffstats
path: root/sync/api
diff options
context:
space:
mode:
authorestade <estade@chromium.org>2015-05-07 14:16:45 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-07 21:17:10 +0000
commitc6bb7fcb643e4ca240f793e1455155ea2699ce5b (patch)
treef3b8bc8bb8b617f3cf4be22be81bb8b7b9f93aa0 /sync/api
parent61cae85448cfeb793270e804b5ad1023993279c5 (diff)
downloadchromium_src-c6bb7fcb643e4ca240f793e1455155ea2699ce5b.zip
chromium_src-c6bb7fcb643e4ca240f793e1455155ea2699ce5b.tar.gz
chromium_src-c6bb7fcb643e4ca240f793e1455155ea2699ce5b.tar.bz2
Convert some parts of sync/ to use of scoped_ptr instead of bare ptrs
for base::Value handling. BUG=none Review URL: https://codereview.chromium.org/1126913002 Cr-Commit-Position: refs/heads/master@{#328830}
Diffstat (limited to 'sync/api')
-rw-r--r--sync/api/sync_change_unittest.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/sync/api/sync_change_unittest.cc b/sync/api/sync_change_unittest.cc
index 24a14b6..919fe53 100644
--- a/sync/api/sync_change_unittest.cc
+++ b/sync/api/sync_change_unittest.cc
@@ -142,16 +142,16 @@ TEST_F(SyncChangeTest, SyncerChanges) {
e = change_list[1];
EXPECT_EQ(SyncChange::ACTION_ADD, e.change_type());
EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType());
- ref_spec.reset(EntitySpecificsToValue(add_specifics));
- e_spec.reset(EntitySpecificsToValue(e.sync_data().GetSpecifics()));
+ ref_spec = EntitySpecificsToValue(add_specifics);
+ e_spec = EntitySpecificsToValue(e.sync_data().GetSpecifics());
EXPECT_TRUE(ref_spec->Equals(e_spec.get()));
// Verify delete.
e = change_list[2];
EXPECT_EQ(SyncChange::ACTION_DELETE, e.change_type());
EXPECT_EQ(PREFERENCES, e.sync_data().GetDataType());
- ref_spec.reset(EntitySpecificsToValue(delete_specifics));
- e_spec.reset(EntitySpecificsToValue(e.sync_data().GetSpecifics()));
+ ref_spec = EntitySpecificsToValue(delete_specifics);
+ e_spec = EntitySpecificsToValue(e.sync_data().GetSpecifics());
EXPECT_TRUE(ref_spec->Equals(e_spec.get()));
}