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

Unified Diff: sync/internal_api/sync_rollback_manager_unittest.cc

Issue 1246063003: Sync: Don't set/use Parent ID for non-hierarchical sync data types. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months 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/sync_rollback_manager_unittest.cc
diff --git a/sync/internal_api/sync_rollback_manager_unittest.cc b/sync/internal_api/sync_rollback_manager_unittest.cc
index 0b5a6b658e36a3807749fd336a5a25445373b952..2cc0015b3d2029fb3e2eb39a1085af3094b6e667 100644
--- a/sync/internal_api/sync_rollback_manager_unittest.cc
+++ b/sync/internal_api/sync_rollback_manager_unittest.cc
@@ -92,12 +92,9 @@ class SyncRollbackManagerTest : public testing::Test,
int64 CreateEntry(UserShare* user_share, ModelType type,
const std::string& client_tag) {
WriteTransaction trans(FROM_HERE, user_share);
- ReadNode type_root(&trans);
- EXPECT_EQ(BaseNode::INIT_OK, type_root.InitTypeRoot(type));
-
WriteNode node(&trans);
EXPECT_EQ(WriteNode::INIT_SUCCESS,
- node.InitUniqueByCreation(type, type_root, client_tag));
+ node.InitUniqueByCreation(type, client_tag));
return node.GetEntry()->GetMetahandle();
}
« sync/engine/syncer_proto_util.cc ('K') | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698