Home | History | Annotate | Download | only in cctest

Lines Matching refs:list

7 //       notice, this list of conditions and the following disclaimer.
9 // copyright notice, this list of conditions and the following
37 TEST(List) {
39 List<AstNode*>* list = new List<AstNode*>(0);
40 CHECK_EQ(0, list->length());
44 list->Add(node);
45 CHECK_EQ(1, list->length());
46 CHECK_EQ(node, list->at(0));
47 CHECK_EQ(node, list->last());
51 list->Add(node);
53 CHECK_EQ(1 + kElements, list->length());
55 list->Clear();
56 CHECK_EQ(0, list->length());
57 delete list;
63 List<int>* list = new List<int>(0);
64 delete list;
67 List<int> list(0);