• Home
  • Raw
  • Download

Lines Matching refs:parent1

105     unique_node_ptr parent1 = CreateNode(nullptr, "/path1");  in TEST_F()  local
108 unique_node_ptr child = CreateNode(parent1.get(), "subdir"); in TEST_F()
109 ASSERT_EQ(2, GetRefCount(parent1.get())); in TEST_F()
110 ASSERT_EQ(child.get(), parent1->LookupChildByName("subdir", false /* acquire */)); in TEST_F()
113 ASSERT_EQ(1, GetRefCount(parent1.get())); in TEST_F()
114 ASSERT_EQ(nullptr, parent1->LookupChildByName("subdir", false /* acquire */)); in TEST_F()
124 unique_node_ptr parent1 = CreateNode(nullptr, "/path1"); in TEST_F() local
127 unique_node_ptr child = CreateNode(parent1.get(), "subdir"); in TEST_F()
128 ASSERT_EQ(2, GetRefCount(parent1.get())); in TEST_F()
129 ASSERT_EQ(child.get(), parent1->LookupChildByName("subdir", false /* acquire */)); in TEST_F()
132 ASSERT_EQ(1, GetRefCount(parent1.get())); in TEST_F()
133 ASSERT_EQ(nullptr, parent1->LookupChildByName("subdir", false /* acquire */)); in TEST_F()
134 ASSERT_EQ(nullptr, parent1->LookupChildByName("subdir_new", false /* acquire */)); in TEST_F()
173 unique_node_ptr parent1 = CreateNode(nullptr, "/path1"); in TEST_F() local
176 unique_node_ptr child0 = CreateNode(parent1.get(), "subdir", 0 /* transforms */); in TEST_F()
177 unique_node_ptr child1 = CreateNode(parent1.get(), "subdir", 1 /* transforms */); in TEST_F()
178 ASSERT_EQ(3, GetRefCount(parent1.get())); in TEST_F()
180 parent1->LookupChildByName("subdir", false /* acquire */, 0 /* transforms */)); in TEST_F()
182 parent1->LookupChildByName("subdir", false /* acquire */, 1 /* transforms */)); in TEST_F()
184 parent1->RenameChild("subdir", "subdir", parent2.get()); in TEST_F()
185 ASSERT_EQ(1, GetRefCount(parent1.get())); in TEST_F()
187 parent1->LookupChildByName("subdir", false /* acquire */, 0 /* transforms */)); in TEST_F()
189 parent1->LookupChildByName("subdir", false /* acquire */, 1 /* transforms */)); in TEST_F()
204 unique_node_ptr parent1 = CreateNode(nullptr, "/path1"); in TEST_F() local
207 unique_node_ptr child0 = CreateNode(parent1.get(), "subdir", 0 /* transforms */); in TEST_F()
208 unique_node_ptr child1 = CreateNode(parent1.get(), "subdir", 1 /* transforms */); in TEST_F()
209 ASSERT_EQ(3, GetRefCount(parent1.get())); in TEST_F()
211 parent1->LookupChildByName("subdir", false /* acquire */, 0 /* transforms */)); in TEST_F()
213 parent1->LookupChildByName("subdir", false /* acquire */, 1 /* transforms */)); in TEST_F()
215 parent1->RenameChild("subdir", "subdir_new", parent2.get()); in TEST_F()
216 ASSERT_EQ(1, GetRefCount(parent1.get())); in TEST_F()
218 parent1->LookupChildByName("subdir", false /* acquire */, 0 /* transforms */)); in TEST_F()
220 parent1->LookupChildByName("subdir_new", false /* acquire */, 0 /* transforms */)); in TEST_F()
222 parent1->LookupChildByName("subdir", false /* acquire */, 1 /* transforms */)); in TEST_F()
224 parent1->LookupChildByName("subdir_new", false /* acquire */, 1 /* transforms */)); in TEST_F()
228 parent1->LookupChildByName("subdir_new", false /* acquire */, 0 /* transforms */)); in TEST_F()
230 parent1->LookupChildByName("subdir_new", false /* acquire */, 1 /* transforms */)); in TEST_F()