Searched refs:badData (Results 1 – 3 of 3) sorted by relevance
/external/skqp/tests/ |
D | GifTest.cpp | 158 unsigned char badData[sizeof(gGIFData)]; in DEF_TEST() local 160 memcpy(badData, gGIFData, sizeof(gGIFData)); in DEF_TEST() 161 badData[6] = 0x01; // image too wide in DEF_TEST() 162 test_gif_data(reporter, static_cast<void *>(badData), sizeof(gGIFData)); in DEF_TEST() 165 memcpy(badData, gGIFData, sizeof(gGIFData)); in DEF_TEST() 166 badData[8] = 0x01; // image too tall in DEF_TEST() 167 test_gif_data(reporter, static_cast<void *>(badData), sizeof(gGIFData)); in DEF_TEST() 170 memcpy(badData, gGIFData, sizeof(gGIFData)); in DEF_TEST() 171 badData[62] = 0x01; // image shifted right in DEF_TEST() 172 test_gif_data_dims(reporter, static_cast<void *>(badData), sizeof(gGIFData), 4, 3); in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | GifTest.cpp | 158 unsigned char badData[sizeof(gGIFData)]; in DEF_TEST() local 160 memcpy(badData, gGIFData, sizeof(gGIFData)); in DEF_TEST() 161 badData[6] = 0x01; // image too wide in DEF_TEST() 162 test_gif_data(reporter, static_cast<void *>(badData), sizeof(gGIFData)); in DEF_TEST() 165 memcpy(badData, gGIFData, sizeof(gGIFData)); in DEF_TEST() 166 badData[8] = 0x01; // image too tall in DEF_TEST() 167 test_gif_data(reporter, static_cast<void *>(badData), sizeof(gGIFData)); in DEF_TEST() 170 memcpy(badData, gGIFData, sizeof(gGIFData)); in DEF_TEST() 171 badData[62] = 0x01; // image shifted right in DEF_TEST() 172 test_gif_data_dims(reporter, static_cast<void *>(badData), sizeof(gGIFData), 4, 3); in DEF_TEST() [all …]
|
/external/angle/src/tests/gl_tests/ |
D | RobustResourceInitTest.cpp | 504 std::array<uint8_t, kWidth * kHeight * 4> badData; in setupTexture() local 505 for (size_t i = 0; i < badData.size(); ++i) in setupTexture() 507 badData[i] = static_cast<uint8_t>(i % 255); in setupTexture() 511 badData.data()); in setupTexture() 531 std::array<uint8_t, kWidth * kHeight * 2 * 4> badData; in setup3DTexture() local 532 for (size_t i = 0; i < badData.size(); ++i) in setup3DTexture() 534 badData[i] = static_cast<uint8_t>(i % 255); in setup3DTexture() 538 badData.data()); in setup3DTexture()
|