Home
last modified time | relevance | path

Searched refs:reporter (Results 126 - 150 of 425) sorted by relevance

12345678910>>...17

/third_party/skia/tests/
H A DTraceMemoryDumpTest.cpp59 void ValidateMemoryDumps(skiatest::Reporter* reporter, GrDirectContext* dContext, in ValidateMemoryDumps() argument
64 REPORTER_ASSERT(reporter, numDumpedObjects == dump_with_wrapped.numDumpedObjects()); in ValidateMemoryDumps()
65 REPORTER_ASSERT(reporter, size == dump_with_wrapped.dumpedObjectsSize()); in ValidateMemoryDumps()
70 REPORTER_ASSERT(reporter, numDumpedObjects == dump_no_wrapped.numDumpedObjects()); in ValidateMemoryDumps()
71 REPORTER_ASSERT(reporter, size == dump_no_wrapped.dumpedObjectsSize()); in ValidateMemoryDumps()
73 REPORTER_ASSERT(reporter, 1 == dump_no_wrapped.numDumpedObjects()); in ValidateMemoryDumps()
74 REPORTER_ASSERT(reporter, 0 == dump_no_wrapped.dumpedObjectsSize()); in ValidateMemoryDumps()
79 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SkTraceMemoryDump_ownedGLBuffer, reporter, ctxInfo) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
86 ValidateMemoryDumps(reporter, dContext, 2, kMemorySize, true /* isOwned */); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
89 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(SkTraceMemoryDump_ownedGLTexture, reporter, ctxInf
[all...]
H A DShaderTest.cpp18 static void check_isaimage(skiatest::Reporter* reporter, SkShader* shader, in check_isaimage() argument
30 REPORTER_ASSERT(reporter, image); in check_isaimage()
31 REPORTER_ASSERT(reporter, image->width() == expectedW); in check_isaimage()
32 REPORTER_ASSERT(reporter, image->height() == expectedH); in check_isaimage()
33 REPORTER_ASSERT(reporter, localM == expectedM); in check_isaimage()
34 REPORTER_ASSERT(reporter, tileModes[0] == expectedX); in check_isaimage()
35 REPORTER_ASSERT(reporter, tileModes[1] == expectedY); in check_isaimage()
38 DEF_TEST(Shader_isAImage, reporter) { in DEF_TEST()
51 check_isaimage(reporter, shader0.get(), W, H, tmx, tmy, localM); in DEF_TEST()
52 check_isaimage(reporter, shader in DEF_TEST()
[all...]
H A DImageIsOpaqueTest.cpp19 static void check_isopaque(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, in check_isopaque() argument
22 REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque); in check_isopaque()
25 DEF_TEST(ImageIsOpaqueTest, reporter) { in DEF_TEST()
28 check_isopaque(reporter, surfaceTransparent, false); in DEF_TEST()
32 check_isopaque(reporter, surfaceOpaque, true); in DEF_TEST()
35 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(ImageIsOpaqueTest_Gpu, reporter, ctxInfo) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
39 check_isopaque(reporter, surfaceTransparent, false); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
44 check_isopaque(reporter, surfaceOpaque, true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
57 DEF_TEST(Image_isAlphaOnly, reporter) { in DEF_TEST()
73 REPORTER_ASSERT(reporter, imag in DEF_TEST()
[all...]
H A DSkRemoteGlyphCacheTest.cpp143 skiatest::Reporter* reporter, int tolerance = 0) { in compare_blobs()
151 REPORTER_ASSERT(reporter, expectedColor == actualColor); in compare_blobs()
156 REPORTER_ASSERT(reporter, abs(expectedChannel - actualChannel) <= tolerance); in compare_blobs()
186 DEF_TEST(SkRemoteGlyphCache_TypefaceSerialization, reporter) { in DEF_TEST()
195 REPORTER_ASSERT(reporter, client_tf); in DEF_TEST()
196 REPORTER_ASSERT(reporter, static_cast<SkTypefaceProxy*>(client_tf.get())->remoteTypefaceID() == in DEF_TEST()
203 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(SkRemoteGlyphCache_StrikeSerialization, reporter, ctxInfo) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
226 REPORTER_ASSERT(reporter, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
232 compare_blobs(expected, actual, reporter); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
233 REPORTER_ASSERT(reporter, !discardableManage in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
142 compare_blobs(const SkBitmap& expected, const SkBitmap& actual, skiatest::Reporter* reporter, int tolerance = 0) compare_blobs() argument
502 make_blob_causing_fallback( sk_sp<SkTypeface> targetTf, const SkTypeface* glyphTf, skiatest::Reporter* reporter) make_blob_causing_fallback() argument
[all...]
H A DAnnotationTest.cpp38 DEF_TEST(Annotation_NoDraw, reporter) { in DEF_TEST()
48 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); in DEF_TEST()
50 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0)); in DEF_TEST()
53 DEF_TEST(Annotation_PdfLink, reporter) { in DEF_TEST()
54 REQUIRE_PDF_DOCUMENT(Annotation_PdfLink, reporter); in DEF_TEST()
58 REPORTER_ASSERT(reporter, canvas); in DEF_TEST()
69 REPORTER_ASSERT(reporter, ContainsString(rawOutput, out->size(), "/Annots ")); in DEF_TEST()
72 DEF_TEST(Annotation_PdfDefineNamedDestination, reporter) { in DEF_TEST()
73 REQUIRE_PDF_DOCUMENT(Annotation_PdfNamedDestination, reporter); in DEF_TEST()
77 REPORTER_ASSERT(reporter, canva in DEF_TEST()
[all...]
H A DWrappedSurfaceCopyOnWriteTest.cpp23 DEF_GPUTEST_FOR_ALL_CONTEXTS(WrappedSurfaceCopyOnWrite, reporter, ctxInfo) { in DEF_GPUTEST_FOR_ALL_CONTEXTS()
47 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
51 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
54 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
58 REPORTER_ASSERT(reporter, imageProxyID(img) != imageID); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
61 REPORTER_ASSERT(reporter, surf->characterize(&characterization)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
67 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
69 REPORTER_ASSERT(reporter, surfaceProxyID(surf) != imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
75 REPORTER_ASSERT(reporter, surfaceProxyID(surf) == imageProxyID(img)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
78 REPORTER_ASSERT(reporter, surfI in DEF_GPUTEST_FOR_ALL_CONTEXTS()
[all...]
H A DPDFDocumentTest.cpp20 static void test_empty(skiatest::Reporter* reporter) { in test_empty() argument
27 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0); in test_empty()
30 static void test_abort(skiatest::Reporter* reporter) { in test_abort() argument
41 REPORTER_ASSERT(reporter, stream.bytesWritten() < 256); in test_abort()
44 static void test_abortWithFile(skiatest::Reporter* reporter) { in test_abortWithFile() argument
48 ERRORF(reporter, "missing tmpDir."); in test_abortWithFile()
54 ERRORF(reporter, "unable to write to: %s", path.c_str()); in test_abortWithFile()
73 REPORTER_ASSERT(reporter, fread(buffer, 1, sizeof(buffer), file) < sizeof(buffer)); in test_abortWithFile()
77 static void test_file(skiatest::Reporter* reporter) { in test_file() argument
80 ERRORF(reporter, "missin in test_file()
108 test_close(skiatest::Reporter* reporter) test_close() argument
[all...]
H A DDrawBitmapRectTest.cpp48 static void test_treatAsSprite(skiatest::Reporter* reporter) { in test_treatAsSprite() argument
65 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, sampling, noaaPaint)); in test_treatAsSprite()
74 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, sampling, noaaPaint)); in test_treatAsSprite()
75 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, sampling, aaPaint)); in test_treatAsSprite()
83 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, sampling, aaPaint)); in test_treatAsSprite()
85 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, sampling, aaPaint)); in test_treatAsSprite()
89 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, sampling, aaPaint)); in test_treatAsSprite()
91 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, sampling, aaPaint)); in test_treatAsSprite()
96 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, sampling, noaaPaint)); in test_treatAsSprite()
97 REPORTER_ASSERT(reporter, !SkTreatAsSprit in test_treatAsSprite()
112 test_wacky_bitmapshader(skiatest::Reporter* reporter, int width, int height) test_wacky_bitmapshader() argument
183 test_giantrepeat_crbug118018(skiatest::Reporter* reporter) test_giantrepeat_crbug118018() argument
[all...]
H A DBulkRectTest.cpp49 static void fillrectop_creation_test(skiatest::Reporter* reporter, GrDirectContext* dContext, in fillrectop_creation_test() argument
83 REPORTER_ASSERT(reporter, tmp->classID() == skgpu::v1::FillRectOp::ClassID()); in fillrectop_creation_test()
84 REPORTER_ASSERT(reporter, tmp->isChainTail()); in fillrectop_creation_test()
88 REPORTER_ASSERT(reporter, expectedNumOps == actualNumOps); in fillrectop_creation_test()
89 REPORTER_ASSERT(reporter, requestedTotNumQuads == actualTotNumQuads); in fillrectop_creation_test()
97 static void textureop_creation_test(skiatest::Reporter* reporter, GrDirectContext* dContext, in textureop_creation_test() argument
197 REPORTER_ASSERT(reporter, allUniqueProxies || tmp->isChainTail()); in textureop_creation_test()
199 REPORTER_ASSERT(reporter, tmp->classID() == expectedOpID); in textureop_creation_test()
205 REPORTER_ASSERT(reporter, expectedNumOps == actualNumOps); in textureop_creation_test()
206 REPORTER_ASSERT(reporter, requestedTotNumQuad in textureop_creation_test()
214 run_test(GrDirectContext* dContext, skiatest::Reporter* reporter, BulkRectTest test) run_test() argument
[all...]
H A DInfRectTest.cpp13 static void check_invalid(skiatest::Reporter* reporter, in check_invalid() argument
17 REPORTER_ASSERT(reporter, !rect.isFinite()); in check_invalid()
22 DEF_TEST(InfRect, reporter) { in DEF_TEST()
29 REPORTER_ASSERT(reporter, SkRect::MakeEmpty().isFinite()); in DEF_TEST()
32 REPORTER_ASSERT(reporter, rect.isFinite()); in DEF_TEST()
36 check_invalid(reporter, small, small, big, invalid[i]); in DEF_TEST()
37 check_invalid(reporter, small, small, invalid[i], big); in DEF_TEST()
38 check_invalid(reporter, small, invalid[i], big, big); in DEF_TEST()
39 check_invalid(reporter, invalid[i], small, big, big); in DEF_TEST()
H A DIsClosedSingleContourTest.cpp10 DEF_TEST(IsClosedSingleContourTest, reporter) { in DEF_TEST()
12 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
15 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
19 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
24 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
32 REPORTER_ASSERT(reporter, SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
37 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
44 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
51 REPORTER_ASSERT(reporter, !SkPathPriv::IsClosedSingleContour(p.detach())); in DEF_TEST()
H A DEGLImageTest.cpp45 DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS(EGLImageTest, reporter, ctxInfo) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
91 ERRORF(reporter, "Error creating texture for EGL Image"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
98 ERRORF(reporter, "Failed to get GrGLTextureInfo"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
103 ERRORF(reporter, "Expected backend texture to be 2D"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
111 ERRORF(reporter, "Error creating EGL Image from texture"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
146 ERRORF(reporter, "Error converting EGL Image back to texture"); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
161 ERRORF(reporter, "Error wrapping external texture in GrTextureProxy."); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
171 ERRORF(reporter, "Error wrapping external texture in SurfaceContext."); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
177 REPORTER_ASSERT(reporter, proxy->mipmapped() == GrMipmapped::kNo); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
178 REPORTER_ASSERT(reporter, prox in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
[all...]
H A DPathRendererCacheTests.cpp74 static void test_path(skiatest::Reporter* reporter, in test_path() argument
97 REPORTER_ASSERT(reporter, cache_non_scratch_resources_equals(cache, 0)); in test_path()
102 REPORTER_ASSERT(reporter, cache_non_scratch_resources_equals(cache, expected)); in test_path()
106 REPORTER_ASSERT(reporter, cache_non_scratch_resources_equals(cache, expected)); in test_path()
112 REPORTER_ASSERT(reporter, cache_non_scratch_resources_equals(cache, expected - 1)); in test_path()
120 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 0); in test_path()
126 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 20); in test_path()
130 REPORTER_ASSERT(reporter, SkPathPriv::GenIDChangeListenersCount(path) == 1); in test_path()
134 DEF_GPUTEST(TriangulatingPathRendererCacheTest, reporter, /* options */) { in DEF_GPUTEST()
143 test_path(reporter, create_concave_pat in DEF_GPUTEST()
[all...]
H A DPathOpsConicQuadIntersectionTest.cpp34 static void conicQuadIntersection(skiatest::Reporter* reporter, int index) { in conicQuadIntersection() argument
49 REPORTER_ASSERT(reporter, 0); in conicQuadIntersection()
53 REPORTER_ASSERT(reporter, 0); in conicQuadIntersection()
66 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in conicQuadIntersection()
68 reporter->bumpTestCount(); in conicQuadIntersection()
71 DEF_TEST(PathOpsConicQuadIntersection, reporter) { in DEF_TEST()
73 conicQuadIntersection(reporter, index); in DEF_TEST()
74 reporter->bumpTestCount(); in DEF_TEST()
78 DEF_TEST(PathOpsConicQuadIntersectionOneOff, reporter) { in DEF_TEST()
79 conicQuadIntersection(reporter, in DEF_TEST()
[all...]
H A DPathOpsCubicQuadIntersectionTest.cpp54 static void cubicQuadIntersection(skiatest::Reporter* reporter, int index) { in cubicQuadIntersection() argument
70 REPORTER_ASSERT(reporter, 0); in cubicQuadIntersection()
74 REPORTER_ASSERT(reporter, 0); in cubicQuadIntersection()
87 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in cubicQuadIntersection()
89 reporter->bumpTestCount(); in cubicQuadIntersection()
92 DEF_TEST(PathOpsCubicQuadIntersection, reporter) { in DEF_TEST()
94 cubicQuadIntersection(reporter, index); in DEF_TEST()
95 reporter->bumpTestCount(); in DEF_TEST()
99 DEF_TEST(PathOpsCubicQuadIntersectionOneOff, reporter) { in DEF_TEST()
100 cubicQuadIntersection(reporter, in DEF_TEST()
[all...]
H A DPathOpsCubicConicIntersectionTest.cpp45 static void cubicConicIntersection(skiatest::Reporter* reporter, int index) { in cubicConicIntersection() argument
60 REPORTER_ASSERT(reporter, 0); in cubicConicIntersection()
64 REPORTER_ASSERT(reporter, 0); in cubicConicIntersection()
77 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in cubicConicIntersection()
79 reporter->bumpTestCount(); in cubicConicIntersection()
82 DEF_TEST(PathOpsCubicConicIntersection, reporter) { in DEF_TEST()
84 cubicConicIntersection(reporter, index); in DEF_TEST()
85 reporter->bumpTestCount(); in DEF_TEST()
89 DEF_TEST(PathOpsCubicConicIntersectionOneOff, reporter) { in DEF_TEST()
90 cubicConicIntersection(reporter, in DEF_TEST()
[all...]
H A DVkYcbcrSamplerTest.cpp30 DEF_GPUTEST(VkYCbcrSampler_DrawImageWithYcbcrSampler, reporter, options) { in DEF_GPUTEST()
33 ERRORF(reporter, "VkTestHelper initialization failed."); in DEF_GPUTEST()
43 ERRORF(reporter, "Failed to create I420 backend texture"); in DEF_GPUTEST()
54 ERRORF(reporter, "Failed to create I420 image"); in DEF_GPUTEST()
62 ERRORF(reporter, "Failed to create target SkSurface"); in DEF_GPUTEST()
72 ERRORF(reporter, "Readback failed"); in DEF_GPUTEST()
102 ERRORF(reporter, "R should be %d, but is %d at (%d, %d)", expectedR, r, x, y); in DEF_GPUTEST()
107 ERRORF(reporter, "G should be %d, but is %d at (%d, %d)", expectedG, g, x, y); in DEF_GPUTEST()
112 ERRORF(reporter, "B should be %d, but is %d at (%d, %d)", expectedB, b, x, y); in DEF_GPUTEST()
119 DEF_GPUTEST(VkYCbcrSampler_NoYcbcrSurface, reporter, option
[all...]
H A DSkShaperJSONWriterTest.cpp16 DEF_TEST(SkShaperTest_cluster, reporter) { in DEF_TEST()
56 REPORTER_ASSERT(reporter, a.glyphStartIndex == glyphStartIndex); in DEF_TEST()
57 REPORTER_ASSERT(reporter, a.glyphEndIndex == glyphEndIndex ); in DEF_TEST()
58 REPORTER_ASSERT(reporter, a.utf8StartIndex == utf8StartIndex ); in DEF_TEST()
59 REPORTER_ASSERT(reporter, a.utf8EndIndex == utf8EndIndex ); in DEF_TEST()
62 REPORTER_ASSERT(reporter, false, "Too many clusters"); in DEF_TEST()
69 REPORTER_ASSERT(reporter, answerCount == oneCase.answers.size()); in DEF_TEST()
73 DEF_TEST(SkShaperTest_VisualizeCluster, reporter) { in DEF_TEST()
105 REPORTER_ASSERT(reporter, a.utf8 == toCheckUtf8); in DEF_TEST()
107 REPORTER_ASSERT(reporter, in DEF_TEST()
[all...]
H A DGrGLExtensionsTest.cpp34 DEF_TEST(GrGLExtensionsTest_remove, reporter) { in DEF_TEST()
43 REPORTER_ASSERT(reporter, ext.isInitialized()); in DEF_TEST()
44 REPORTER_ASSERT(reporter, ext.has("test_extension_1")); in DEF_TEST()
45 REPORTER_ASSERT(reporter, ext.has("test_extension_2")); in DEF_TEST()
46 REPORTER_ASSERT(reporter, ext.remove("test_extension_2")); in DEF_TEST()
47 REPORTER_ASSERT(reporter, !ext.has("test_extension_2")); in DEF_TEST()
48 REPORTER_ASSERT(reporter, ext.remove("test_extension_1")); in DEF_TEST()
49 REPORTER_ASSERT(reporter, !ext.has("test_extension_1")); in DEF_TEST()
H A DPathOpsCubicLineIntersectionTest.cpp29 static void testFail(skiatest::Reporter* reporter, int iIndex) { in testFail() argument
42 REPORTER_ASSERT(reporter, 0); in testFail()
46 REPORTER_ASSERT(reporter, 0); in testFail()
51 REPORTER_ASSERT(reporter, roots == 0); in testFail()
131 static void testOne(skiatest::Reporter* reporter, int iIndex) { in testOne() argument
144 REPORTER_ASSERT(reporter, 0); in testOne()
148 REPORTER_ASSERT(reporter, 0); in testOne()
162 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); in testOne()
180 DEF_TEST(PathOpsFailCubicLineIntersection, reporter) { in DEF_TEST()
183 testFail(reporter, iInde in DEF_TEST()
[all...]
H A DPictureTest.cpp147 void check_save_state(skiatest::Reporter* reporter, SkPicture* picture, in check_save_state() argument
157 REPORTER_ASSERT(reporter, numSaves >= canvas.getSaveCount()); in check_save_state()
158 REPORTER_ASSERT(reporter, numSaveLayers >= canvas.getSaveLayerCount()); in check_save_state()
159 REPORTER_ASSERT(reporter, numRestores >= canvas.getRestoreCount()); in check_save_state()
191 static void check_balance(skiatest::Reporter* reporter, SkPicture* picture) { in check_balance() argument
204 REPORTER_ASSERT(reporter, beforeSaveCount == canvas.getSaveCount()); in check_balance()
205 REPORTER_ASSERT(reporter, beforeMatrix == canvas.getTotalMatrix()); in check_balance()
209 REPORTER_ASSERT(reporter, afterClip == beforeClip); in check_balance()
213 DEF_TEST(PictureRecorder_replay, reporter) { in DEF_TEST()
225 check_save_state(reporter, cop in DEF_TEST()
257 test_unbalanced_save_restores(skiatest::Reporter* reporter) test_unbalanced_save_restores() argument
351 test_bad_bitmap(skiatest::Reporter* reporter) test_bad_bitmap() argument
368 test_clip_bound_opt(skiatest::Reporter* reporter) test_clip_bound_opt() argument
428 test_cull_rect_reset(skiatest::Reporter* reporter) test_cull_rect_reset() argument
487 test_gen_id(skiatest::Reporter* reporter) test_gen_id() argument
506 test_typeface(skiatest::Reporter* reporter) test_typeface() argument
[all...]
H A DBlurTest.cpp123 DEF_TEST(BlurDrawing, reporter) { in DEF_TEST()
165 REPORTER_ASSERT(reporter, in DEF_TEST()
310 DEF_TEST(BlurSigmaRange, reporter) { in DEF_TEST()
343 REPORTER_ASSERT(reporter, match(rectSpecialCaseResult, bruteForce1DResult, kSize, 5)); in DEF_TEST()
344 REPORTER_ASSERT(reporter, match(generalCaseResult, bruteForce1DResult, kSize, 15)); in DEF_TEST()
345 REPORTER_ASSERT(reporter, match(groundTruthResult, bruteForce1DResult, kSize, 1)); in DEF_TEST()
359 DEF_TEST(BlurAsABlur, reporter) { in DEF_TEST()
377 REPORTER_ASSERT(reporter, sigma <= 0); in DEF_TEST()
379 REPORTER_ASSERT(reporter, sigma > 0); in DEF_TEST()
383 REPORTER_ASSERT(reporter, succes in DEF_TEST()
[all...]
H A DGrSurfaceTest.cpp31 DEF_GPUTEST_FOR_MOCK_CONTEXT(GrSurface, reporter, ctxInfo) { in DEF_GPUTEST_FOR_MOCK_CONTEXT()
42 REPORTER_ASSERT(reporter, texRT1.get() == texRT1->asRenderTarget()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
43 REPORTER_ASSERT(reporter, texRT1.get() == texRT1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
44 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == in DEF_GPUTEST_FOR_MOCK_CONTEXT()
46 REPORTER_ASSERT(reporter, texRT1->asRenderTarget() == in DEF_GPUTEST_FOR_MOCK_CONTEXT()
48 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == in DEF_GPUTEST_FOR_MOCK_CONTEXT()
54 REPORTER_ASSERT(reporter, nullptr == tex1->asRenderTarget()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
55 REPORTER_ASSERT(reporter, tex1.get() == tex1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
56 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1.get()) == tex1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
65 REPORTER_ASSERT(reporter, texRT in DEF_GPUTEST_FOR_MOCK_CONTEXT()
[all...]
H A DClearTest.cpp76 static void clear_op_test(skiatest::Reporter* reporter, GrDirectContext* dContext) { in clear_op_test() argument
113 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, in clear_op_test()
124 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, in clear_op_test()
135 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor2, actualValue, in clear_op_test()
146 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, in clear_op_test()
157 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, in clear_op_test()
168 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor2, actualValue, in clear_op_test()
175 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, in clear_op_test()
186 ERRORF(reporter, "Expected 0x%08x but got 0x%08x at (%d, %d).", kColor1, actualValue, in clear_op_test()
199 ERRORF(reporter, "Expecte in clear_op_test()
306 fullscreen_clear_with_layer_test(skiatest::Reporter* reporter, GrRecordingContext* rContext) fullscreen_clear_with_layer_test() argument
[all...]
/third_party/skia/modules/skparagraph/tests/
H A DSkShaperJSONWriterTest.cpp16 DEF_TEST(SkShaperTest_cluster, reporter) { in DEF_TEST()
56 REPORTER_ASSERT(reporter, a.glyphStartIndex == glyphStartIndex); in DEF_TEST()
57 REPORTER_ASSERT(reporter, a.glyphEndIndex == glyphEndIndex ); in DEF_TEST()
58 REPORTER_ASSERT(reporter, a.utf8StartIndex == utf8StartIndex ); in DEF_TEST()
59 REPORTER_ASSERT(reporter, a.utf8EndIndex == utf8EndIndex ); in DEF_TEST()
62 REPORTER_ASSERT(reporter, false, "Too many clusters"); in DEF_TEST()
69 REPORTER_ASSERT(reporter, answerCount == oneCase.answers.size()); in DEF_TEST()
73 DEF_TEST(SkShaperTest_VisualizeCluster, reporter) { in DEF_TEST()
105 REPORTER_ASSERT(reporter, a.utf8 == toCheckUtf8); in DEF_TEST()
107 REPORTER_ASSERT(reporter, in DEF_TEST()
[all...]

Completed in 12 milliseconds

12345678910>>...17