Lines Matching refs:GetIndexOf
157 // Verifies if GetIndexOf() returns the correct index for the specified node.
163 TEST_F(TreeNodeModelTest, GetIndexOf) {
175 EXPECT_EQ(-1, root.GetIndexOf(&root));
176 EXPECT_EQ(0, root.GetIndexOf(child1));
177 EXPECT_EQ(1, root.GetIndexOf(child2));
178 EXPECT_EQ(-1, root.GetIndexOf(foo1));
180 EXPECT_EQ(-1, child1->GetIndexOf(&root));
181 EXPECT_EQ(-1, child1->GetIndexOf(child1));
182 EXPECT_EQ(-1, child1->GetIndexOf(child2));
183 EXPECT_EQ(0, child1->GetIndexOf(foo1));
185 EXPECT_EQ(-1, child2->GetIndexOf(&root));
186 EXPECT_EQ(-1, child2->GetIndexOf(child2));
187 EXPECT_EQ(-1, child2->GetIndexOf(child1));
188 EXPECT_EQ(-1, child2->GetIndexOf(foo1));