Searched defs:gTests (Results 1 - 10 of 10) sorted by relevance

/external/skia/tests/
H A DPackBitsTest.cpp28 } gTests[] = { local
36 for (size_t i = 4; i < SK_ARRAY_COUNT(gTests); i++) {
38 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount);
39 size_t dstSize = SkPackBits::Pack8(gTests[i].fSrc,
40 gTests[i].fCount, dst, maxSize - 1);
42 dstSize = SkPackBits::Pack8(gTests[i].fSrc,
43 gTests[i].fCount, dst, sizeof(dst));
46 int srcCount = SkPackBits::Unpack8(dst, dstSize, src, gTests[i].fCount - 1);
49 bool match = gTests[i].fCount == srcCount &&
50 memcmp(gTests[
[all...]
H A DParsePathTest.cpp97 } gTests[] = { local
125 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
126 REPORTER_ASSERT(r, SkParsePath::FromSVGString(gTests[i].fStr, &path));
127 REPORTER_ASSERT(r, path.countVerbs() == gTests[i].fVerbs);
128 REPORTER_ASSERT(r, path.countPoints() == gTests[i].fPoints);
H A DSkPEGTest.cpp46 } gTests[] = { local
53 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
54 const auto match = EOS::Match(gTests[i].fInput);
55 REPORTER_ASSERT(r, match == gTests[i].fMatch);
56 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput : nullptr));
64 } gTests[] = { local
73 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
74 const auto match = LIT<'X'>::Match(gTests[i].fInput);
75 REPORTER_ASSERT(r, match == gTests[i].fMatch);
76 REPORTER_ASSERT(r, match.fNext == (match ? gTests[
91 } gTests[] = { local
123 } gTests[] = { local
148 } gTests[] = { local
219 } gTests[] = { local
[all...]
H A DDrawBitmapRectTest.cpp192 } gTests[] = { local
198 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
200 gTests[i].fWidth, gTests[i].fHeight,
201 gTests[i].fExpectedToDraw);
H A DGradientTest.cpp228 } gTests[] = { local
252 for (size_t t = 0; t < SK_ARRAY_COUNT(gTests); ++t) {
254 rec.fColorCount = gTests[t].fCount;
255 rec.fColors = gTests[t].fCol;
256 rec.fPos = gTests[t].fPos;
262 if (!gTests[t].fRequiresNonClamp || mode != SkShader::kClamp_TileMode) {
263 expected.fColorCount = gTests[t].fExpectedCount;
264 expected.fColors = gTests[t].fExpectedCol;
265 expected.fPos = gTests[t].fExpectedPos;
/external/skqp/tests/
H A DPackBitsTest.cpp28 } gTests[] = { local
36 for (size_t i = 4; i < SK_ARRAY_COUNT(gTests); i++) {
38 size_t maxSize = SkPackBits::ComputeMaxSize8(gTests[i].fCount);
39 size_t dstSize = SkPackBits::Pack8(gTests[i].fSrc,
40 gTests[i].fCount, dst, maxSize - 1);
42 dstSize = SkPackBits::Pack8(gTests[i].fSrc,
43 gTests[i].fCount, dst, sizeof(dst));
46 int srcCount = SkPackBits::Unpack8(dst, dstSize, src, gTests[i].fCount - 1);
49 bool match = gTests[i].fCount == srcCount &&
50 memcmp(gTests[
[all...]
H A DParsePathTest.cpp97 } gTests[] = { local
125 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
126 REPORTER_ASSERT(r, SkParsePath::FromSVGString(gTests[i].fStr, &path));
127 REPORTER_ASSERT(r, path.countVerbs() == gTests[i].fVerbs);
128 REPORTER_ASSERT(r, path.countPoints() == gTests[i].fPoints);
H A DSkPEGTest.cpp46 } gTests[] = { local
53 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
54 const auto match = EOS::Match(gTests[i].fInput);
55 REPORTER_ASSERT(r, match == gTests[i].fMatch);
56 REPORTER_ASSERT(r, match.fNext == (match ? gTests[i].fInput : nullptr));
64 } gTests[] = { local
73 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
74 const auto match = LIT<'X'>::Match(gTests[i].fInput);
75 REPORTER_ASSERT(r, match == gTests[i].fMatch);
76 REPORTER_ASSERT(r, match.fNext == (match ? gTests[
91 } gTests[] = { local
123 } gTests[] = { local
148 } gTests[] = { local
219 } gTests[] = { local
[all...]
H A DDrawBitmapRectTest.cpp192 } gTests[] = { local
198 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
200 gTests[i].fWidth, gTests[i].fHeight,
201 gTests[i].fExpectedToDraw);
H A DGradientTest.cpp228 } gTests[] = { local
248 for (size_t t = 0; t < SK_ARRAY_COUNT(gTests); ++t) {
250 rec.fColorCount = gTests[t].fCount;
251 rec.fColors = gTests[t].fCol;
252 rec.fPos = gTests[t].fPos;
258 if (!gTests[t].fRequiresNonClamp || mode != SkShader::kClamp_TileMode) {
259 expected.fColorCount = gTests[t].fExpectedCount;
260 expected.fColors = gTests[t].fExpectedCol;
261 expected.fPos = gTests[t].fExpectedPos;

Completed in 257 milliseconds