Home
last modified time | relevance | path

Searched refs:IsLegalNewParent (Results 1 – 4 of 4) sorted by relevance

/external/chromium/chrome/browser/sync/syncable/
Dsyncable_unittest.cc899 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 …]
Dsyncable.h1158 bool IsLegalNewParent(BaseTransaction* trans, const Id& id, const Id& parentid);
Dsyncable.cc1810 bool IsLegalNewParent(BaseTransaction* trans, const Id& entry_id, in IsLegalNewParent() function
/external/chromium/chrome/browser/sync/engine/
Dsyncer_util.cc273 if (!entry->Get(IS_DEL) && !IsLegalNewParent(trans, id, new_parent)) { in AttemptToUpdateEntry()