HomeSort by relevance Sort by last modified time
    Searched refs:REPORTER_ASSERT (Results 51 - 75 of 210) sorted by null

1 23 4 5 6 7 8 9

  /external/skia/tests/
YUVCacheTest.cpp 25 REPORTER_ASSERT(reporter, data->testing_only_getRefCnt() == refcnt);
26 REPORTER_ASSERT(reporter, data->testing_only_isInCache() == (kInCache == cacheState));
28 REPORTER_ASSERT(reporter, isLocked == (lockedState == kLocked));
46 REPORTER_ASSERT(reporter, nullptr == data);
61 REPORTER_ASSERT(reporter, data);
62 REPORTER_ASSERT(reporter, data->size() == size);
64 REPORTER_ASSERT(reporter, yuvInfo.fSize[i].fWidth == yuvInfoRead.fSize[i].fWidth);
65 REPORTER_ASSERT(reporter, yuvInfo.fSize[i].fHeight == yuvInfoRead.fSize[i].fHeight);
66 REPORTER_ASSERT(reporter, yuvInfo.fSizeInMemory[i] == yuvInfoRead.fSizeInMemory[i]);
67 REPORTER_ASSERT(reporter, yuvInfo.fRowBytes[i] == yuvInfoRead.fRowBytes[i])
    [all...]
Writer32Test.cpp 16 REPORTER_ASSERT(reporter, writer.bytesWritten() == size);
18 REPORTER_ASSERT(reporter, !memcmp(storage.get(), expected, size));
44 REPORTER_ASSERT(reporter, 0 == writer.bytesWritten());
51 REPORTER_ASSERT(reporter, sizeof(array) - 4 == writer.bytesWritten());
53 REPORTER_ASSERT(reporter, sizeof(array) == writer.bytesWritten());
64 REPORTER_ASSERT(reporter, 100*4 == writer.bytesWritten());
68 REPORTER_ASSERT(reporter, writer.bytesWritten() < 16);
87 REPORTER_ASSERT(reporter, 2 * sizeof(void*) + 2 * sizeof(int32_t));
94 REPORTER_ASSERT(reporter, reader.readPtr() == p0);
95 REPORTER_ASSERT(reporter, reader.readInt() == 0x33)
    [all...]
GrContextFactoryTest.cpp 28 REPORTER_ASSERT(
42 REPORTER_ASSERT(
58 REPORTER_ASSERT(reporter, info1.fGLContext);
66 REPORTER_ASSERT(reporter, info2.fGrContext);
67 REPORTER_ASSERT(reporter, info2.fGLContext);
68 REPORTER_ASSERT(reporter, info1.fGrContext != info2.fGrContext);
Point3Test.cpp 18 REPORTER_ASSERT(reporter, p0 != p1);
19 REPORTER_ASSERT(reporter, p1 == p2);
25 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(v.length(), SK_Scalar1));
29 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), 3.0f));
32 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.length(), SK_Scalar1));
39 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.x(), 0.0f));
40 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.y(), 0.0f));
41 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.z(), 0.0f));
45 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.x(), 0.0f));
46 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(p.y(), 0.0f))
    [all...]
RecordPatternTest.cpp 25 REPORTER_ASSERT(r, !pattern.match(&record, 0));
31 REPORTER_ASSERT(r, !pattern.match(&record, 0));
34 REPORTER_ASSERT(r, !pattern.match(&record, 0));
37 REPORTER_ASSERT(r, pattern.match(&record, 0));
38 REPORTER_ASSERT(r, pattern.first<Save>() != nullptr);
39 REPORTER_ASSERT(r, pattern.second<ClipRect>() != nullptr);
40 REPORTER_ASSERT(r, pattern.third<Restore>() != nullptr);
59 REPORTER_ASSERT(r, pattern.match(&record, i) == i + 3);
61 REPORTER_ASSERT(r, !pattern.match(&record, i));
77 REPORTER_ASSERT(r, !pattern.match(&record, 0))
    [all...]
