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

Unified Diff: components/sync_driver/generic_change_processor_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: components/sync_driver/generic_change_processor_unittest.cc
diff --git a/components/sync_driver/generic_change_processor_unittest.cc b/components/sync_driver/generic_change_processor_unittest.cc
index f7ed4321ee5a199411751c39eb2e9b3770ac3dda..ee1f5bc15f495d202888d6b395523d93d8541d3d 100644
--- a/components/sync_driver/generic_change_processor_unittest.cc
+++ b/components/sync_driver/generic_change_processor_unittest.cc
@@ -170,11 +170,9 @@ class SyncGenericChangeProcessorTest : public testing::Test {
void BuildChildNodes(syncer::ModelType type, int n) {
syncer::WriteTransaction trans(FROM_HERE, user_share());
- syncer::ReadNode root(&trans);
- ASSERT_EQ(syncer::BaseNode::INIT_OK, root.InitTypeRoot(type));
for (int i = 0; i < n; ++i) {
syncer::WriteNode node(&trans);
- node.InitUniqueByCreation(type, root, base::StringPrintf("node%05d", i));
+ node.InitUniqueByCreation(type, base::StringPrintf("node%05d", i));
}
}

Powered by Google App Engine
This is Rietveld 408576698