Home | History | Annotate | Download | only in syncable

Lines Matching defs:IsLegalNewParent

1098 static inline bool IsLegalNewParent(const Entry& a, const Entry& b) {
1099 return IsLegalNewParent(a.trans(), a.GetId(), b.GetId());
1144 ASSERT_TRUE(IsLegalNewParent(child, root));
1145 ASSERT_TRUE(IsLegalNewParent(child, parent));
1146 ASSERT_FALSE(IsLegalNewParent(child, child));
1147 ASSERT_FALSE(IsLegalNewParent(child, grandchild));
1148 ASSERT_TRUE(IsLegalNewParent(child, parent2));
1149 ASSERT_TRUE(IsLegalNewParent(child, grandchild2));
1150 ASSERT_FALSE(IsLegalNewParent(parent, grandchild));
1151 ASSERT_FALSE(IsLegalNewParent(root, grandchild));
1152 ASSERT_FALSE(IsLegalNewParent(parent, grandchild));