Lines Matching refs:buf2
1290 static void DoStrcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { in DoStrcmpTest() argument
1294 memset(buf2, (32 + (len % 96)), len - 1); in DoStrcmpTest()
1295 buf2[len-1] = '\0'; in DoStrcmpTest()
1297 reinterpret_cast<char*>(buf2))); in DoStrcmpTest()
1301 static void DoStrcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { in DoStrcmpFailTest() argument
1306 memset(buf2, c, len2 - 1); in DoStrcmpFailTest()
1307 buf2[len2-1] = '\0'; in DoStrcmpFailTest()
1309 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
1321 buf2[len-1] = '\0'; in DoStrcmpFailTest()
1326 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
1329 buf2[len-2] = diff_c; in DoStrcmpFailTest()
1331 reinterpret_cast<char*>(buf2))); in DoStrcmpFailTest()
1343 static void DoMemcmpTest(uint8_t* buf1, uint8_t* buf2, size_t len) { in DoMemcmpTest() argument
1345 memset(buf2, len+1, len); in DoMemcmpTest()
1346 ASSERT_EQ(0, memcmp(buf1, buf2, len)); in DoMemcmpTest()
1349 static void DoMemcmpFailTest(uint8_t* buf1, uint8_t* buf2, size_t len1, size_t len2) { in DoMemcmpFailTest() argument
1359 memset(buf2, len2+1, len); in DoMemcmpFailTest()
1360 ASSERT_NE(0, memcmp(buf1, buf2, len)); in DoMemcmpFailTest()
1363 buf2[len-1] = len2; in DoMemcmpFailTest()
1364 ASSERT_NE(0, memcmp(buf1, buf2, len)); in DoMemcmpFailTest()