/external/skia/tests/ |
FontObjTest.cpp | 25 static void test_cachedfont(skiatest::Reporter* reporter, const SkPaint& paint) { 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)) [all...] |
GpuSampleLocationsTest.cpp | 93 void assert_equal(skiatest::Reporter* reporter, const SamplePattern& pattern, 97 REPORT_FAILURE(reporter, "", SkString("Sample pattern has wrong number of samples.")); 106 REPORT_FAILURE(reporter, "", SkString("Sample pattern has wrong sample location.")); 112 void test_sampleLocations(skiatest::Reporter* reporter, TestSampleLocationsInterface* testInterface, 139 assert_equal(reporter, kTestPatterns[i], 187 DEF_GPUTEST(GLSampleLocations, reporter, /*factory*/) { 196 test_sampleLocations(reporter, &testInterface, ctx.get());
|
ImageCacheTest.cpp | 45 static void test_cache(skiatest::Reporter* reporter, SkResourceCache& cache, bool testPurge) { 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); 76 static void test_cache_purge_shared_id(skiatest::Reporter* reporter, SkResourceCache& cache) { 87 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); 88 REPORTER_ASSERT(reporter, value == i) [all...] |
ImageIsOpaqueTest.cpp | 22 static void test_flatten(skiatest::Reporter* reporter, const SkImageInfo& info) { 37 REPORTER_ASSERT(reporter, rb.offset() == wb.bytesWritten()); 39 REPORTER_ASSERT(reporter, info == info2); 42 DEF_TEST(ImageInfo_flattening, reporter) { 70 test_flatten(reporter, info); 76 static void check_isopaque(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, 79 REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque); 82 DEF_TEST(ImageIsOpaqueTest, reporter) { [all...] |
PaintImageFilterTest.cpp | 14 static void test_unscaled(skiatest::Reporter* reporter) { 55 REPORTER_ASSERT(reporter, *filterPtr == *paintPtr); 60 static void test_scaled(skiatest::Reporter* reporter) { 103 REPORTER_ASSERT(reporter, *filterPtr == *paintPtr); 108 DEF_TEST(PaintImageFilter, reporter) { 109 test_unscaled(reporter); 110 test_scaled(reporter);
|
PathCoverageTest.cpp | 112 skiatest::Reporter* reporter) { 139 ERRORF(reporter, "Curve from %.2f %.2f through %.2f %.2f to " 152 static void TestQuadPointCount(skiatest::Reporter* reporter) { 153 one_d_pe(gXY, SK_ARRAY_COUNT(gXY), reporter); 154 one_d_pe(gSawtooth, SK_ARRAY_COUNT(gSawtooth), reporter); 155 one_d_pe(gOvalish, SK_ARRAY_COUNT(gOvalish), reporter); 156 one_d_pe(gSharpSawtooth, SK_ARRAY_COUNT(gSharpSawtooth), reporter); 157 one_d_pe(gRibbon, SK_ARRAY_COUNT(gRibbon), reporter); [all...] |
SVGDeviceTest.cpp | 21 void check_text_node(skiatest::Reporter* reporter, 28 ERRORF(reporter, "root element not found."); 34 ERRORF(reporter, "<text> element not found."); 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) [all...] |
ColorFilterTest.cpp | 39 static void test_composecolorfilter_limit(skiatest::Reporter* reporter) { 47 REPORTER_ASSERT(reporter, i > 2); // we need to have succeeded at least once! 51 REPORTER_ASSERT(reporter, false); // we never saw a nullptr :( 56 DEF_TEST(ColorFilter, reporter) { 73 REPORTER_ASSERT(reporter, cf); 83 REPORTER_ASSERT(reporter, cf->asColorMode(&c, (SkBlendMode*)&m)); 96 REPORTER_ASSERT(reporter, c == expectedColor); 97 REPORTER_ASSERT(reporter, m == expectedMode); 101 REPORTER_ASSERT(reporter, cf2) [all...] |
PathOpsConicQuadIntersectionTest.cpp | 27 static void conicQuadIntersection(skiatest::Reporter* reporter, int index) { 42 REPORTER_ASSERT(reporter, 0); 46 REPORTER_ASSERT(reporter, 0); 59 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 61 reporter->bumpTestCount(); 64 DEF_TEST(PathOpsConicQuadIntersection, reporter) { 66 conicQuadIntersection(reporter, index); 67 reporter->bumpTestCount(); 71 DEF_TEST(PathOpsConicQuadIntersectionOneOff, reporter) { [all...] |
PathOpsCubicConicIntersectionTest.cpp | 31 static void cubicConicIntersection(skiatest::Reporter* reporter, int index) { 46 REPORTER_ASSERT(reporter, 0); 50 REPORTER_ASSERT(reporter, 0); 63 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 65 reporter->bumpTestCount(); 68 DEF_TEST(PathOpsCubicConicIntersection, reporter) { 70 cubicConicIntersection(reporter, index); 71 reporter->bumpTestCount(); 75 DEF_TEST(PathOpsCubicConicIntersectionOneOff, reporter) { [all...] |
PathOpsCubicQuadIntersectionTest.cpp | 54 static void cubicQuadIntersection(skiatest::Reporter* reporter, int index) { 70 REPORTER_ASSERT(reporter, 0); 74 REPORTER_ASSERT(reporter, 0); 87 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 89 reporter->bumpTestCount(); 92 DEF_TEST(PathOpsCubicQuadIntersection, reporter) { 94 cubicQuadIntersection(reporter, index); 95 reporter->bumpTestCount(); 99 DEF_TEST(PathOpsCubicQuadIntersectionOneOff, reporter) { [all...] |
PathOpsThreeWayTest.cpp | 42 static void testSetTest(skiatest::Reporter* reporter, int index) { 74 DEF_TEST(PathOpsThreeWay, reporter) { 76 testSetTest(reporter, index); 77 reporter->bumpTestCount(); 81 DEF_TEST(PathOpsThreeWayOneOff, reporter) { 83 testSetTest(reporter, index);
|
SpecialSurfaceTest.cpp | 34 skiatest::Reporter* reporter, 38 REPORTER_ASSERT(reporter, offset == surfSubset.fLeft); 39 REPORTER_ASSERT(reporter, offset == surfSubset.fTop); 40 REPORTER_ASSERT(reporter, kSmallerSize == surfSubset.width()); 41 REPORTER_ASSERT(reporter, kSmallerSize == surfSubset.height()); 49 REPORTER_ASSERT(reporter, img); 52 REPORTER_ASSERT(reporter, surfSubset == imgSubset); 55 REPORTER_ASSERT(reporter, !surf->getCanvas()); 58 DEF_TEST(SpecialSurface_Raster, reporter) { [all...] |
UtilsTest.cpp | 28 static void test_autounref(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, obj.unique()); 33 REPORTER_ASSERT(reporter, &obj == tmp.get()); 34 REPORTER_ASSERT(reporter, obj.unique()); 36 REPORTER_ASSERT(reporter, &obj == tmp.release()); 37 REPORTER_ASSERT(reporter, obj.unique()); 38 REPORTER_ASSERT(reporter, nullptr == tmp.release()); 39 REPORTER_ASSERT(reporter, nullptr == tmp.get()); 42 REPORTER_ASSERT(reporter, !obj.unique()) [all...] |
EmptyPathTest.cpp | 15 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, 49 ERRORF(reporter, "%s style[%d] cap[%d] join[%d] antialias[%d]" 63 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw, 96 drawAndTest(reporter, path, paint, shouldDraw); 98 drawAndTest(reporter, path, paint, shouldDraw); 125 static void test_emptydrawing(skiatest::Reporter* reporter) { 149 iter_paint(reporter, path, shouldDraw, allowCaps ? kDrawCaps : kDontDrawCaps) [all...] |
FontMgrAndroidParserTest.cpp | 40 skiatest::Reporter* reporter) { 41 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); 42 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); 43 REPORTER_ASSERT(reporter, 45 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); 52 REPORTER_ASSERT(reporter, isALPHA(c) || isDIGIT(c) || '-' == c); 63 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() && 107 template <int N, typename T> static double test_parse_fixed_r(skiatest::Reporter* reporter, [all...] |
LayerDrawLooperTest.cpp | 44 static void test_frontToBack(skiatest::Reporter* reporter) { 65 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 66 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc); 68 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX()); 69 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY()); 73 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 74 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver); 76 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX()); 77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY()) [all...] |
QuickRejectTest.cpp | 61 static void test_drawBitmap(skiatest::Reporter* reporter) { 74 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 78 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 82 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 86 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 94 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 97 static void test_layers(skiatest::Reporter* reporter) { 101 REPORTER_ASSERT(reporter, false == canvas.quickReject(r)) [all...] |
SerializationTest.cpp | 35 static void TestAlignment(T* testObj, skiatest::Reporter* reporter) { 39 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); 41 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); 155 static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) { 159 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); 170 REPORTER_ASSERT(reporter, !buffer.isValid()); 179 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); 182 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten) 363 serialize_and_compare_typeface(std::move(typeface), "A!", reporter); local 379 serialize_and_compare_typeface(std::move(typeface), "abc", reporter); local [all...] |
/libcore/dalvik/test-rules/src/main/java/dalvik/system/ |
CloseGuardSupport.java | 234 CloseGuard.Reporter oldReporter = CloseGuard.getReporter(); 236 CollectingReporter reporter = new CollectingReporter(); 237 CloseGuard.setReporter(reporter); 248 reporter.assertUnreleasedResources(expectedCount); 255 * A {@link CloseGuard.Reporter} that collects any reports about unreleased resources. 257 private static class CollectingReporter implements CloseGuard.Reporter {
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/ |
Main.java | 22 import com.google.currysrc.api.process.Reporter; 137 private final Reporter reporter; field in class:Main.CompilationUnitHandler 151 this.reporter = new ReporterImpl(reportWriter); 249 @Override public Reporter reporter() { method in class:Main.CompilationUnitHandler 250 return reporter; 310 private class ReporterImpl implements Reporter {
|
/external/mockito/src/main/java/org/mockito/internal/ |
InOrderImpl.java | 20 import static org.mockito.internal.exceptions.Reporter.inOrderRequiresFamiliarMock;
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/ |
ConstructorInjection.java | 13 import static org.mockito.internal.exceptions.Reporter.fieldInitialisationThrewException;
|
/external/mockito/src/main/java/org/mockito/internal/handler/ |
InvocationNotifierHandler.java | 7 import static org.mockito.internal.exceptions.Reporter.invocationListenerThrewException;
|
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/ |
TranslateJcite.java | 20 import com.google.currysrc.api.process.Reporter; 66 protected String processComment(Reporter reporter, Comment commentNode, String commentText) { 123 protected boolean visitTagElement(Reporter reporter, ASTRewrite rewrite, TagElement tagNode) {
|