Lines Matching refs:buf2
1295 static void DoStrcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { in DoStrcmpTest() argument
1299 memset(buf2, (32 + (len % 96)), len - 1); in DoStrcmpTest()
1300 buf2[len-1] = '\0'; in DoStrcmpTest()
1302 reinterpret_cast<char*>(buf2))); in DoStrcmpTest()
1306 static void DoStrcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { in DoStrcmpFailTest() argument
1311 memset(buf2, c, len2 - 1); in DoStrcmpFailTest()
1312 buf2[len2-1] = '\0'; in DoStrcmpFailTest()
1314 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
1326 buf2[len-1] = '\0'; in DoStrcmpFailTest()
1331 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
1334 buf2[len-2] = diff_c; in DoStrcmpFailTest()
1336 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
1348 static void DoMemcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { in DoMemcmpTest() argument
1350 memset(buf2, len+1, len); in DoMemcmpTest()
1351 ASSERT_EQ(0, memcmp(buf1, buf2, len)); in DoMemcmpTest()
1354 static void DoMemcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { in DoMemcmpFailTest() argument
1364 memset(buf2, len2+1, len); in DoMemcmpFailTest()
1365 ASSERT_NE(0, memcmp(buf1, buf2, len)); in DoMemcmpFailTest()
1368 buf2[len-1] = len2; in DoMemcmpFailTest()
1369 ASSERT_NE(0, memcmp(buf1, buf2, len)); in DoMemcmpFailTest()