Lines Matching refs:buf
168 const char* buf[max_size]; in TEST() local
169 memset(buf, 0, sizeof(buf)); in TEST()
171 ASSERT_EQ(0U, list.copy_to_array(buf, max_size)); in TEST()
172 ASSERT_EQ(nullptr, buf[0]); in TEST()
179 memset(buf, 0, sizeof(buf)); in TEST()
180 ASSERT_EQ(2U, list.copy_to_array(buf, 2)); in TEST()
181 ASSERT_STREQ("a", buf[0]); in TEST()
182 ASSERT_STREQ("b", buf[1]); in TEST()
183 ASSERT_EQ(nullptr, buf[2]); in TEST()
185 ASSERT_EQ(4U, list.copy_to_array(buf, max_size)); in TEST()
186 ASSERT_STREQ("a", buf[0]); in TEST()
187 ASSERT_STREQ("b", buf[1]); in TEST()
188 ASSERT_STREQ("c", buf[2]); in TEST()
189 ASSERT_STREQ("d", buf[3]); in TEST()
190 ASSERT_EQ(nullptr, buf[4]); in TEST()
192 memset(buf, 0, sizeof(buf)); in TEST()
196 ASSERT_EQ(1U, list.copy_to_array(buf, max_size)); in TEST()
197 ASSERT_STREQ("c", buf[0]); in TEST()
198 ASSERT_EQ(nullptr, buf[1]); in TEST()
200 memset(buf, 0, sizeof(buf)); in TEST()
206 ASSERT_EQ(0U, list.copy_to_array(buf, max_size)); in TEST()
207 ASSERT_EQ(nullptr, buf[0]); in TEST()