Lines Matching refs:buf
139 const char* buf[max_size]; in TEST() local
140 memset(buf, 0, sizeof(buf)); in TEST()
142 ASSERT_EQ(0U, list.copy_to_array(buf, max_size)); in TEST()
143 ASSERT_EQ(nullptr, buf[0]); in TEST()
150 memset(buf, 0, sizeof(buf)); in TEST()
151 ASSERT_EQ(2U, list.copy_to_array(buf, 2)); in TEST()
152 ASSERT_STREQ("a", buf[0]); in TEST()
153 ASSERT_STREQ("b", buf[1]); in TEST()
154 ASSERT_EQ(nullptr, buf[2]); in TEST()
156 ASSERT_EQ(4U, list.copy_to_array(buf, max_size)); in TEST()
157 ASSERT_STREQ("a", buf[0]); in TEST()
158 ASSERT_STREQ("b", buf[1]); in TEST()
159 ASSERT_STREQ("c", buf[2]); in TEST()
160 ASSERT_STREQ("d", buf[3]); in TEST()
161 ASSERT_EQ(nullptr, buf[4]); in TEST()
163 memset(buf, 0, sizeof(buf)); in TEST()
167 ASSERT_EQ(1U, list.copy_to_array(buf, max_size)); in TEST()
168 ASSERT_STREQ("c", buf[0]); in TEST()
169 ASSERT_EQ(nullptr, buf[1]); in TEST()
171 memset(buf, 0, sizeof(buf)); in TEST()
177 ASSERT_EQ(0U, list.copy_to_array(buf, max_size)); in TEST()
178 ASSERT_EQ(nullptr, buf[0]); in TEST()