SrcOverTest.cpp 49 REPORTER_ASSERT(reporter, opaqueCounter0 == 256);
50 REPORTER_ASSERT(reporter, opaqueCounter1 == 256);
51 REPORTER_ASSERT(reporter, opaqueCounter2 == 256);
62 REPORTER_ASSERT(reporter, r0 <= 255 && r0 >= max);
64 REPORTER_ASSERT(reporter, r1 <= 255 && r1 >= max);
65 REPORTER_ASSERT(reporter, r2 <= 255 && r2 >= max);
PictureTest.cpp 59 REPORTER_ASSERT(reporter, picture->willPlayBackBitmaps());
71 REPORTER_ASSERT(reporter, !picture->willPlayBackBitmaps());
85 REPORTER_ASSERT(reporter, shader->isABitmap());
90 REPORTER_ASSERT(reporter, picture->willPlayBackBitmaps());
163 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(nullptr, &reason));
164 REPORTER_ASSERT(reporter, reason);
176 REPORTER_ASSERT(reporter, !path.isConvex());
186 REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(nullptr));
198 REPORTER_ASSERT(reporter, !path.isConvex());
208 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(nullptr))
    [all...]
ClipStackTest.cpp 22 REPORTER_ASSERT(reporter, 0 == s.getSaveCount());
26 REPORTER_ASSERT(reporter, 1 == s.getSaveCount());
36 REPORTER_ASSERT(reporter, 2 == s.getSaveCount());
44 REPORTER_ASSERT(reporter, 3 == s.getSaveCount());
51 REPORTER_ASSERT(reporter, s == copy);
55 REPORTER_ASSERT(reporter, 2 == s.getSaveCount());
56 REPORTER_ASSERT(reporter, s != copy);
60 REPORTER_ASSERT(reporter, 3 == s.getSaveCount());
63 REPORTER_ASSERT(reporter, s == copy);
67 REPORTER_ASSERT(reporter, 2 == s.getSaveCount())
    [all...]
ClipCubicTest.cpp 89 REPORTER_ASSERT(reporter, success == true);
90 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
97 REPORTER_ASSERT(reporter, success == true);
98 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
105 REPORTER_ASSERT(reporter, success == true);
106 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
113 REPORTER_ASSERT(reporter, success == false);
119 REPORTER_ASSERT(reporter, success == true);
120 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
131 REPORTER_ASSERT(reporter, success == true)
    [all...]
PointTest.cpp 21 REPORTER_ASSERT(reporter, p.asScalars() == pPtr);
22 REPORTER_ASSERT(reporter, r.asScalars() == rPtr);
33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength));
34 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
47 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, s2));
48 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, expectedLength));
96 REPORTER_ASSERT(reporter, !SkScalarIsFinite(length));
100 REPORTER_ASSERT(reporter, pt.setLength(SK_Scalar1));
104 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(length, SK_Scalar1));
113 REPORTER_ASSERT(reporter, 0 == SkPoint::Normalize(&pt))
    [all...]
Matrix44Test.cpp 35 REPORTER_ASSERT(reporter, data[0] == m0);
36 REPORTER_ASSERT(reporter, data[1] == m1);
37 REPORTER_ASSERT(reporter, data[2] == m2);
38 REPORTER_ASSERT(reporter, data[3] == m3);
40 REPORTER_ASSERT(reporter, data[4] == m4);
41 REPORTER_ASSERT(reporter, data[5] == m5);
42 REPORTER_ASSERT(reporter, data[6] == m6);
43 REPORTER_ASSERT(reporter, data[7] == m7);
45 REPORTER_ASSERT(reporter, data[8] == m8);
46 REPORTER_ASSERT(reporter, data[9] == m9)
    [all...]
RecordTest.cpp 69 REPORTER_ASSERT(r, summer.area() == 100);
77 REPORTER_ASSERT(r, summer.area() == 500);
89 REPORTER_ASSERT(r, record.count() == 7);
92 REPORTER_ASSERT(r, record.count() == 4);
108 REPORTER_ASSERT(r, is_aligned(record.alloc<uint8_t>()));
109 REPORTER_ASSERT(r, is_aligned(record.alloc<uint16_t>()));
110 REPORTER_ASSERT(r, is_aligned(record.alloc<uint32_t>()));
111 REPORTER_ASSERT(r, is_aligned(record.alloc<void*>()));
115 REPORTER_ASSERT(r, is_aligned(record.alloc<double>()));
116 REPORTER_ASSERT(r, is_aligned(record.alloc<uint64_t>()))
    [all...]
