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

Unified Diff: sync/syncable/syncable_unittest.cc

Issue 11341048: Populate versions on individual nodes in sync model and native bookmark model. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync to head Created 8 years, 1 month 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/syncable/syncable_enum_conversions.cc ('k') | sync/syncable/write_transaction.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/syncable/syncable_unittest.cc
diff --git a/sync/syncable/syncable_unittest.cc b/sync/syncable/syncable_unittest.cc
index 65cedc3ac9b6e2f18420484f53dfab92cdbac516..8a49ba44968faa5b1751384da12ea7892826cf9f 100644
--- a/sync/syncable/syncable_unittest.cc
+++ b/sync/syncable/syncable_unittest.cc
@@ -1676,6 +1676,7 @@ TEST_F(OnDiskSyncableDirectoryTest,
specifics.mutable_bookmark()->set_favicon("PNG");
specifics.mutable_bookmark()->set_url("http://nowhere");
create.Put(SPECIFICS, specifics);
+ update.Put(SPECIFICS, specifics);
create_pre_save = create.GetKernelCopy();
update_pre_save = update.GetKernelCopy();
create_id = create.Get(ID);
@@ -1702,10 +1703,12 @@ TEST_F(OnDiskSyncableDirectoryTest,
}
int i = BEGIN_FIELDS;
for ( ; i < INT64_FIELDS_END ; ++i) {
- EXPECT_EQ(create_pre_save.ref((Int64Field)i),
+ EXPECT_EQ(create_pre_save.ref((Int64Field)i) +
+ (i == TRANSACTION_VERSION ? 1 : 0),
create_post_save.ref((Int64Field)i))
<< "int64 field #" << i << " changed during save/load";
- EXPECT_EQ(update_pre_save.ref((Int64Field)i),
+ EXPECT_EQ(update_pre_save.ref((Int64Field)i) +
+ (i == TRANSACTION_VERSION ? 1 : 0),
update_post_save.ref((Int64Field)i))
<< "int64 field #" << i << " changed during save/load";
}
« no previous file with comments | « sync/syncable/syncable_enum_conversions.cc ('k') | sync/syncable/write_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698