/external/skia/tests/ |
SmallAllocatorTest.cpp | 35 REPORTER_ASSERT(reporter, c != nullptr); 36 REPORTER_ASSERT(reporter, CountingClass::GetCount() == static_cast<int>(i+1)); 39 REPORTER_ASSERT(reporter, CountingClass::GetCount() == 0); 81 REPORTER_ASSERT(reporter, container != nullptr); 82 REPORTER_ASSERT(reporter, container->getDummy() == &d);
|
StrokeTest.cpp | 74 REPORTER_ASSERT(reporter, equal(outer, fillPath.getBounds())); 78 REPORTER_ASSERT(reporter, fillPath.isNestedFillRects(nested) == isMiter); 82 REPORTER_ASSERT(reporter, equal(nested[0], outer)); 83 REPORTER_ASSERT(reporter, equal(nested[1], inner)); 92 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); 96 REPORTER_ASSERT(reporter, !s1.hasEqualEffect(s2)); 99 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); 104 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); 107 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)); 112 REPORTER_ASSERT(reporter, s1.hasEqualEffect(s2)) [all...] |
LayerRasterizerTest.cpp | 53 REPORTER_ASSERT(reporter, DummyRasterizer::GetCount() == 1); 58 REPORTER_ASSERT(reporter, DummyRasterizer::GetCount() == 0); 84 REPORTER_ASSERT(reporter, nullptr == builder.snapshotRasterizer()); 105 REPORTER_ASSERT(reporter, largerCount == LayerRasterizerTester::CountLayers(*detached.get())); 106 REPORTER_ASSERT(reporter, smallerCount == largerCount - 1); 119 REPORTER_ASSERT(reporter, layersFirstCopy.elemSize() == sizeof(SkLayerRasterizer_Rec)); 120 REPORTER_ASSERT(reporter, layersOneLarger.elemSize() == sizeof(SkLayerRasterizer_Rec)); 121 REPORTER_ASSERT(reporter, layersDetached.elemSize() == sizeof(SkLayerRasterizer_Rec)); 132 REPORTER_ASSERT(reporter, equals(*recOneLarger, *recDetached)); 134 REPORTER_ASSERT(reporter, recFirstCopy == nullptr) [all...] |
OnceTest.cpp | 27 REPORTER_ASSERT(r, 5 == x); 40 REPORTER_ASSERT(r, 6 == x); 51 REPORTER_ASSERT(r, 1 == gX);
|
PathOpsDLineTest.cpp | 29 REPORTER_ASSERT(reporter, line[0] == line2[0] && line[1] == line2[1]); 31 REPORTER_ASSERT(reporter, approximately_equal((line[0].fX + line[1].fX) / 2, mid.fX)); 32 REPORTER_ASSERT(reporter, approximately_equal((line[0].fY + line[1].fY) / 2, mid.fY));
|
SVGDeviceTest.cpp | 37 REPORTER_ASSERT(reporter, dom.getType(textElem) == SkDOM::kElement_Type); 40 REPORTER_ASSERT(reporter, textNode != nullptr); 42 REPORTER_ASSERT(reporter, dom.getType(textNode) == SkDOM::kText_Type); 43 REPORTER_ASSERT(reporter, strcmp(expected, dom.getName(textNode)) == 0); 49 REPORTER_ASSERT(reporter, x != nullptr); 52 REPORTER_ASSERT(reporter, SkParse::Count(x) == xposCount); 57 REPORTER_ASSERT(reporter, xpos[0] == offset.x()); 60 REPORTER_ASSERT(reporter, xpos[i] == SkIntToScalar(expected[i])); 66 REPORTER_ASSERT(reporter, y != nullptr); 69 REPORTER_ASSERT(reporter, SkParse::Count(y) == yposCount) [all...] |
SpecialImageTest.cpp | 66 REPORTER_ASSERT(reporter, kPad == subset.left()); 67 REPORTER_ASSERT(reporter, kPad == subset.top()); 68 REPORTER_ASSERT(reporter, kSmallerSize == subset.width()); 69 REPORTER_ASSERT(reporter, kSmallerSize == subset.height()); 72 REPORTER_ASSERT(reporter, peekTextureSucceeds == !!TestingSpecialImageAccess::PeekTexture(img)); 76 REPORTER_ASSERT(reporter, peekPixelsSucceeds == 79 REPORTER_ASSERT(reporter, kFullSize == pixmap.width()); 80 REPORTER_ASSERT(reporter, kFullSize == pixmap.height()); 100 REPORTER_ASSERT(reporter, SK_ColorBLUE == bm.getColor(kPad-1, kPad-1)); 101 REPORTER_ASSERT(reporter, SK_ColorRED == bm.getColor(kPad, kPad)) [all...] |
SwizzlerTest.cpp | 52 REPORTER_ASSERT(r, kFillIndex == indexPtr[x]); 55 REPORTER_ASSERT(r, kFillColor == colorPtr[x]); 58 REPORTER_ASSERT(r, kFillGray == grayPtr[x]); 61 REPORTER_ASSERT(r, kFill565 == color565Ptr[x]); 64 REPORTER_ASSERT(r, false); 136 REPORTER_ASSERT(r, dst == src); 138 REPORTER_ASSERT(r, dst == (uint32_t)((255<<24) | (c<<16))); 142 REPORTER_ASSERT(r, dst == 0); 144 REPORTER_ASSERT(r, dst == 0); 150 REPORTER_ASSERT(r, dst == 0xFACAAD04) [all...] |
PathTest.cpp | 35 REPORTER_ASSERT(reporter, bounds == rrect.rect()); 40 REPORTER_ASSERT(reporter, bounds == path.getBounds()); 48 REPORTER_ASSERT(reporter, !path.isConvex()); 201 REPORTER_ASSERT(reporter, 50 == last.fX); 202 REPORTER_ASSERT(reporter, 50 == last.fY); 212 REPORTER_ASSERT(reporter, 75 == last.fX); 213 REPORTER_ASSERT(reporter, 75 == last.fY); 223 REPORTER_ASSERT(reporter, 85 == last.fX); 224 REPORTER_ASSERT(reporter, 85 == last.fY); 234 REPORTER_ASSERT(reporter, 95 == last.fX) [all...] |
CachedDecodingPixelRefTest.cpp | 55 REPORTER_ASSERT(reporter, b1.empty() == b2.empty()); 56 REPORTER_ASSERT(reporter, b1.width() == b2.width()); 57 REPORTER_ASSERT(reporter, b1.height() == b2.height()); 58 REPORTER_ASSERT(reporter, b1.isNull() == b2.isNull()); 61 REPORTER_ASSERT(reporter, b1.isNull() == b2.isNull()); 65 REPORTER_ASSERT(reporter, b1.getPixels()); 66 REPORTER_ASSERT(reporter, b2.getPixels()); 86 REPORTER_ASSERT(reporter, 0 == pixelErrors); 98 REPORTER_ASSERT(reporter, !original.empty()); 99 REPORTER_ASSERT(reporter, !original.isNull()) [all...] |
PathOpsDRectTest.cpp | 52 REPORTER_ASSERT(reporter, rect.intersects(rect2)); 55 REPORTER_ASSERT(reporter, rect.contains(leftTop)); 57 REPORTER_ASSERT(reporter, rect.contains(rightBottom)); 64 REPORTER_ASSERT(reporter, rect.intersects(rect2)); 67 REPORTER_ASSERT(reporter, rect.contains(leftTop)); 69 REPORTER_ASSERT(reporter, rect.contains(rightBottom));
|
AnnotationTest.cpp | 37 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 39 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 47 REPORTER_ASSERT(reporter, canvas); 54 REPORTER_ASSERT(reporter, doc->close()); 58 REPORTER_ASSERT(reporter, ContainsString(rawOutput, out->size(), "/Annots ")); 66 REPORTER_ASSERT(reporter, canvas); 72 REPORTER_ASSERT(reporter, doc->close()); 76 REPORTER_ASSERT(reporter,
|
OSPathTest.cpp | 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize); 44 REPORTER_ASSERT(reporter, basename.equals(filename)); 55 REPORTER_ASSERT(reporter, dirname.equals(strippedDir)); 58 REPORTER_ASSERT(reporter, !basename.contains(SkPATH_SEPARATOR)); 62 REPORTER_ASSERT(reporter, basename.equals(filename)); 87 REPORTER_ASSERT(reporter, baseOfDir.size() == 0); 91 REPORTER_ASSERT(reporter, empty.size() == 0); 104 REPORTER_ASSERT(reporter, emptyPath.isEmpty());
|
CanvasStateTest.cpp | 80 REPORTER_ASSERT(reporter, sizeof(layerAlpha) == sizeof(flags)); 93 REPORTER_ASSERT(reporter, drawFn); 121 REPORTER_ASSERT(reporter, state); 126 REPORTER_ASSERT(reporter, success); 144 REPORTER_ASSERT(reporter, bitmaps[0].getSize() == bitmaps[1].getSize()); 145 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(), 187 REPORTER_ASSERT(reporter, sizeof(clipOps) == sizeof(flags)); 201 REPORTER_ASSERT(reporter, drawFn); 224 REPORTER_ASSERT(reporter, state); 238 REPORTER_ASSERT(reporter, success) [all...] |
FontObjTest.cpp | 30 REPORTER_ASSERT(reporter, font->getTypeface() == paint.getTypeface()); 32 REPORTER_ASSERT(reporter, font->getSize() == paint.getTextSize()); 33 REPORTER_ASSERT(reporter, font->getScaleX() == paint.getTextScaleX()); 34 REPORTER_ASSERT(reporter, font->getSkewX() == paint.getTextSkewX()); 36 REPORTER_ASSERT(reporter, font->isVertical() == paint.isVerticalText()); 37 REPORTER_ASSERT(reporter, font->isEmbolden() == paint.isFakeBoldText()); 39 REPORTER_ASSERT(reporter, font->isUseNonLinearMetrics() == is_use_nonlinear_metrics(paint)); 40 REPORTER_ASSERT(reporter, font->isEnableAutoHints() == is_enable_auto_hints(paint)); 41 REPORTER_ASSERT(reporter, font->isEnableByteCodeHints() == is_enable_bytecode_hints(paint)); 104 REPORTER_ASSERT(reporter, width1 == width2) [all...] |
ImageCacheTest.cpp | 50 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value)); 51 REPORTER_ASSERT(reporter, -1 == value); 55 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); 56 REPORTER_ASSERT(reporter, i == value); 87 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); 88 REPORTER_ASSERT(reporter, value == i); 100 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value)); 102 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); 103 REPORTER_ASSERT(reporter, value == i); 151 REPORTER_ASSERT(r, cache.find(key, TestingRec::Visitor, &value)) [all...] |
CodexTest.cpp | 50 REPORTER_ASSERT(r, digest == goodDigest); 67 REPORTER_ASSERT(r, result == expectedResult); 91 REPORTER_ASSERT(r, info.dimensions() == size); 96 REPORTER_ASSERT(r, result == expectedResult); 100 REPORTER_ASSERT(r, *digest == *goodDigest); 190 REPORTER_ASSERT(r, codec->getScanlines(bm.getAddr(0, 0), 1, 0) 192 REPORTER_ASSERT(r, codec->skipScanlines(1) 199 REPORTER_ASSERT(r, startResult == SkCodec::kSuccess); 204 REPORTER_ASSERT(r, 1 == lines); 213 REPORTER_ASSERT(r, codec->getScanlines(bm.getAddr(0, 0), 1, 0 [all...] |
ClipBoundsTest.cpp | 52 REPORTER_ASSERT(reporter, screen == devStackBounds); 53 REPORTER_ASSERT(reporter, isIntersectionOfRects); 65 REPORTER_ASSERT(reporter, intScreen == devGrClipBound); 66 REPORTER_ASSERT(reporter, isIntersectionOfRects);
|
ColorTest.cpp | 30 REPORTER_ASSERT(reporter, p0 == p1); 34 REPORTER_ASSERT(reporter, ax <= a); 57 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a0) == dst); 58 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a255) == src); 74 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a0) == dst); 75 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a255) == src);
|
ImageFrom565Bitmap.cpp | 20 REPORTER_ASSERT(r, img.get() != nullptr);
|
MathTest.cpp | 19 REPORTER_ASSERT(reporter, 32 == SkCLZ(0)); 20 REPORTER_ASSERT(reporter, 31 == SkCLZ(1)); 21 REPORTER_ASSERT(reporter, 1 == SkCLZ(1 << 30)); 22 REPORTER_ASSERT(reporter, 0 == SkCLZ(~0U)); 32 REPORTER_ASSERT(reporter, intri == porta); 96 REPORTER_ASSERT(reporter, prod0 == prod1); 197 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f); 266 REPORTER_ASSERT(reporter, x0 == x1); 312 REPORTER_ASSERT(reporter, !SkScalarIsNaN(inf)); 313 REPORTER_ASSERT(reporter, !SkScalarIsNaN(-inf)) [all...] |
PathOpsTypesTest.cpp | 19 REPORTER_ASSERT(reporter, equal);
|
RTConfRegistryTest.cpp | 24 REPORTER_ASSERT(reporter, result == 132);
|
InfRectTest.cpp | 30 REPORTER_ASSERT(reporter, 32 REPORTER_ASSERT(reporter, 44 REPORTER_ASSERT(reporter, ((r.left() + r.right()) >> 1) == cx); 45 REPORTER_ASSERT(reporter, ((r.top() + r.bottom()) >> 1) == cy); 53 REPORTER_ASSERT(reporter, !rect.isFinite()); 65 REPORTER_ASSERT(reporter, SkRect::MakeEmpty().isFinite()); 68 REPORTER_ASSERT(reporter, rect.isFinite());
|
PackBitsTest.cpp | 41 REPORTER_ASSERT(reporter, dstSize == 0); 44 REPORTER_ASSERT(reporter, dstSize <= maxSize); 47 REPORTER_ASSERT(reporter, srcCount == 0); 52 REPORTER_ASSERT(reporter, match); 63 REPORTER_ASSERT(reporter, maxSize >= dstSize); 66 REPORTER_ASSERT(reporter, size == srcCount); 68 REPORTER_ASSERT(reporter, match);
|