RecorderTest.cpp 50 REPORTER_ASSERT(r, 1 == tally.count<SkRecords::DrawRect>());
63 REPORTER_ASSERT(r, paint.getShader()->unique());
68 REPORTER_ASSERT(r, !paint.getShader()->unique());
70 REPORTER_ASSERT(r, paint.getShader()->unique());
87 REPORTER_ASSERT(reporter, !image->unique());
92 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImage>());
94 REPORTER_ASSERT(reporter, image->unique());
102 REPORTER_ASSERT(reporter, !image->unique());
107 REPORTER_ASSERT(reporter, 1 == tally.count<SkRecords::DrawImageRect>());
109 REPORTER_ASSERT(reporter, image->unique())
    [all...]
ImageTest.cpp 32 REPORTER_ASSERT(reporter, widthA == b->width());
33 REPORTER_ASSERT(reporter, heightA == b->height());
38 REPORTER_ASSERT(reporter, AO == BO);
50 REPORTER_ASSERT(reporter, a->readPixels(pmapA, srcX, srcY));
51 REPORTER_ASSERT(reporter, b->readPixels(pmapB, 0, 0));
55 REPORTER_ASSERT(reporter, !memcmp(pmapA.addr32(0, y), pmapB.addr32(0, y), widthBytes));
137 REPORTER_ASSERT(reporter, origEncoded);
138 REPORTER_ASSERT(reporter, origEncoded->size() > 0);
141 REPORTER_ASSERT(reporter, decoded);
147 REPORTER_ASSERT(reporter, decoded)
    [all...]
