HomeSort by relevance Sort by last modified time
    Searched refs:REPORTER_ASSERT (Results 226 - 250 of 542) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/tests/
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);
47 REPORTER_ASSERT(reporter, table[i] == gFDot6INVERSE[i + kInverseTableSize]);
59 REPORTER_ASSERT(reporter,
128 REPORTER_ASSERT(reporter, prod0 == prod1);
229 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f);
241 REPORTER_ASSERT(reporter, !SkScalarIsNaN(inf))
    [all...]
CodecRecommendedTypeTest.cpp 30 REPORTER_ASSERT(r, SkEncodeImage(&wstream, bm, SkEncodedImageFormat::kPNG, 100));
38 REPORTER_ASSERT(r, androidCodec->computeOutputColorType(kN32_SkColorType)
GrContextFactoryTest.cpp 32 REPORTER_ASSERT(
47 REPORTER_ASSERT(
66 REPORTER_ASSERT(reporter, context->caps()->srgbSupport());
70 REPORTER_ASSERT(reporter, !context->caps()->srgbSupport());
84 REPORTER_ASSERT(reporter, info1.testContext());
91 REPORTER_ASSERT(reporter, info2.grContext());
92 REPORTER_ASSERT(reporter, info2.testContext());
94 REPORTER_ASSERT(reporter, info1.grContext() != info2.grContext());
116 REPORTER_ASSERT(reporter, !info2.grContext());
131 REPORTER_ASSERT(reporter, info3.grContext() != info4.grContext())
    [all...]
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(SkOSPath::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());
PipeTest.cpp 60 REPORTER_ASSERT(reporter, offset0 > 100); // the raw image must be sorta big
68 REPORTER_ASSERT(reporter, offset1 <= 32);
74 REPORTER_ASSERT(reporter, offset2 <= 32);
76 REPORTER_ASSERT(reporter, deep_equal(img.get(), img1.get()));
81 REPORTER_ASSERT(reporter, offset3 <= 32);
83 REPORTER_ASSERT(reporter, img1.get() == img2.get());
96 REPORTER_ASSERT(reporter, offset0 > 100); // the raw image must be sorta big
102 REPORTER_ASSERT(reporter, offset1 <= 16);
104 REPORTER_ASSERT(reporter, img1.get() == img2.get());
111 REPORTER_ASSERT(reporter, offset2 <= 16)
    [all...]
ProxyTest.cpp 32 REPORTER_ASSERT(reporter, proxy->origin() == origin);
33 REPORTER_ASSERT(reporter, proxy->width() == width);
34 REPORTER_ASSERT(reporter, proxy->height() == height);
35 REPORTER_ASSERT(reporter, proxy->config() == config);
36 REPORTER_ASSERT(reporter, !proxy->uniqueID().isInvalid());
37 REPORTER_ASSERT(reporter, proxy->isBudgeted() == budgeted);
47 REPORTER_ASSERT(reporter, rtProxy->maxWindowRectangles(caps) == expectedMaxWindowRects);
48 REPORTER_ASSERT(reporter, rtProxy->numStencilSamples() == numSamples);
51 REPORTER_ASSERT(reporter, rtProxy->instantiate(provider));
54 REPORTER_ASSERT(reporter, rtProxy->uniqueID() == idBefore)
    [all...]
ColorSpaceTest.cpp 25 REPORTER_ASSERT(r, nullptr != space);
26 REPORTER_ASSERT(r, expectedGamma == space->gammaNamed());
38 REPORTER_ASSERT(r, almost_equal(ref[i][0], dst[0]));
39 REPORTER_ASSERT(r, almost_equal(ref[i][1], dst[1]));
40 REPORTER_ASSERT(r, almost_equal(ref[i][2], dst[2]));
48 REPORTER_ASSERT(r, nullptr != stream);
54 REPORTER_ASSERT(r, nullptr != codec);
110 REPORTER_ASSERT(r, rgbColorSpace == namedColorSpace);
121 REPORTER_ASSERT(r, rgbColorSpace2 == namedColorSpace);
127 REPORTER_ASSERT(r, strangeColorSpace != namedColorSpace)
    [all...]
DeferredDisplayListTest.cpp 230 REPORTER_ASSERT(reporter, s->draw(ddl.get()));
261 REPORTER_ASSERT(reporter, !s->draw(ddl.get()),
275 REPORTER_ASSERT(reporter, !s->draw(ddl.get()));
282 REPORTER_ASSERT(reporter, s->draw(ddl.get()));
286 REPORTER_ASSERT(reporter, s->draw(ddl.get()));
290 REPORTER_ASSERT(reporter, s->draw(ddl.get()));
301 REPORTER_ASSERT(reporter, !s->draw(ddl.get()));
314 REPORTER_ASSERT(reporter, !rasterSurface->characterize(&c));
374 REPORTER_ASSERT(reporter, !image);
383 REPORTER_ASSERT(reporter, image)
    [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));
103 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);
150 REPORTER_ASSERT(r, cache.find(key, TestingRec::Visitor, &value))
    [all...]
ImageTest.cpp 59 REPORTER_ASSERT(reporter, widthA == b->width());
60 REPORTER_ASSERT(reporter, heightA == b->height());
63 //REPORTER_ASSERT(reporter, a->isOpaque() == b->isOpaque());
72 REPORTER_ASSERT(reporter, a->readPixels(pmapA, srcX, srcY));
73 REPORTER_ASSERT(reporter, b->readPixels(pmapB, 0, 0));
77 REPORTER_ASSERT(reporter, !memcmp(pmapA.addr32(0, y), pmapB.addr32(0, y), widthBytes));
166 REPORTER_ASSERT(reporter, origEncoded);
167 REPORTER_ASSERT(reporter, origEncoded->size() > 0);
174 REPORTER_ASSERT(reporter, decoded);
180 REPORTER_ASSERT(reporter, decoded)
    [all...]
TypefaceTest.cpp 66 REPORTER_ASSERT(reporter,
76 REPORTER_ASSERT(reporter,
126 REPORTER_ASSERT(reporter, count == numberOfAxesInDistortable);
130 REPORTER_ASSERT(reporter, count == SK_ARRAY_COUNT(positionRead));
132 REPORTER_ASSERT(reporter, positionRead[0].axis == position[1].axis);
137 REPORTER_ASSERT(reporter, fixedRead == fixedOriginal);
173 REPORTER_ASSERT(reporter, positionRead[0].axis == SkSetFourByteTag('w','g','h','t'));
174 REPORTER_ASSERT(reporter, positionRead[0].value == 0.5);
182 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get()));
183 REPORTER_ASSERT(reporter, SkTypeface::Equal(nullptr, t1.get()))
    [all...]
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);
  /external/skqp/tests/
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);
47 REPORTER_ASSERT(reporter, table[i] == gFDot6INVERSE[i + kInverseTableSize]);
59 REPORTER_ASSERT(reporter,
128 REPORTER_ASSERT(reporter, prod0 == prod1);
229 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f);
241 REPORTER_ASSERT(reporter, !SkScalarIsNaN(inf))
    [all...]
