Lines Matching refs:list
58 List<int, ZeroingAllocationPolicy> list(4); in TEST() local
59 list.Add(1); in TEST()
60 list.Add(2); in TEST()
61 list.Add(3); in TEST()
62 list.Add(4); in TEST()
65 list.Add(list[0]); in TEST()
66 CHECK_EQ(1, list[4]); in TEST()
71 List<int, ZeroingAllocationPolicy> list(4); in TEST() local
72 list.Add(0); in TEST()
73 list.Add(1); in TEST()
74 list.Add(2); in TEST()
76 CHECK_EQ(3, list.length()); in TEST()
78 CHECK_EQ(i, list[i]); in TEST()
84 list.AddAll(other_list); in TEST()
85 CHECK_EQ(3, list.length()); in TEST()
87 CHECK_EQ(i, list[i]); in TEST()
96 list.AddAll(other_list); in TEST()
97 CHECK_EQ(6, list.length()); in TEST()
99 CHECK_EQ(i % 3, list[i]); in TEST()
105 List<int> list(4); in TEST() local
106 CHECK_EQ(0, list.length()); in TEST()
107 list.Add(1); in TEST()
108 CHECK_EQ(1, list.length()); in TEST()
109 CHECK_EQ(1, list.last()); in TEST()
110 list.RemoveLast(); in TEST()
111 CHECK_EQ(0, list.length()); in TEST()
112 list.Add(2); in TEST()
113 list.Add(3); in TEST()
114 CHECK_EQ(2, list.length()); in TEST()
115 CHECK_EQ(3, list.last()); in TEST()
116 list.RemoveLast(); in TEST()
117 CHECK_EQ(1, list.length()); in TEST()
118 CHECK_EQ(2, list.last()); in TEST()
119 list.RemoveLast(); in TEST()
120 CHECK_EQ(0, list.length()); in TEST()
123 for (int i = 0; i < kElements; i++) list.Add(i); in TEST()
125 CHECK_EQ(j + 1, list.length()); in TEST()
126 CHECK_EQ(j, list.last()); in TEST()
127 list.RemoveLast(); in TEST()
128 CHECK_EQ(j, list.length()); in TEST()
134 List<int> list(4); in TEST() local
135 CHECK_EQ(0, list.length()); in TEST()
136 for (int i = 0; i < 4; ++i) list.Add(i); in TEST()
137 CHECK_EQ(4, list.length()); in TEST()
138 list.Clear(); in TEST()
139 CHECK_EQ(0, list.length()); in TEST()