YUVTest.cpp 28 REPORTER_ASSERT(reporter, codec);
36 REPORTER_ASSERT(reporter, !success);
38 REPORTER_ASSERT(reporter, (expectedSizes == nullptr) == !success);
42 REPORTER_ASSERT(reporter,
44 REPORTER_ASSERT(reporter, info.fYWidthBytes == (uint32_t) SkAlign8(info.fYSize.width()));
45 REPORTER_ASSERT(reporter, info.fUWidthBytes == (uint32_t) SkAlign8(info.fUSize.width()));
46 REPORTER_ASSERT(reporter, info.fVWidthBytes == (uint32_t) SkAlign8(info.fVSize.width()));
49 REPORTER_ASSERT(reporter,
51 REPORTER_ASSERT(reporter, info.fYWidthBytes == (uint32_t) SkAlign8(info.fYSize.width()));
52 REPORTER_ASSERT(reporter, info.fUWidthBytes == (uint32_t) SkAlign8(info.fUSize.width()))
    [all...]
ParsePathTest.cpp 17 REPORTER_ASSERT(reporter, success);
20 REPORTER_ASSERT(reporter, str == str2);
23 REPORTER_ASSERT(reporter, path == path2);
48 REPORTER_ASSERT(reporter, success);
51 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
72 REPORTER_ASSERT(r, !success);
88 REPORTER_ASSERT(r, success);
PathOpsBoundsTest.cpp 39 REPORTER_ASSERT(reporter, touches);
47 REPORTER_ASSERT(reporter, !touches);
54 REPORTER_ASSERT(reporter, bounds == expected);
59 REPORTER_ASSERT(reporter, bounds == expected);
63 REPORTER_ASSERT(reporter, bounds == expected);
69 REPORTER_ASSERT(reporter, bounds == expected);
73 REPORTER_ASSERT(reporter, bounds == expected);
TextBlobTest.cpp 108 REPORTER_ASSERT(reporter, blob->bounds().isEmpty());
115 REPORTER_ASSERT(reporter, blob->bounds() == r1);
122 REPORTER_ASSERT(reporter, blob->bounds() == r1);
129 REPORTER_ASSERT(reporter, blob->bounds() == r1);
142 REPORTER_ASSERT(reporter, blob->bounds() == SkRect::MakeXYWH(0, 5, 65, 65));
148 REPORTER_ASSERT(reporter, blob->bounds().isEmpty());
172 REPORTER_ASSERT(reporter, blob->bounds().isEmpty());
205 REPORTER_ASSERT(reporter, defaultPaint.getTextSize() != font.getTextSize());
206 REPORTER_ASSERT(reporter, defaultPaint.getTextScaleX() != font.getTextScaleX());
207 REPORTER_ASSERT(reporter, defaultPaint.getTypeface() != font.getTypeface())
    [all...]
ColorFilterTest.cpp 46 REPORTER_ASSERT(reporter, i > 2); // we need to have succeeded at least once!
50 REPORTER_ASSERT(reporter, false); // we never saw a nullptr :(
74 REPORTER_ASSERT(reporter, cf);
84 REPORTER_ASSERT(reporter, cf->asColorMode(&c, &m));
97 REPORTER_ASSERT(reporter, c == expectedColor);
98 REPORTER_ASSERT(reporter, m == expectedMode);
103 REPORTER_ASSERT(reporter, cf2);
107 REPORTER_ASSERT(reporter, cf2->asColorMode(&c2, &m2));
108 REPORTER_ASSERT(reporter, c2 == expectedColor);
109 REPORTER_ASSERT(reporter, m2 == expectedMode)
    [all...]
FontMgrAndroidParserTest.cpp 40 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5);
41 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif"));
42 REPORTER_ASSERT(reporter,
44 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont);
51 REPORTER_ASSERT(reporter, isALPHA(c) || isDIGIT(c) || '-' == c);
62 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() &&
123 REPORTER_ASSERT(reporter, error <= SK_FixedEpsilon_double);
126 REPORTER_ASSERT(reporter, f < -SK_FixedMax_double || SK_FixedMax_double < f);
144 REPORTER_ASSERT(reporter, !parse_fixed<27>("-17.1", &fix));
145 REPORTER_ASSERT(reporter, !parse_fixed<16>("32768", &fix))
    [all...]
TextureCompressionTest.cpp 54 REPORTER_ASSERT(reporter, kWidth % 4 != 0);
55 REPORTER_ASSERT(reporter, kHeight % 4 != 0);
67 REPORTER_ASSERT(reporter, nullptr == data);
83 REPORTER_ASSERT(reporter, kWidth % 12 == 0);
84 REPORTER_ASSERT(reporter, kHeight % 12 == 0);
96 REPORTER_ASSERT(reporter, nullptr == data);
114 REPORTER_ASSERT(reporter, kWidth % 48 == 0);
115 REPORTER_ASSERT(reporter, kHeight % 48 == 0);
123 REPORTER_ASSERT(reporter, pixels);
142 REPORTER_ASSERT(reporter, decompBuffer)
    [all...]
PathOpsBuilderTest.cpp 16 REPORTER_ASSERT(reporter, builder.resolve(&result));
17 REPORTER_ASSERT(reporter, result.isEmpty());
20 REPORTER_ASSERT(reporter, builder.resolve(&result));
21 REPORTER_ASSERT(reporter, result.isEmpty());
24 REPORTER_ASSERT(reporter, builder.resolve(&result));
25 REPORTER_ASSERT(reporter, result.isEmpty());
31 REPORTER_ASSERT(reporter, builder.resolve(&result));
34 REPORTER_ASSERT(reporter, result.isRect(nullptr, &closed, &dir));
35 REPORTER_ASSERT(reporter, closed);
36 REPORTER_ASSERT(reporter, dir == SkPath::kCCW_Direction)
    [all...]
MaskCacheTest.cpp 25 REPORTER_ASSERT(reporter, data->testing_only_getRefCnt() == refcnt);
26 REPORTER_ASSERT(reporter, data->testing_only_isInCache() == (kInCache == cacheState));
28 REPORTER_ASSERT(reporter, isLocked == (lockedState == kLocked));
43 REPORTER_ASSERT(reporter, nullptr == data);
59 REPORTER_ASSERT(reporter, data);
60 REPORTER_ASSERT(reporter, data->size() == size);
61 REPORTER_ASSERT(reporter, mask.fBounds.top() == 0 && mask.fBounds.bottom() == 100);
62 REPORTER_ASSERT(reporter, data->data() == (const void*)mask.fImage);
81 REPORTER_ASSERT(reporter, nullptr == data);
97 REPORTER_ASSERT(reporter, data)
    [all...]
AtomicTest.cpp 50 REPORTER_ASSERT(reporter, total == base);
54 REPORTER_ASSERT(reporter, originalValue == sk_atomic_add(&valueToModify, 7));
58 REPORTER_ASSERT(reporter, 0 == v.load());
60 REPORTER_ASSERT(reporter, 10 == v.load());
62 REPORTER_ASSERT(reporter, 10 == q);
GpuRectanizerTest.cpp 22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
23 REPORTER_ASSERT(reporter, kHeight == rectanizer->height());
27 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc));
28 REPORTER_ASSERT(reporter, rectanizer->percentFull() > 0.0f);
30 REPORTER_ASSERT(reporter, rectanizer->percentFull() == 0.0f);

Completed in 1238 milliseconds

1 23 4 5 6 7 8 9