HomeSort by relevance Sort by last modified time
    Searched refs:gTests (Results 1 - 10 of 10) sorted by null

  /external/skia/tests/
SkPEGTest.cpp 46 } gTests[] = {
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[] = {
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[i].fInput + 1 : nullptr))
    [all...]
PackBitsTest.cpp 28 } gTests[] = {
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[i].fSrc, src
    [all...]
ParsePathTest.cpp 97 } gTests[] = {
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);
DrawBitmapRectTest.cpp 192 } gTests[] = {
198 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
200 gTests[i].fWidth, gTests[i].fHeight,
201 gTests[i].fExpectedToDraw);
GradientTest.cpp 228 } gTests[] = {
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/
SkPEGTest.cpp 46 } gTests[] = {
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[] = {
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[i].fInput + 1 : nullptr))
    [all...]
PackBitsTest.cpp 28 } gTests[] = {
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[i].fSrc, src
    [all...]
ParsePathTest.cpp 97 } gTests[] = {
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);
DrawBitmapRectTest.cpp 192 } gTests[] = {
198 for (size_t i = 0; i < SK_ARRAY_COUNT(gTests); ++i) {
200 gTests[i].fWidth, gTests[i].fHeight,
201 gTests[i].fExpectedToDraw);
GradientTest.cpp 228 } gTests[] = {
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 224 milliseconds