CodecRecommendedTypeTest.cpp 30 REPORTER_ASSERT(r, SkEncodeImage(&wstream, bm, SkEncodedImageFormat::kPNG, 100));
38 REPORTER_ASSERT(r, androidCodec->computeOutputColorType(kN32_SkColorType)
GrContextFactoryTest.cpp 32 REPORTER_ASSERT(
47 REPORTER_ASSERT(
66 REPORTER_ASSERT(reporter, context->caps()->srgbSupport());
70 REPORTER_ASSERT(reporter, !context->caps()->srgbSupport());
84 REPORTER_ASSERT(reporter, info1.testContext());
91 REPORTER_ASSERT(reporter, info2.grContext());
92 REPORTER_ASSERT(reporter, info2.testContext());
94 REPORTER_ASSERT(reporter, info1.grContext() != info2.grContext());
116 REPORTER_ASSERT(reporter, !info2.grContext());
131 REPORTER_ASSERT(reporter, info3.grContext() != info4.grContext())
    [all...]
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(SkOSPath::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());
PipeTest.cpp 60 REPORTER_ASSERT(reporter, offset0 > 100); // the raw image must be sorta big
68 REPORTER_ASSERT(reporter, offset1 <= 32);
74 REPORTER_ASSERT(reporter, offset2 <= 32);
76 REPORTER_ASSERT(reporter, deep_equal(img.get(), img1.get()));
81 REPORTER_ASSERT(reporter, offset3 <= 32);
83 REPORTER_ASSERT(reporter, img1.get() == img2.get());
96 REPORTER_ASSERT(reporter, offset0 > 100); // the raw image must be sorta big
102 REPORTER_ASSERT(reporter, offset1 <= 16);
104 REPORTER_ASSERT(reporter, img1.get() == img2.get());
111 REPORTER_ASSERT(reporter, offset2 <= 16)
    [all...]
ColorSpaceTest.cpp 25 REPORTER_ASSERT(r, nullptr != space);
26 REPORTER_ASSERT(r, expectedGamma == space->gammaNamed());
38 REPORTER_ASSERT(r, almost_equal(ref[i][0], dst[0]));
39 REPORTER_ASSERT(r, almost_equal(ref[i][1], dst[1]));
40 REPORTER_ASSERT(r, almost_equal(ref[i][2], dst[2]));
48 REPORTER_ASSERT(r, nullptr != stream);
54 REPORTER_ASSERT(r, nullptr != codec);
110 REPORTER_ASSERT(r, rgbColorSpace == namedColorSpace);
121 REPORTER_ASSERT(r, rgbColorSpace2 == namedColorSpace);
127 REPORTER_ASSERT(r, strangeColorSpace != namedColorSpace)
    [all...]
StreamTest.cpp 33 REPORTER_ASSERT(reporter, bytes == len);
34 REPORTER_ASSERT(reporter, !memcmp(tmp, src, len));
39 REPORTER_ASSERT(reporter, 0 == bytes);
41 REPORTER_ASSERT(reporter, stream->isAtEnd());
63 REPORTER_ASSERT(reporter, stream.isValid());
73 REPORTER_ASSERT(reporter, stream.isValid());
86 REPORTER_ASSERT(reporter, ds.write(s, 26));
88 REPORTER_ASSERT(reporter, ds.bytesWritten() == 100 * 26);
93 REPORTER_ASSERT(reporter, dst[100*26] == '*');
95 REPORTER_ASSERT(reporter, memcmp(&dst[i * 26], s, 26) == 0)
    [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));
103 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);
150 REPORTER_ASSERT(r, cache.find(key, TestingRec::Visitor, &value))
    [all...]
ImageTest.cpp 58 REPORTER_ASSERT(reporter, widthA == b->width());
59 REPORTER_ASSERT(reporter, heightA == b->height());
62 //REPORTER_ASSERT(reporter, a->isOpaque() == b->isOpaque());
71 REPORTER_ASSERT(reporter, a->readPixels(pmapA, srcX, srcY));
72 REPORTER_ASSERT(reporter, b->readPixels(pmapB, 0, 0));
76 REPORTER_ASSERT(reporter, !memcmp(pmapA.addr32(0, y), pmapB.addr32(0, y), widthBytes));
165 REPORTER_ASSERT(reporter, origEncoded);
166 REPORTER_ASSERT(reporter, origEncoded->size() > 0);
173 REPORTER_ASSERT(reporter, decoded);
179 REPORTER_ASSERT(reporter, decoded)
    [all...]
LazyProxyTest.cpp 39 REPORTER_ASSERT(fReporter, fHasOpTexture);
40 REPORTER_ASSERT(fReporter, fHasClipTexture);
45 REPORTER_ASSERT(fReporter, !fHasOpTexture);
46 REPORTER_ASSERT(fReporter, !fHasClipTexture);
50 REPORTER_ASSERT(fReporter, fHasOpTexture);
51 REPORTER_ASSERT(fReporter, fHasClipTexture);
65 REPORTER_ASSERT(fTest->fReporter, !fTest->fHasOpTexture);
77 REPORTER_ASSERT(fTest->fReporter, texture);
89 REPORTER_ASSERT(fTest->fReporter, fTest->fHasOpTexture);
90 REPORTER_ASSERT(fTest->fReporter, fTest->fHasClipTexture)
    [all...]
TypefaceTest.cpp 66 REPORTER_ASSERT(reporter,
76 REPORTER_ASSERT(reporter,
126 REPORTER_ASSERT(reporter, count == numberOfAxesInDistortable);
130 REPORTER_ASSERT(reporter, count == SK_ARRAY_COUNT(positionRead));
132 REPORTER_ASSERT(reporter, positionRead[0].axis == position[1].axis);
137 REPORTER_ASSERT(reporter, fixedRead == fixedOriginal);
173 REPORTER_ASSERT(reporter, positionRead[0].axis == SkSetFourByteTag('w','g','h','t'));
174 REPORTER_ASSERT(reporter, positionRead[0].value == 0.5);
182 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get()));
183 REPORTER_ASSERT(reporter, SkTypeface::Equal(nullptr, t1.get()))
    [all...]

Completed in 2409 milliseconds

1 2 3 4 5 6 7 8 91011>>