/external/skia/tests/ |
PDFPrimitivesTest.cpp | 79 REPORTER_ASSERT(reporter, directSize == expectedSize); 83 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); 84 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedData, 97 REPORTER_ASSERT(reporter, 102 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset()); 103 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, header, headerLen)); 104 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen, expectedData, 106 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen + directSize, 179 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int1.get()) == 3); 180 REPORTER_ASSERT(reporter, catalog.getObjectNumberSize(int2.get()) == 3) [all...] |
AAClipTest.cpp | 135 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 143 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 151 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 185 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); 187 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); 199 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); 201 REPORTER_ASSERT(reporter, teardrop_height == clip.getBounds().height()); 207 REPORTER_ASSERT(reporter, clip0.isEmpty()); 208 REPORTER_ASSERT(reporter, clip0.getBounds().isEmpty()); 209 REPORTER_ASSERT(reporter, clip1 == clip0) [all...] |
FontHostTest.cpp | 46 REPORTER_ASSERT(reporter, tableUPEM == nativeUPEM); 68 REPORTER_ASSERT(reporter, tableGlyphs == nativeGlyphs); 81 REPORTER_ASSERT(reporter, n == n2); 96 REPORTER_ASSERT(reporter, gKnownTableSizes[j].fSize == size); 124 REPORTER_ASSERT(reporter, fontID); 133 REPORTER_ASSERT(reporter, count2 == count); 137 REPORTER_ASSERT(reporter, size > 0); 151 REPORTER_ASSERT(reporter, gKnownTableSizes[j].fSize == size); 159 REPORTER_ASSERT(reporter, size2 == size); 251 REPORTER_ASSERT(reporter, width1 == width2) [all...] |
ImageDecodingTest.cpp | 92 REPORTER_ASSERT(reporter, success); 106 REPORTER_ASSERT(reporter, dimensionsMatch); 132 REPORTER_ASSERT(reporter, 0 == da); 135 REPORTER_ASSERT(reporter, dr <= 1); 136 REPORTER_ASSERT(reporter, dg <= 1); 137 REPORTER_ASSERT(reporter, db <= 1); 159 REPORTER_ASSERT(reporter, configs[0] == this->getPrefConfig(kIndex_SrcDepth, false)); 160 REPORTER_ASSERT(reporter, configs[1] == this->getPrefConfig(kIndex_SrcDepth, true)); 161 REPORTER_ASSERT(reporter, configs[4] == this->getPrefConfig(k32Bit_SrcDepth, false)); 162 REPORTER_ASSERT(reporter, configs[5] == this->getPrefConfig(k32Bit_SrcDepth, true)) [all...] |
PackBitsTest.cpp | 42 REPORTER_ASSERT(reporter, match); 53 REPORTER_ASSERT(reporter, maxSize >= dstSize); 56 REPORTER_ASSERT(reporter, size == srcCount); 58 REPORTER_ASSERT(reporter, match); 90 REPORTER_ASSERT(reporter, dstSize <= maxSize); 96 REPORTER_ASSERT(reporter, match); 107 REPORTER_ASSERT(reporter, maxSize >= dstSize); 110 REPORTER_ASSERT(reporter, size == srcCount); 112 REPORTER_ASSERT(reporter, match); 122 REPORTER_ASSERT(reporter, match) [all...] |
ScalarTest.cpp | 61 REPORTER_ASSERT(reporter, gSets[i].fIsFinite == rectIsFinite); 104 REPORTER_ASSERT(reporter, !!sk_float_isfinite(value) == (fc == kFinite)); 105 REPORTER_ASSERT(reporter, !!sk_float_isinf(value) == (fc == kInfinite)); 106 REPORTER_ASSERT(reporter, !!sk_float_isnan(value) == (fc == kNaN)); 163 REPORTER_ASSERT(reporter, rec.fIsFinite == finite); 177 REPORTER_ASSERT(reporter, finite2 == finite);
|
FontMgrTest.cpp | 31 REPORTER_ASSERT(reporter, first->uniqueID() == face->uniqueID()); 42 REPORTER_ASSERT(reporter, fname.size() > 0); 46 REPORTER_ASSERT(reporter, fnset->count() == set->count()); 56 // REPORTER_ASSERT(reporter, sname.size() > 0); 59 // REPORTER_ASSERT(reporter, face.get());
|
SurfaceTest.cpp | 113 REPORTER_ASSERT(reporter, imageBefore != imageAfter); \ 175 REPORTER_ASSERT(reporter, image4->getTexture() != image3->getTexture()); 177 REPORTER_ASSERT(reporter, image4->getTexture() != image2->getTexture()); 178 REPORTER_ASSERT(reporter, image4->getTexture() != image1->getTexture()); 179 REPORTER_ASSERT(reporter, image3->getTexture() != image2->getTexture()); 180 REPORTER_ASSERT(reporter, image3->getTexture() != image1->getTexture()); 181 REPORTER_ASSERT(reporter, image2->getTexture() != image1->getTexture()); 191 REPORTER_ASSERT(reporter, NULL != texture); 192 REPORTER_ASSERT(reporter, 0 != texture->getTextureHandle()); 194 REPORTER_ASSERT(reporter, NULL == texture) [all...] |
ARGBImageEncoderTest.cpp | 50 REPORTER_ASSERT(reporter, bitmap.allocPixels()); 67 REPORTER_ASSERT(reporter, enc->encodeStream(&out, bitmap, SkImageEncoder::kDefaultQuality)); 70 REPORTER_ASSERT(reporter, bufferSize == sizeof(comparisonBuffer)); 71 REPORTER_ASSERT(reporter, memcmp(pixelBuffer, comparisonBuffer, bufferSize) == 0);
|
AnnotationTest.cpp | 38 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 40 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); 70 REPORTER_ASSERT(reporter, 94 REPORTER_ASSERT(reporter,
|
AtomicTest.cpp | 52 REPORTER_ASSERT(reporter, total == base); 56 REPORTER_ASSERT(reporter, originalValue == sk_atomic_add(&valueToModify, 7));
|
PathOpsQuadParameterizationTest.cpp | 43 REPORTER_ASSERT(reporter, point_on_parameterized_curve(*quads[one], 46 REPORTER_ASSERT(reporter, SkDQuadImplicit::Match(*quads[one], *quads[two]));
|
PathOpsSimplifyFailTest.cpp | 64 REPORTER_ASSERT(reporter, !success); 65 REPORTER_ASSERT(reporter, result.isEmpty()); 66 REPORTER_ASSERT(reporter, result.getFillType() == SkPath::kWinding_FillType); 92 REPORTER_ASSERT(reporter, success); 93 REPORTER_ASSERT(reporter, result.getFillType() != SkPath::kWinding_FillType);
|
PathOpsCubicReduceOrderTest.cpp | 110 REPORTER_ASSERT(reporter, 0); 119 REPORTER_ASSERT(reporter, 0); 128 REPORTER_ASSERT(reporter, 0); 137 REPORTER_ASSERT(reporter, 0); 146 REPORTER_ASSERT(reporter, 0); 155 REPORTER_ASSERT(reporter, 0); 164 REPORTER_ASSERT(reporter, 0); 174 REPORTER_ASSERT(reporter, 0); 184 REPORTER_ASSERT(reporter, 0); 194 REPORTER_ASSERT(reporter, 0) [all...] |
FrontBufferedStreamTest.cpp | 19 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); 20 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0); 26 REPORTER_ASSERT(reporter, success == shouldSucceed);
|
BitmapGetColorTest.cpp | 33 REPORTER_ASSERT(reporter, bm1.width() == bm8.width()); 34 REPORTER_ASSERT(reporter, bm1.height() == bm8.height()); 44 REPORTER_ASSERT(reporter, p1 == p8); 106 REPORTER_ASSERT(reporter, c == gRec[i].fOutColor);
|
ErrorTest.cpp | 14 REPORTER_ASSERT( reporter, (err = SkGetLastError()) == errcode); \
|
FillPathTest.cpp | 48 REPORTER_ASSERT(reporter, blitter.m_blitCount == expected_lines);
|
PathOpsCubicToQuadsTest.cpp | 28 REPORTER_ASSERT(reporter, quads.count() == 1); 45 REPORTER_ASSERT(reporter, quads.count() <= 2); 61 REPORTER_ASSERT(reporter, 0); 67 REPORTER_ASSERT(reporter, 0); 84 REPORTER_ASSERT(reporter, 0); 90 REPORTER_ASSERT(reporter, 0);
|
ClipperTest.cpp | 43 REPORTER_ASSERT(reporter, 0xFFFFFFFF != c); 45 REPORTER_ASSERT(reporter, 0xFFFFFFFF == c); 98 REPORTER_ASSERT(reporter, !valid); 122 REPORTER_ASSERT(reporter, valid && !memcmp(&gFull[i], dst, sizeof(dst))); 141 REPORTER_ASSERT(reporter, valid &&
|
PathOpsCubicLineIntersectionTest.cpp | 46 REPORTER_ASSERT(reporter, 0); 50 REPORTER_ASSERT(reporter, 0); 64 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2));
|
MD5Test.cpp | 29 REPORTER_ASSERT(reporter, digests_equal(expectedDigest, digest)); 43 REPORTER_ASSERT(reporter, digests_equal(expectedDigest, digest));
|
ReadWriteAlphaTest.cpp | 82 REPORTER_ASSERT(reporter, match); 109 REPORTER_ASSERT(reporter, match);
|
ToUnicode.cpp | 89 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedResult, 126 REPORTER_ASSERT(reporter, stream_equals(buffer2, 0, expectedResult2,
|
ColorTest.cpp | 132 REPORTER_ASSERT(reporter, p0 == p1); 136 REPORTER_ASSERT(reporter, ax <= a); 159 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a0) == dst); 160 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a255) == src); 176 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a0) == dst); 177 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a255) == src);
|