diff options
Diffstat (limited to 'sync/api/sync_change_unittest.cc')
-rw-r--r-- | sync/api/sync_change_unittest.cc | 8 |
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())); } |