Lines Matching refs:list

46 // traverse the list from begin() to end().  This implicitly test the
50 TestList list;
53 list.push_back(&nodes[i]);
57 for (auto& i : list) output.push_back(i.data_);
62 // Returns a list containing the values 0 to n-1 using the first n elements of
63 // nodes to build the list.
65 TestList list;
68 list.push_back(&nodes[i]);
70 return list;
76 TestList list = BuildList(nodes, 10);
77 EXPECT_EQ(--list.begin(), list.end());
83 TestList list = BuildList(nodes, 10);
84 EXPECT_EQ((++list.end())->data_, 0);
90 TestList list = BuildList(nodes, 10);
91 EXPECT_EQ(++list.end(), list.begin());
97 TestList list = BuildList(nodes, 10);
98 EXPECT_EQ((--list.end())->data_, 9);
101 // Test the move constructor for the list class.
104 TestList list = BuildList(nodes, 10);
106 for (auto& i : list) output.push_back(i.data_);
111 // Using a const list so we can test the const_iterator.
114 const TestList list = BuildList(nodes, 10);
116 for (auto& i : list) output.push_back(i.data_);
124 TestList list;
125 list = BuildList(nodes, 10);
127 for (auto& i : list) output.push_back(i.data_);
132 // Test inserting a new element at the end of a list using the IntrusiveNodeBase
136 TestList list = BuildList(nodes, 5);
142 for (auto& i : list) output.push_back(i.data_);
147 // Test inserting a new element in the middle of a list using the
151 TestList list = BuildList(nodes, 5);
157 for (auto& i : list) output.push_back(i.data_);
162 // Test moving an element already in the list in the middle of a list using the
166 TestList list = BuildList(nodes, 6);
171 for (auto& i : list) output.push_back(i.data_);
176 // Move the element at the start of the list into the middle.
179 TestList list = BuildList(nodes, 6);
184 for (auto& i : list) output.push_back(i.data_);
189 // Move an element in the middle of the list to the end.
192 TestList list = BuildList(nodes, 6);
197 for (auto& i : list) output.push_back(i.data_);
202 // Removing an element from the middle of a list.
205 TestList list = BuildList(nodes, 6);
210 for (auto& i : list) output.push_back(i.data_);
215 // Removing an element from the beginning of the list.
218 TestList list = BuildList(nodes, 6);
223 for (auto& i : list) output.push_back(i.data_);
228 // Removing the last element of a list.
231 TestList list = BuildList(nodes, 6);
236 for (auto& i : list) output.push_back(i.data_);
244 TestList list = BuildList(nodes, 6);
247 for (auto i = list.begin(); i != list.end(); ++i)
248 for (auto j = list.begin(); j != list.end(); ++j)
254 // Test MoveBefore. Moving into middle of a list.
272 // Test MoveBefore. Moving to the start of a list.
289 // Test MoveBefore. Moving to the end of a list.
306 // Test MoveBefore. Moving an empty list.