Searched refs:reporter (Results 226 - 250 of 661) sorted by relevance

1234567891011>>

/external/skqp/tests/
H A DUnicodeTest.cpp26 static void test_uvs(skiatest::Reporter* reporter) { argument
36 REPORTER_ASSERT(reporter, uvs0 == uvs1);
44 static void test_textencodings(skiatest::Reporter* reporter) { argument
72 REPORTER_ASSERT(reporter, (int)len8 == count8);
73 REPORTER_ASSERT(reporter, (int)len8 == count16);
74 REPORTER_ASSERT(reporter, (int)len8 == count32);
76 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs16, count8 * sizeof(uint16_t)));
77 REPORTER_ASSERT(reporter, !memcmp(glyphs8, glyphs32, count8 * sizeof(uint16_t)));
80 DEF_TEST(Unicode, reporter) {
81 test_uvs(reporter);
[all...]
H A DStreamTest.cpp26 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, argument
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());
44 static void test_filestreams(skiatest::Reporter* reporter, const char* tmpDir) { argument
52 ERRORF(reporter, "Failed to create tmp file %s\n", path.c_str());
63 REPORTER_ASSERT(reporter, stream.isValid());
64 test_loop_stream(reporter, &stream, s, 26, 100);
67 test_loop_stream(reporter, stream
81 TestWStream(skiatest::Reporter* reporter) argument
138 TestPackedUInt(skiatest::Reporter* reporter) argument
195 compare_peek_to_read(skiatest::Reporter* reporter, SkStream* stream, size_t bytesToPeek) argument
413 stream_copy_test(skiatest::Reporter* reporter, const void* srcData, size_t N, SkStream* stream) argument
[all...]
H A DCanvasStateTest.cpp40 OpenLibResult(skiatest::Reporter* reporter) { argument
43 REPORTER_ASSERT(reporter, fHandle != nullptr, "Failed to open library!");
63 DEF_TEST(CanvasState_test_complex_layers, reporter) {
82 REPORTER_ASSERT(reporter, sizeof(layerAlpha) == sizeof(flags));
87 OpenLibResult openLibResult(reporter);
95 REPORTER_ASSERT(reporter, drawFn);
123 REPORTER_ASSERT(reporter, state);
128 REPORTER_ASSERT(reporter, success);
146 REPORTER_ASSERT(reporter, bitmaps[0].computeByteSize() == bitmaps[1].computeByteSize());
147 REPORTER_ASSERT(reporter, !memcm
[all...]
H A DGrCCPRTest.cpp59 CCPRPathDrawer(GrContext* ctx, skiatest::Reporter* reporter) argument
66 ERRORF(reporter, "ccpr not enabled in GrContext for ccpr tests");
69 ERRORF(reporter, "failed to create GrRenderTargetContext for ccpr tests");
118 void run(skiatest::Reporter* reporter) { argument
134 ERRORF(reporter, "could not create mock context");
138 ERRORF(reporter, "mock context is not unique");
142 CCPRPathDrawer ccpr(fMockContext.get(), reporter);
149 this->onRun(reporter, ccpr);
155 virtual void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) = 0;
162 DEF_GPUTEST(name, reporter, /* option
253 run(skiatest::Reporter* reporter, GrContext* ctx) const argument
[all...]
H A DHSVRoundTripTest.cpp12 DEF_TEST(ColorToHSVRoundTrip, reporter) {
21 ERRORF(reporter, "HSV roundtrip mismatch!\n"
H A DPathOpsBoundsTest.cpp32 DEF_TEST(PathOpsBounds, reporter) {
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);
H A DPictureBBHTest.cpp32 void run(skiatest::Reporter* reporter) { argument
34 this->run(nullptr, reporter);
38 this->run(&RTreeFactory, reporter);
42 void run(SkBBHFactory* factory, skiatest::Reporter* reporter) { argument
52 REPORTER_ASSERT(reporter, SK_ColorGREEN == fResultBitmap.getColor(0, 0));
88 DEF_TEST(PictureBBH, reporter) {
91 emptyPictureTest.run(reporter);
94 emptyClipPictureTest.run(reporter);
H A DRegionTest.cpp18 #define TEST_NO_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, !rgn.intersects(rect))
19 #define TEST_INTERSECT(rgn, rect) REPORTER_ASSERT(reporter, rgn.intersects(rect))
20 #define TEST_NO_CONTAINS(rgn, rect) REPORTER_ASSERT(reporter, !rgn.contains(rect))
24 static void test_fromchrome(skiatest::Reporter* reporter) { argument
81 static void test_empties(skiatest::Reporter* reporter) { argument
85 REPORTER_ASSERT(reporter, empty.isEmpty());
86 REPORTER_ASSERT(reporter, !valid.isEmpty());
89 REPORTER_ASSERT(reporter, !empty.intersects(empty2));
90 REPORTER_ASSERT(reporter, !valid.intersects(empty));
93 REPORTER_ASSERT(reporter, !empt
142 test_contains_iter(skiatest::Reporter* reporter, const SkRegion& rgn) argument
153 contains_proc(skiatest::Reporter* reporter, const SkRegion& a, const SkRegion& b) argument
171 test_intersects_iter(skiatest::Reporter* reporter, const SkRegion& rgn) argument
182 intersects_proc(skiatest::Reporter* reporter, const SkRegion& a, const SkRegion& b) argument
192 test_proc(skiatest::Reporter* reporter, void (*proc)(skiatest::Reporter*, const SkRegion& a, const SkRegion&)) argument
[all...]
H A DGrTextureMipMapInvalidationTest.cpp20 DEF_GPUTEST_FOR_NULLGL_CONTEXT(GrTextureMipMapInvalidationTest, reporter, ctxInfo) {
39 REPORTER_ASSERT(reporter, !isMipped(surf1.get()));
47 REPORTER_ASSERT(reporter, isMipped(surf1.get()));
48 REPORTER_ASSERT(reporter, !mipsAreDirty(surf1.get()));
53 REPORTER_ASSERT(reporter, isMipped(surf1.get()));
54 REPORTER_ASSERT(reporter, mipsAreDirty(surf1.get()));
H A DTest.h76 #define REPORT_FAILURE(reporter, cond, message) \
77 reporter->reportFailedWithContext(skiatest::Failure(__FILE__, __LINE__, cond, message))
81 ReporterContext(Reporter* reporter, const SkString& message) : fReporter(reporter) { argument
122 DEF_TEST(TestName, reporter) {
124 REPORTER_ASSERT(reporter, x == 15);
126 REPORTER_ASSERT(reporter, x == 15, "x should be 15");
129 ERRORF(reporter, "x should be 15, but is %d", x);
193 #define DEF_TEST(name, reporter) \
196 void test_##name(skiatest::Reporter* reporter, cons
[all...]
H A DFontHostTest.cpp35 static void test_unitsPerEm(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { argument
48 REPORTER_ASSERT(reporter, tableUPEM == nativeUPEM);
54 static void test_countGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { argument
67 REPORTER_ASSERT(reporter, tableGlyphs == nativeGlyphs);
90 static void test_charsToGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { argument
110 REPORTER_ASSERT(reporter, paintGlyphIds[i] == faceGlyphIds[i], a.c_str());
115 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { argument
120 REPORTER_ASSERT(reporter, n == n2);
135 REPORTER_ASSERT(reporter, gKnownTableSizes[j].fSize == size);
141 static void test_fontstream(skiatest::Reporter* reporter) { argument
157 test_symbolfont(skiatest::Reporter* reporter) argument
173 test_tables(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) argument
216 test_tables(skiatest::Reporter* reporter) argument
244 test_advances(skiatest::Reporter* reporter) argument
[all...]
H A DPathOpsBuilderTest.cpp13 DEF_TEST(PathOpsBuilder, reporter) {
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, close
[all...]
H A DYUVTest.cpp16 static void codec_yuv(skiatest::Reporter* reporter, argument
24 REPORTER_ASSERT(reporter, codec);
32 REPORTER_ASSERT(reporter, !success);
34 REPORTER_ASSERT(reporter, (expectedSizes == nullptr) == !success);
38 REPORTER_ASSERT(reporter,
40 REPORTER_ASSERT(reporter, info.fWidthBytes[SkYUVSizeInfo::kY] ==
42 REPORTER_ASSERT(reporter, info.fWidthBytes[SkYUVSizeInfo::kU] ==
44 REPORTER_ASSERT(reporter, info.fWidthBytes[SkYUVSizeInfo::kV] ==
48 REPORTER_ASSERT(reporter,
50 REPORTER_ASSERT(reporter, inf
[all...]
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/validator/chunks/
H A DCommonValidators.java24 (n, reporter) -> reporter.report(n.getExtendedTypes(1), "A class cannot extend more than one other class.")
28 (n, reporter) -> reporter.report(n.getImplementedTypes(0), "An interface cannot implement other interfaces.")
30 new SingleNodeTypeValidator<>(ClassOrInterfaceDeclaration.class, (n, reporter) -> {
34 reporter.report(mem, "An interface cannot have initializers.");
40 new SingleNodeTypeValidator<>(AssignExpr.class, (n, reporter) -> {
51 reporter.report(n.getTarget(), "Illegal left hand side of an assignment.");
/external/skia/tests/
H A DCanvasStateTest.cpp40 OpenLibResult(skiatest::Reporter* reporter) { argument
43 REPORTER_ASSERT(reporter, fHandle != nullptr, "Failed to open library!");
63 DEF_TEST(CanvasState_test_complex_layers, reporter) {
82 REPORTER_ASSERT(reporter, sizeof(layerAlpha) == sizeof(flags));
87 OpenLibResult openLibResult(reporter);
95 REPORTER_ASSERT(reporter, drawFn);
123 REPORTER_ASSERT(reporter, state);
128 REPORTER_ASSERT(reporter, success);
146 REPORTER_ASSERT(reporter, bitmaps[0].computeByteSize() == bitmaps[1].computeByteSize());
147 REPORTER_ASSERT(reporter, !memcm
[all...]
H A DGrCCPRTest.cpp59 CCPRPathDrawer(GrContext* ctx, skiatest::Reporter* reporter) argument
66 ERRORF(reporter, "ccpr not enabled in GrContext for ccpr tests");
69 ERRORF(reporter, "failed to create GrRenderTargetContext for ccpr tests");
118 void run(skiatest::Reporter* reporter) { argument
135 ERRORF(reporter, "could not create mock context");
139 ERRORF(reporter, "mock context is not unique");
143 CCPRPathDrawer ccpr(fMockContext.get(), reporter);
150 this->onRun(reporter, ccpr);
156 virtual void onRun(skiatest::Reporter* reporter, CCPRPathDrawer& ccpr) = 0;
163 DEF_GPUTEST(name, reporter, /* option
254 run(skiatest::Reporter* reporter, GrContext* ctx) const argument
[all...]
H A DHSVRoundTripTest.cpp12 DEF_TEST(ColorToHSVRoundTrip, reporter) {
21 ERRORF(reporter, "HSV roundtrip mismatch!\n"
H A DPathOpsBoundsTest.cpp32 DEF_TEST(PathOpsBounds, reporter) {
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);
H A DPictureBBHTest.cpp32 void run(skiatest::Reporter* reporter) { argument
34 this->run(nullptr, reporter);
38 this->run(&RTreeFactory, reporter);
42 void run(SkBBHFactory* factory, skiatest::Reporter* reporter) { argument
52 REPORTER_ASSERT(reporter, SK_ColorGREEN == fResultBitmap.getColor(0, 0));
88 DEF_TEST(PictureBBH, reporter) {
91 emptyPictureTest.run(reporter);
94 emptyClipPictureTest.run(reporter);
H A DGrTextureMipMapInvalidationTest.cpp20 DEF_GPUTEST_FOR_NULLGL_CONTEXT(GrTextureMipMapInvalidationTest, reporter, ctxInfo) {
39 REPORTER_ASSERT(reporter, !isMipped(surf1.get()));
47 REPORTER_ASSERT(reporter, isMipped(surf1.get()));
48 REPORTER_ASSERT(reporter, !mipsAreDirty(surf1.get()));
53 REPORTER_ASSERT(reporter, isMipped(surf1.get()));
54 REPORTER_ASSERT(reporter, mipsAreDirty(surf1.get()));
H A DTest.h76 #define REPORT_FAILURE(reporter, cond, message) \
77 reporter->reportFailedWithContext(skiatest::Failure(__FILE__, __LINE__, cond, message))
81 ReporterContext(Reporter* reporter, const SkString& message) : fReporter(reporter) { argument
122 DEF_TEST(TestName, reporter) {
124 REPORTER_ASSERT(reporter, x == 15);
126 REPORTER_ASSERT(reporter, x == 15, "x should be 15");
129 ERRORF(reporter, "x should be 15, but is %d", x);
193 #define DEF_TEST(name, reporter) \
196 void test_##name(skiatest::Reporter* reporter, cons
[all...]
H A DFontHostTest.cpp35 static void test_unitsPerEm(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { argument
48 REPORTER_ASSERT(reporter, tableUPEM == nativeUPEM);
54 static void test_countGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { argument
67 REPORTER_ASSERT(reporter, tableGlyphs == nativeGlyphs);
90 static void test_charsToGlyphs(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) { argument
110 REPORTER_ASSERT(reporter, paintGlyphIds[i] == faceGlyphIds[i], a.c_str());
115 static void test_fontstream(skiatest::Reporter* reporter, SkStream* stream, int ttcIndex) { argument
120 REPORTER_ASSERT(reporter, n == n2);
135 REPORTER_ASSERT(reporter, gKnownTableSizes[j].fSize == size);
141 static void test_fontstream(skiatest::Reporter* reporter) { argument
157 test_symbolfont(skiatest::Reporter* reporter) argument
173 test_tables(skiatest::Reporter* reporter, const sk_sp<SkTypeface>& face) argument
216 test_tables(skiatest::Reporter* reporter) argument
244 test_advances(skiatest::Reporter* reporter) argument
[all...]
H A DPathOpsBuilderTest.cpp13 DEF_TEST(PathOpsBuilder, reporter) {
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, close
[all...]
H A DAnnotationTest.cpp37 DEF_TEST(Annotation_NoDraw, reporter) {
47 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
49 REPORTER_ASSERT(reporter, 0 == *bm.getAddr32(0, 0));
52 DEF_TEST(Annotation_PdfLink, reporter) {
53 REQUIRE_PDF_DOCUMENT(Annotation_PdfLink, reporter);
57 REPORTER_ASSERT(reporter, canvas);
68 REPORTER_ASSERT(reporter, ContainsString(rawOutput, out->size(), "/Annots "));
71 DEF_TEST(Annotation_PdfDefineNamedDestination, reporter) {
72 REQUIRE_PDF_DOCUMENT(Annotation_PdfNamedDestination, reporter);
76 REPORTER_ASSERT(reporter, canva
[all...]
H A DYUVTest.cpp16 static void codec_yuv(skiatest::Reporter* reporter, argument
24 REPORTER_ASSERT(reporter, codec);
32 REPORTER_ASSERT(reporter, !success);
34 REPORTER_ASSERT(reporter, (expectedSizes == nullptr) == !success);
38 REPORTER_ASSERT(reporter,
40 REPORTER_ASSERT(reporter, info.fWidthBytes[SkYUVSizeInfo::kY] ==
42 REPORTER_ASSERT(reporter, info.fWidthBytes[SkYUVSizeInfo::kU] ==
44 REPORTER_ASSERT(reporter, info.fWidthBytes[SkYUVSizeInfo::kV] ==
48 REPORTER_ASSERT(reporter,
50 REPORTER_ASSERT(reporter, inf
[all...]

Completed in 4070 milliseconds

1234567891011>>