Lines Matching refs:gTests
27 } gTests[] = { in test_pack16() local
34 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); i++) { in test_pack16()
36 size_t dstSize = SkPackBits::Pack16(gTests[i].fSrc, in test_pack16()
37 gTests[i].fCount, dst); in test_pack16()
40 bool match = gTests[i].fCount == srcCount && memcmp(gTests[i].fSrc, src, in test_pack16()
41 gTests[i].fCount * sizeof(uint16_t)) == 0; in test_pack16()
77 } gTests[] = { in test_pack8() local
85 for (size_t i = 4; i < SK_ARRAY_COUNT(gTests); i++) { in test_pack8()
87 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount); in test_pack8()
88 size_t dstSize = SkPackBits::Pack8(gTests[i].fSrc, in test_pack8()
89 gTests[i].fCount, dst); in test_pack8()
93 bool match = gTests[i].fCount == srcCount && in test_pack8()
94 memcmp(gTests[i].fSrc, src, in test_pack8()
95 gTests[i].fCount * sizeof(uint8_t)) == 0; in test_pack8()