Searched refs:IsLegalNewParent (Results 1 – 4 of 4) sorted by relevance
/external/chromium/chrome/browser/sync/syncable/ |
D | syncable_unittest.cc | 899 static inline bool IsLegalNewParent(const Entry& a, const Entry& b) { in IsLegalNewParent() function 900 return IsLegalNewParent(a.trans(), a.Get(ID), b.Get(ID)); in IsLegalNewParent() 945 ASSERT_TRUE(IsLegalNewParent(child, root)); in TEST_F() 946 ASSERT_TRUE(IsLegalNewParent(child, parent)); in TEST_F() 947 ASSERT_FALSE(IsLegalNewParent(child, child)); in TEST_F() 948 ASSERT_FALSE(IsLegalNewParent(child, grandchild)); in TEST_F() 949 ASSERT_TRUE(IsLegalNewParent(child, parent2)); in TEST_F() 950 ASSERT_TRUE(IsLegalNewParent(child, grandchild2)); in TEST_F() 951 ASSERT_FALSE(IsLegalNewParent(parent, grandchild)); in TEST_F() 952 ASSERT_FALSE(IsLegalNewParent(root, grandchild)); in TEST_F() [all …]
|
D | syncable.h | 1158 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid);
|
D | syncable.cc | 1810 bool IsLegalNewParent(BaseTransaction* trans, const Id& entry_id, in IsLegalNewParent() function
|
/external/chromium/chrome/browser/sync/engine/ |
D | syncer_util.cc | 273 if (!entry->Get(IS_DEL) && !IsLegalNewParent(trans, id, new_parent)) { in AttemptToUpdateEntry()
|