/external/mockito/src/org/mockito/internal/progress/ |
H A D | MockingProgressImpl.java | 22 private final Reporter reporter = new Reporter(); field in class:MockingProgressImpl 75 reporter.unfinishedStubbing(temp); 87 reporter.unfinishedVerificationException(location);
|
/external/skia/dm/ |
H A D | DM.cpp | 99 DM::Reporter* reporter, 103 tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, gms[i], ## __VA_ARGS__))); \ 126 DM::Reporter* reporter, 130 tasks->add(SkNEW_ARGS(DM::type, (name, reporter, tasks, benches[i], ## __VA_ARGS__))); \ 152 DM::Reporter* reporter, 157 tasks->add(SkNEW_ARGS(DM::GpuTestTask, (reporter, tasks, tests[i]))); 159 tasks->add(SkNEW_ARGS(DM::CpuTestTask, (reporter, tasks, tests[i]))); 164 static void kick_off_skps(DM::Reporter* reporter, DM::TaskRunner* tasks) { argument 189 tasks->add(SkNEW_ARGS(DM::SKPTask, (reporter, tasks, pic->clone(), filename))); 190 tasks->add(SkNEW_ARGS(DM::PDFTask, (reporter, task 96 kick_off_gms(const SkTDArray<GMRegistry::Factory>& gms, const SkTArray<SkString>& configs, const DM::Expectations& expectations, DM::Reporter* reporter, DM::TaskRunner* tasks) argument 124 kick_off_benches(const SkTDArray<BenchRegistry::Factory>& benches, const SkTArray<SkString>& configs, DM::Reporter* reporter, DM::TaskRunner* tasks) argument 151 kick_off_tests(const SkTDArray<TestRegistry::Factory>& tests, DM::Reporter* reporter, DM::TaskRunner* tasks) argument 262 DM::Reporter reporter; local [all...] |
/external/skia/tests/ |
H A D | BBoxHierarchyTest.cpp | 75 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], argument 81 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 86 skiatest::Reporter* reporter) { 89 REPORTER_ASSERT(reporter, NULL != tree); 120 run_queries(reporter, rand, rects, *tree); 121 REPORTER_ASSERT(reporter, NUM_RECTS == tree->getCount()); 122 REPORTER_ASSERT(reporter, 126 REPORTER_ASSERT(reporter, 0 == tree->getCount()); 134 run_queries(reporter, rand, rects, *tree); 135 REPORTER_ASSERT(reporter, NUM_RECT 85 tree_test_main(SkBBoxHierarchy* tree, int minChildren, int maxChildren, skiatest::Reporter* reporter) argument [all...] |
H A D | CanvasStateTest.cpp | 18 static void test_complex_layers(skiatest::Reporter* reporter) { argument 38 REPORTER_ASSERT(reporter, sizeof(layerAlpha) == sizeof(flags)); 60 REPORTER_ASSERT(reporter, state); 62 REPORTER_ASSERT(reporter, tmpCanvas); 86 REPORTER_ASSERT(reporter, bitmaps[0].getSize() == bitmaps[1].getSize()); 87 REPORTER_ASSERT(reporter, !memcmp(bitmaps[0].getPixels(), 96 static void test_complex_clips(skiatest::Reporter* reporter) { argument 128 REPORTER_ASSERT(reporter, sizeof(clipOps) == sizeof(flags)); 149 REPORTER_ASSERT(reporter, state); 151 REPORTER_ASSERT(reporter, tmpCanva 190 test_draw_filters(skiatest::Reporter* reporter) argument 215 test_soft_clips(skiatest::Reporter* reporter) argument 234 test_saveLayer_clip(skiatest::Reporter* reporter) argument [all...] |
H A D | ClipCacheTest.cpp | 44 static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) { argument 84 REPORTER_ASSERT(reporter, screen == devStackBounds); 85 REPORTER_ASSERT(reporter, isIntersectionOfRects); 97 REPORTER_ASSERT(reporter, intScreen == devGrClipDataBound); 98 REPORTER_ASSERT(reporter, isIntersectionOfRects); 103 static void check_state(skiatest::Reporter* reporter, argument 108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID()); 110 REPORTER_ASSERT(reporter, mask == cache.getLastMask()); 114 REPORTER_ASSERT(reporter, bound == cacheBound); 117 static void check_empty_state(skiatest::Reporter* reporter, argument 133 test_cache(skiatest::Reporter* reporter, GrContext* context) argument [all...] |
H A D | DeviceLooperTest.cpp | 40 static void test_simple(skiatest::Reporter* reporter) { argument 52 REPORTER_ASSERT(reporter, valid); 54 REPORTER_ASSERT(reporter, looper.getBitmap().width() == bitmap.width()); 55 REPORTER_ASSERT(reporter, looper.getBitmap().height() == bitmap.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) { argument 130 REPORTER_ASSERT(reporter, !looper.getRC().isEmpty()); 136 DEF_TEST(DeviceLooper, reporter) { [all...] |
H A D | DrawPathTest.cpp | 15 static void test_big_aa_rect(skiatest::Reporter* reporter) { argument 29 REPORTER_ASSERT(reporter, 0 == pixel[0]); 31 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 44 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]); 46 REPORTER_ASSERT_MESSAGE(reporter, false, "readPixels failed"); 240 static void test_infinite_dash(skiatest::Reporter* reporter) { argument 255 REPORTER_ASSERT(reporter, true); 260 static void test_crbug_165432(skiatest::Reporter* reporter) { argument 274 REPORTER_ASSERT(reporter, !dash->filterPath(&filteredPath, path, &rec, NULL)); 275 REPORTER_ASSERT(reporter, filteredPat [all...] |
H A D | EmptyPathTest.cpp | 14 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, argument 48 ERRORF(reporter, "%s style[%d] cap[%d] join[%d] antialias[%d]" 57 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw) { argument 84 drawAndTest(reporter, path, paint, shouldDraw); 86 drawAndTest(reporter, path, paint, shouldDraw); 113 static void test_emptydrawing(skiatest::Reporter* reporter) { argument 133 iter_paint(reporter, path, shouldDraw); 139 DEF_TEST(EmptyPath, reporter) { 140 test_emptydrawing(reporter);
|
H A D | FontNamesTest.cpp | 112 static void test_synthetic(skiatest::Reporter* reporter, bool verbose) { argument 118 REPORTER_ASSERT_MESSAGE(reporter, 123 REPORTER_ASSERT_MESSAGE(reporter, 133 REPORTER_ASSERT_MESSAGE(reporter, nameIndex == test[i].nameCount, 136 REPORTER_ASSERT_MESSAGE(reporter, !iter.next(record), 142 static void test_systemfonts(skiatest::Reporter* reporter, bool verbose) { argument 190 REPORTER_ASSERT_MESSAGE(reporter, 202 REPORTER_ASSERT_MESSAGE(reporter, 220 DEF_TEST(FontNames, reporter) { 221 test_synthetic(reporter, FLAGS_verboseFontName [all...] |
H A D | FrontBufferedStreamTest.cpp | 14 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream, argument 20 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd()); 21 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0); 24 static void test_rewind(skiatest::Reporter* reporter, argument 27 REPORTER_ASSERT(reporter, success == shouldSucceed); 34 static void test_hasLength(skiatest::Reporter* reporter, argument 38 REPORTER_ASSERT(reporter, bufferedStream.hasLength()); 40 REPORTER_ASSERT(reporter, !bufferedStream.hasLength()); 51 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) { argument 55 test_hasLength(reporter, *bufferedStrea 79 test_perfectly_sized_buffer(skiatest::Reporter* reporter, size_t bufferSize) argument 98 test_skipping(skiatest::Reporter* reporter, size_t bufferSize) argument 148 test_read_beyond_buffer(skiatest::Reporter* reporter, size_t bufferSize) argument 195 test_length_combos(skiatest::Reporter* reporter, size_t bufferSize) argument 206 test_initial_offset(skiatest::Reporter* reporter, size_t bufferSize) argument 237 test_buffers(skiatest::Reporter* reporter, size_t bufferSize) argument [all...] |
H A D | GpuColorFilterTest.cpp | 35 static void test_getConstantColorComponents(skiatest::Reporter* reporter, GrContext* grContext) { argument 106 REPORTER_ASSERT(reporter, filterColor(color, components) == test.outputColor); 107 REPORTER_ASSERT(reporter, test.outputComponents == components); 111 DEF_GPUTEST(GpuColorFilter, reporter, factory) { 120 test_getConstantColorComponents(reporter, grContext);
|
H A D | GradientTest.cpp | 24 void gradCheck(skiatest::Reporter* reporter, SkShader* shader, argument 33 REPORTER_ASSERT(reporter, shader->asAGradient(info) == gt); 35 REPORTER_ASSERT(reporter, info->fColorCount == fColorCount); 36 REPORTER_ASSERT(reporter, 38 REPORTER_ASSERT(reporter, 40 REPORTER_ASSERT(reporter, fTileMode == info->fTileMode); 45 static void none_gradproc(skiatest::Reporter* reporter, const GradRec&) { argument 47 REPORTER_ASSERT(reporter, SkShader::kNone_GradientType == s->asAGradient(NULL)); 50 static void color_gradproc(skiatest::Reporter* reporter, const GradRec& rec) { argument 52 REPORTER_ASSERT(reporter, SkShade 61 linear_gradproc(skiatest::Reporter* reporter, const GradRec& rec) argument 73 radial_gradproc(skiatest::Reporter* reporter, const GradRec& rec) argument 87 radial2_gradproc(skiatest::Reporter* reporter, const GradRec& rec) argument 103 sweep_gradproc(skiatest::Reporter* reporter, const GradRec& rec) argument 115 conical_gradproc(skiatest::Reporter* reporter, const GradRec& rec) argument 161 TestGradientShaders(skiatest::Reporter* reporter) argument [all...] |
H A D | LListTest.cpp | 32 skiatest::Reporter* reporter, 38 REPORTER_ASSERT(reporter, empty == list.isEmpty()); 41 REPORTER_ASSERT(reporter, numElements == list.countEntries()); 42 REPORTER_ASSERT(reporter, in0 == list.isInList(&elements[0])); 43 REPORTER_ASSERT(reporter, in1 == list.isInList(&elements[1])); 44 REPORTER_ASSERT(reporter, in2 == list.isInList(&elements[2])); 45 REPORTER_ASSERT(reporter, in3 == list.isInList(&elements[3])); 49 static void TestTInternalLList(skiatest::Reporter* reporter) { argument 59 check_list(list, reporter, true, 0, false, false, false, false, elements); 63 check_list(list, reporter, fals 31 check_list(const SkTInternalLList<ListElement>& list, skiatest::Reporter* reporter, bool empty, int numElements, bool in0, bool in1, bool in2, bool in3, ListElement elements[4]) argument 122 TestTLList(skiatest::Reporter* reporter) argument [all...] |
H A D | PackBitsTest.cpp | 23 static void test_pack16(skiatest::Reporter* reporter) { argument 42 REPORTER_ASSERT(reporter, match); 53 REPORTER_ASSERT(reporter, maxSize >= dstSize); 56 REPORTER_ASSERT(reporter, size == srcCount); 58 REPORTER_ASSERT(reporter, match); 73 static void test_pack8(skiatest::Reporter* reporter) { argument 90 REPORTER_ASSERT(reporter, dstSize <= maxSize); 96 REPORTER_ASSERT(reporter, match); 107 REPORTER_ASSERT(reporter, maxSize >= dstSize); 110 REPORTER_ASSERT(reporter, siz [all...] |
H A D | PathCoverageTest.cpp | 112 skiatest::Reporter* reporter) { 139 ERRORF(reporter, "Curve from %.2f %.2f through %.2f %.2f to " 152 static void TestQuadPointCount(skiatest::Reporter* reporter) { argument 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); 160 DEF_TEST(PathCoverage, reporter) { 161 TestQuadPointCount(reporter); 111 one_d_pe(const int* array, const unsigned int count, skiatest::Reporter* reporter) argument [all...] |
H A D | PathOpsCubicLineIntersectionTest.cpp | 27 static void testFail(skiatest::Reporter* reporter, int iIndex) { argument 38 REPORTER_ASSERT(reporter, 0); 42 REPORTER_ASSERT(reporter, 0); 47 REPORTER_ASSERT(reporter, roots == 0); 119 static void testOne(skiatest::Reporter* reporter, int iIndex) { argument 130 REPORTER_ASSERT(reporter, 0); 134 REPORTER_ASSERT(reporter, 0); 148 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 168 DEF_TEST(PathOpsFailCubicLineIntersection, reporter) { 171 testFail(reporter, iInde [all...] |
H A D | PathOpsCubicQuadIntersectionTest.cpp | 60 static void cubicQuadIntersection(skiatest::Reporter* reporter, int index) { argument 72 REPORTER_ASSERT(reporter, 0); 76 REPORTER_ASSERT(reporter, 0); 90 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 99 REPORTER_ASSERT(reporter, found); 101 reporter->bumpTestCount(); 104 DEF_TEST(PathOpsCubicQuadIntersection, reporter) { 106 cubicQuadIntersection(reporter, index); 107 reporter->bumpTestCount(); 111 DEF_TEST(PathOpsCubicQuadIntersectionOneOff, reporter) { [all...] |
H A D | PathOpsQuadLineIntersectionTest.cpp | 79 static void testOneOffs(skiatest::Reporter* reporter) { argument 97 REPORTER_ASSERT(reporter, quadXY.approximatelyEqual(lineXY)); 102 DEF_TEST(PathOpsQuadLineIntersectionOneOff, reporter) { 103 testOneOffs(reporter); 106 DEF_TEST(PathOpsQuadLineIntersection, reporter) { 118 REPORTER_ASSERT(reporter, 0); 122 REPORTER_ASSERT(reporter, 0); 127 REPORTER_ASSERT(reporter, result == lineQuadTests[index].result); 133 REPORTER_ASSERT(reporter, tt1 >= 0 && tt1 <= 1); 136 REPORTER_ASSERT(reporter, tt [all...] |
H A D | PathOpsQuadLineIntersectionThreadedTest.cpp | 41 static void testLineIntersect(skiatest::Reporter* reporter, const SkDQuad& quad, argument 65 REPORTER_ASSERT(reporter, found); 113 DEF_TEST(PathOpsQuadLineIntersectionThreaded, reporter) { 114 int threadCount = initializeTests(reporter, "testQuadLineIntersect"); 115 PathOpsThreadedTestRunner testRunner(reporter, threadCount); 122 if (!reporter->allowExtendedTest()) goto finish;
|
H A D | PathOpsThreadedCommon.h | 36 PathOpsThreadedTestRunner(skiatest::Reporter* reporter, int threadCount) argument 38 , fReporter(reporter) {
|
H A D | PathUtilsTest.cpp | 79 static bool test_bmp(skiatest::Reporter* reporter, argument 84 REPORTER_ASSERT( reporter, *bmp1->getAddr32(x,y) == *bmp2->getAddr32(x,y) ); 90 static void test_path_eq(skiatest::Reporter* reporter, const SkPath* path, argument 106 test_bmp(reporter, truth, &bmp, w, h); 109 static void test_path(skiatest::Reporter* reporter, const SkBitmap* truth, argument 116 test_path_eq(reporter, &path, truth, w, h); 119 static void test_region(skiatest::Reporter* reporter, const SkBitmap* truth, argument 126 test_path_eq(reporter, &path, truth, w, h); 129 DEF_TEST(PathUtils, reporter) { 148 test_path(reporter, [all...] |
H A D | PointTest.cpp | 14 static void test_casts(skiatest::Reporter* reporter) { argument 21 REPORTER_ASSERT(reporter, p.asScalars() == pPtr); 22 REPORTER_ASSERT(reporter, r.asScalars() == rPtr); 26 static void test_Normalize(skiatest::Reporter* reporter, argument 33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); 34 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1)); 39 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, argument 47 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, s2)); 48 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, expectedLength)); 50 test_Normalize(reporter, 60 get_value(skiatest::Reporter* reporter, T value) argument 71 force_as_float(skiatest::Reporter* reporter, float value) argument 86 test_overflow(skiatest::Reporter* reporter) argument 109 test_underflow(skiatest::Reporter* reporter) argument [all...] |
H A D | RTreeTest.cpp | 70 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], argument 76 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 80 static void rtree_test_main(SkRTree* rtree, skiatest::Reporter* reporter) { argument 83 REPORTER_ASSERT(reporter, NULL != rtree); 110 run_queries(reporter, rand, rects, *rtree); 111 REPORTER_ASSERT(reporter, NUM_RECTS == rtree->getCount()); 112 REPORTER_ASSERT(reporter, expectedDepthMin <= rtree->getDepth() && 115 REPORTER_ASSERT(reporter, 0 == rtree->getCount()); 121 run_queries(reporter, rand, rects, *rtree); 122 REPORTER_ASSERT(reporter, NUM_RECT [all...] |
H A D | RandomTest.cpp | 59 static void test_random_byte(skiatest::Reporter* reporter, int shift) { argument 68 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); 71 static void test_random_float(skiatest::Reporter* reporter) { argument 78 REPORTER_ASSERT(reporter, 0.0f <= f && f < 1.0f); 81 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000)); 86 REPORTER_ASSERT(reporter, 0.0f <= f && f < 1.0f); 89 REPORTER_ASSERT(reporter, anderson_darling_test(p)); 102 static double test_single_gorilla(skiatest::Reporter* reporter, int shift) { argument 148 REPORTER_ASSERT(reporter, 0.01 < p && p < 0.99); 152 static void test_gorilla(skiatest::Reporter* reporter) { argument 162 test_range(skiatest::Reporter* reporter) argument [all...] |
H A D | UtilsTest.cpp | 28 static void test_autounref(skiatest::Reporter* reporter) { argument 30 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt()); 33 REPORTER_ASSERT(reporter, &obj == tmp.get()); 34 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt()); 36 REPORTER_ASSERT(reporter, &obj == tmp.detach()); 37 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt()); 38 REPORTER_ASSERT(reporter, NULL == tmp.detach()); 39 REPORTER_ASSERT(reporter, NULL == tmp.get()); 42 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt()); 46 REPORTER_ASSERT(reporter, 49 test_autostarray(skiatest::Reporter* reporter) argument 122 test_search(skiatest::Reporter* reporter) argument 167 test_utf16(skiatest::Reporter* reporter) argument [all...] |