Lines Matching defs:IsLegalNewParent
899 static inline bool IsLegalNewParent(const Entry& a, const Entry& b) {
900 return IsLegalNewParent(a.trans(), a.Get(ID), b.Get(ID));
945 ASSERT_TRUE(IsLegalNewParent(child, root));
946 ASSERT_TRUE(IsLegalNewParent(child, parent));
947 ASSERT_FALSE(IsLegalNewParent(child, child));
948 ASSERT_FALSE(IsLegalNewParent(child, grandchild));
949 ASSERT_TRUE(IsLegalNewParent(child, parent2));
950 ASSERT_TRUE(IsLegalNewParent(child, grandchild2));
951 ASSERT_FALSE(IsLegalNewParent(parent, grandchild));
952 ASSERT_FALSE(IsLegalNewParent(root, grandchild));
953 ASSERT_FALSE(IsLegalNewParent(parent, grandchild));