/external/skia/tests/ |
RecordTestUtils.h | 31 static const T* assert_type(skiatest::Reporter* r, const SkRecord& record, int index) {
|
RoundRectTest.cpp | 12 static void test_tricky_radii(skiatest::Reporter* reporter) { 31 REPORTER_ASSERT(reporter, (double) rr.radii(SkRRect::kUpperRight_Corner).fY + 37 static void test_empty_crbug_458524(skiatest::Reporter* reporter) { 47 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == other.getType()); 52 static void test_empty(skiatest::Reporter* reporter) { 72 REPORTER_ASSERT(reporter, !r.isEmpty()); 75 REPORTER_ASSERT(reporter, !r.isEmpty()) [all...] |
ShadowUtilsTest.cpp | 15 void tessellate_shadow(skiatest::Reporter* reporter, const SkPath& path, const SkMatrix& ctm, 24 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 29 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 35 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 41 ERRORF(reporter, "Expected shadow tessellation to %s but it did not.", 46 DEF_TEST(ShadowUtils, reporter) { 52 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), (bool)SK_SUPPORT_GPU); 57 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), false); 64 tessellate_shadow(reporter, path, canvas.getTotalMatrix(), false) [all...] |
SortTest.cpp | 26 static void check_sort(skiatest::Reporter* reporter, const char label[], 30 ERRORF(reporter, "%sSort [%d] failed %d %d", 36 DEF_TEST(Sort, reporter) { 56 check_sort(reporter, "Heap", workingArray, sortedArray, count); 60 check_sort(reporter, "Quick", workingArray, sortedArray, count);
|
DrawBitmapRectTest.cpp | 33 static void test_faulty_pixelref(skiatest::Reporter* reporter) { 85 static void test_treatAsSprite(skiatest::Reporter* reporter) { 100 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, noaaPaint)); 109 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, noaaPaint)); 110 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, aaPaint)); 118 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, aaPaint)); 120 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, aaPaint)); 124 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, aaPaint)) [all...] |
DrawPathTest.cpp | 16 static void test_big_aa_rect(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, 0 == pixel[0]); 32 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 45 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 47 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 277 static void test_infinite_dash(skiatest::Reporter* reporter) { 292 REPORTER_ASSERT(reporter, true); 297 static void test_crbug_165432(skiatest::Reporter* reporter) [all...] |
AAClipTest.cpp | 133 static void test_rgn(skiatest::Reporter* reporter) { 138 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 146 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 154 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 181 static void test_path_bounds(skiatest::Reporter* reporter) { 188 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); 190 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); 202 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()) [all...] |
StreamTest.cpp | 26 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, 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) { 52 ERRORF(reporter, "Failed to create tmp file %s\n", path.c_str()); 63 REPORTER_ASSERT(reporter, stream.isValid()) [all...] |
PathTest.cpp | 32 static void test_add_rrect(skiatest::Reporter* reporter, const SkRect& bounds, 36 REPORTER_ASSERT(reporter, bounds == rrect.rect()); 41 REPORTER_ASSERT(reporter, bounds == path.getBounds()); 44 static void test_skbug_3469(skiatest::Reporter* reporter) { 49 REPORTER_ASSERT(reporter, !path.isConvex()); 52 static void test_skbug_3239(skiatest::Reporter* reporter) { 65 test_add_rrect(reporter, rectx, radii) [all...] |
SerializationTest.cpp | 34 static void TestAlignment(T* testObj, skiatest::Reporter* reporter) { 38 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); 40 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); 154 static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) { 158 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); 169 REPORTER_ASSERT(reporter, !buffer.isValid()); 178 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); 181 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten) 377 serialize_and_compare_typeface(std::move(typeface), "A!", reporter); local 393 serialize_and_compare_typeface(std::move(typeface), "abc", reporter); local [all...] |
PathOpsSkpTest.cpp | 11 static void skpcheeseandburger_com225(skiatest::Reporter* reporter, const char* filename) { 369 testPathOp(reporter, path, pathB, kIntersect_SkPathOp, filename); 372 static void skpeverytechpro_blogspot_com100(skiatest::Reporter* reporter, const char* filename) { 403 testPathOp(reporter, path, pathB, kIntersect_SkPathOp, filename); 406 static void skpflite_com41(skiatest::Reporter* reporter, const char* filename) { 426 testPathOp(reporter, path, pathB, kIntersect_SkPathOp, filename); 429 static void skpilkoora_com37(skiatest::Reporter* reporter, const char* filename) [all...] |
CachedDecodingPixelRefTest.cpp | 35 TestImageGenerator(TestType type, skiatest::Reporter* reporter, 37 : INHERITED(GetMyInfo(colorType)), fType(type), fReporter(reporter) { 90 skiatest::Reporter* const fReporter;
|
DeviceLooperTest.cpp | 40 static void test_simple(skiatest::Reporter* reporter) { 52 REPORTER_ASSERT(reporter, valid); 54 REPORTER_ASSERT(reporter, looper.getPixmap().width() == pmap.width()); 55 REPORTER_ASSERT(reporter, looper.getPixmap().height() == pmap.height()); 56 REPORTER_ASSERT(reporter, equal(looper.getRC(), rc)); 58 REPORTER_ASSERT(reporter, !looper.next()); 66 REPORTER_ASSERT(reporter, !looper.next()); 95 static void test_complex(skiatest::Reporter* reporter) { [all...] |
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 | 109 void assert_equal(skiatest::Reporter* reporter, const SamplePattern& pattern, 113 REPORT_FAILURE(reporter, "", SkString("Sample pattern has wrong number of samples.")); 122 REPORT_FAILURE(reporter, "", SkString("Sample pattern has wrong sample location.")); 128 void test_sampleLocations(skiatest::Reporter* reporter, TestSampleLocationsInterface* testInterface, 154 assert_equal(reporter, kTestPatterns[i], 202 DEF_GPUTEST(GLSampleLocations, reporter, /*factory*/) { 205 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 | 21 static void test_flatten(skiatest::Reporter* reporter, const SkImageInfo& info) { 36 REPORTER_ASSERT(reporter, rb.offset() == wb.bytesWritten()); 38 REPORTER_ASSERT(reporter, info == info2); 41 DEF_TEST(ImageInfo_flattening, reporter) { 69 test_flatten(reporter, info); 75 static void check_isopaque(skiatest::Reporter* reporter, const sk_sp<SkSurface>& surface, 78 REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque); 81 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...] |
/external/autotest/frontend/health/ |
passing_experimental_functional_test.py | 62 self.mox.StubOutClassWithMocks(reporting, 'Reporter') 106 reporter1 = reporting.Reporter() 112 reporter2 = reporting.Reporter()
|
/external/google-breakpad/src/tools/mac/dump_syms/ |
macho_dump.cc | 133 mach_o::FatReader::Reporter fat_reporter(filename); 163 mach_o::Reader::Reporter reporter(name.str()); 164 mach_o::Reader reader(&reporter);
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/ |
ReplaceSelectedJavadoc.java | 20 import com.google.currysrc.api.process.Reporter; 51 @Override protected String processComment(Reporter reporter, Comment commentNode, 66 reporter.info(bodyDeclaration, "Replaced comment text");
|
/external/mockito/src/main/java/org/mockito/internal/configuration/injection/ |
PropertyAndSetterInjection.java | 8 import static org.mockito.internal.exceptions.Reporter.cannotInitializeForInjectMocksAnnotation; 9 import static org.mockito.internal.exceptions.Reporter.fieldInitialisationThrewException;
|
/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 {
|