/external/skia/tests/ |
RenderTargetContextTest.cpp | 28 static void check_is_wrapped_status(skiatest::Reporter* reporter, 31 REPORTER_ASSERT(reporter, rtCtx->isWrapped_ForTesting() == wrappedExpectation); 34 REPORTER_ASSERT(reporter, tProxy); 36 REPORTER_ASSERT(reporter, tProxy->isWrapped_ForTesting() == wrappedExpectation); 39 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RenderTargetContextTest, reporter, ctxInfo) { 47 check_is_wrapped_status(reporter, rtCtx.get(), false); 50 REPORTER_ASSERT(reporter, tProxy); 52 REPORTER_ASSERT(reporter, tProxy->instantiate(ctx->resourceProvider())); 54 check_is_wrapped_status(reporter, rtCtx.get(), true) [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);
|
StrokeTest.cpp | 22 static void test_strokecubic(skiatest::Reporter* reporter) { 51 static void test_strokerect(skiatest::Reporter* reporter) { 74 REPORTER_ASSERT(reporter, equal(outer, fillPath.getBounds())); 78 REPORTER_ASSERT(reporter, fillPath.isNestedFillRects(nested) == isMiter); 82 REPORTER_ASSERT(reporter, equal(nested[0], outer)); 83 REPORTER_ASSERT(reporter, equal(nested[1], inner)); 88 static void test_strokerec_equality(skiatest::Reporter* reporter) { [all...] |
AAClipTest.cpp | 144 static void test_rgn(skiatest::Reporter* reporter) { 149 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 157 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 165 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 192 static void test_path_bounds(skiatest::Reporter* reporter) { 199 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); 201 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); 213 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()) [all...] |
DrawPathTest.cpp | 16 static void test_big_aa_rect(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, 0 == pixel[0]); 32 REPORTER_ASSERT(reporter, false, "readPixels failed"); 45 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 47 REPORTER_ASSERT(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...] |
MathTest.cpp | 18 static void test_clz(skiatest::Reporter* reporter) { 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); 36 static void test_quick_div(skiatest::Reporter* reporter) { 47 REPORTER_ASSERT(reporter, table[i] == gFDot6INVERSE[i + kInverseTableSize]) [all...] |
RegionTest.cpp | 18 #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) { 81 static void test_empties(skiatest::Reporter* reporter) { 85 REPORTER_ASSERT(reporter, empty.isEmpty()); 86 REPORTER_ASSERT(reporter, !valid.isEmpty()); 89 REPORTER_ASSERT(reporter, !empty.intersects(empty2)) [all...] |
PathTest.cpp | 34 static void test_add_rrect(skiatest::Reporter* reporter, const SkRect& bounds, 38 REPORTER_ASSERT(reporter, bounds == rrect.rect()); 43 REPORTER_ASSERT(reporter, bounds == path.getBounds()); 46 static void test_skbug_3469(skiatest::Reporter* reporter) { 51 REPORTER_ASSERT(reporter, !path.isConvex()); 54 static void test_skbug_3239(skiatest::Reporter* reporter) { 67 test_add_rrect(reporter, rectx, radii) [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...] |
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...] |
/external/skqp/tests/ |
DiscardableMemoryTest.cpp | 17 static void test_dm(skiatest::Reporter* reporter, 20 REPORTER_ASSERT(reporter, dm); 25 REPORTER_ASSERT(reporter, ptr); 33 REPORTER_ASSERT(reporter, relockSuccess); 39 REPORTER_ASSERT(reporter, ptr); 43 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, kTestString, kTestStringLength)); 47 DEF_TEST(DiscardableMemory_global, reporter) { 51 test_dm(reporter, dm.get(), false); 54 DEF_TEST(DiscardableMemory_nonglobal, reporter) { [all...] |
DrawBitmapRectTest.cpp | 45 static void test_treatAsSprite(skiatest::Reporter* reporter) { 60 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, noaaPaint)); 69 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, noaaPaint)); 70 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, aaPaint)); 78 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, aaPaint)); 80 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, aaPaint)); 84 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, aaPaint)); 86 REPORTER_ASSERT(reporter, SkTreatAsSprite(mat, size, aaPaint)); 91 REPORTER_ASSERT(reporter, !SkTreatAsSprite(mat, size, noaaPaint)) [all...] |
PathOpsExtendedTest.cpp | 321 int comparePaths(skiatest::Reporter* reporter, const char* filename, const SkPath& one, 342 SkDebugf("static void %s_%s(skiatest::Reporter* reporter, const char* filename) {\n", 348 SkDebugf(" testPathOp(reporter, path, pathB, %s, filename);\n", opStrs[shapeOp]); 355 static int comparePaths(skiatest::Reporter* reporter, const char* testName, const SkPath& one, 364 REPORTER_ASSERT(reporter, 0); 375 REPORTER_ASSERT(reporter, 0); 381 // Default values for when reporter->verbose() is false [all...] |
RecordTestUtils.h | 31 static const T* assert_type(skiatest::Reporter* r, const SkRecord& record, int index) {
|
RenderTargetContextTest.cpp | 28 static void check_is_wrapped_status(skiatest::Reporter* reporter, 31 REPORTER_ASSERT(reporter, rtCtx->isWrapped_ForTesting() == wrappedExpectation); 34 REPORTER_ASSERT(reporter, tProxy); 36 REPORTER_ASSERT(reporter, tProxy->isWrapped_ForTesting() == wrappedExpectation); 39 DEF_GPUTEST_FOR_RENDERING_CONTEXTS(RenderTargetContextTest, reporter, ctxInfo) { 47 check_is_wrapped_status(reporter, rtCtx.get(), false); 50 REPORTER_ASSERT(reporter, tProxy); 52 REPORTER_ASSERT(reporter, tProxy->instantiate(ctx->resourceProvider())); 54 check_is_wrapped_status(reporter, rtCtx.get(), true) [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);
|
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...] |
DrawPathTest.cpp | 16 static void test_big_aa_rect(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, 0 == pixel[0]); 32 REPORTER_ASSERT(reporter, false, "readPixels failed"); 45 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 47 REPORTER_ASSERT(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...] |
MathTest.cpp | 18 static void test_clz(skiatest::Reporter* reporter) { 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); 36 static void test_quick_div(skiatest::Reporter* reporter) { 47 REPORTER_ASSERT(reporter, table[i] == gFDot6INVERSE[i + kInverseTableSize]) [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 | 34 static void test_add_rrect(skiatest::Reporter* reporter, const SkRect& bounds, 38 REPORTER_ASSERT(reporter, bounds == rrect.rect()); 43 REPORTER_ASSERT(reporter, bounds == path.getBounds()); 46 static void test_skbug_3469(skiatest::Reporter* reporter) { 51 REPORTER_ASSERT(reporter, !path.isConvex()); 54 static void test_skbug_3239(skiatest::Reporter* reporter) { 67 test_add_rrect(reporter, rectx, radii) [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...] |
/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/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;
|