Searched defs:reporter (Results 1 - 25 of 170) sorted by relevance

1234567

/external/skia/tests/
H A DTemplatesTest.cpp12 static void test_automalloc_realloc(skiatest::Reporter* reporter) { argument
17 REPORTER_ASSERT(reporter, array[0] == 1);
23 REPORTER_ASSERT(reporter, array[0] == 1);
27 REPORTER_ASSERT(reporter, array[0] == 1);
31 REPORTER_ASSERT(reporter, array[0] == 1);
43 REPORTER_ASSERT(reporter, array[i] == 10 - i);
47 REPORTER_ASSERT(reporter, array[i] == 10 - i);
51 REPORTER_ASSERT(reporter, array[0] = 10);
59 REPORTER_ASSERT(reporter, array[0] == 1);
65 REPORTER_ASSERT(reporter, arra
[all...]
H A DDrawFilterTest.cpp27 static void test_saverestore(skiatest::Reporter* reporter) { argument
34 REPORTER_ASSERT(reporter, NULL == canvas->getDrawFilter());
38 REPORTER_ASSERT(reporter, NULL != canvas->getDrawFilter());
41 REPORTER_ASSERT(reporter, NULL == canvas->getDrawFilter());
44 DEF_TEST(DrawFilter, reporter) {
45 test_saverestore(reporter);
H A DRectTest.cpp25 static void test_stroke_width_clipping(skiatest::Reporter* reporter) { argument
41 REPORTER_ASSERT(reporter, !has_green_pixels(bm));
46 REPORTER_ASSERT(reporter, has_green_pixels(bm));
49 DEF_TEST(Rect, reporter) {
50 test_stroke_width_clipping(reporter);
H A DBitmapHasherTest.cpp19 SkColor color, skiatest::Reporter* reporter) {
24 DEF_TEST(BitmapHasher, reporter) {
29 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter);
30 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
31 REPORTER_ASSERT(reporter, digest == 0xfb2903562766ef87ULL);
33 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter);
34 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
35 REPORTER_ASSERT(reporter, digest == 0xfe04023fb97d0f61ULL);
37 CreateTestBitmap(&bitmap, 555, 333, SK_ColorGREEN, reporter);
38 REPORTER_ASSERT(reporter, SkBitmapHashe
18 CreateTestBitmap(SkBitmap* bitmap, int width, int height, SkColor color, skiatest::Reporter* reporter) argument
[all...]
H A DCTest.cpp14 static void test_c(skiatest::Reporter* reporter) { argument
27 REPORTER_ASSERT(reporter, 0xFF000000 == pixel[0]);
31 REPORTER_ASSERT(reporter, 0xFFFFFFFF == pixel[0]);
37 DEF_TEST(C_API, reporter) {
38 test_c(reporter);
H A DRefCntTest.cpp22 static void test_refCnt(skiatest::Reporter* reporter) { argument
37 REPORTER_ASSERT(reporter, ref->unique());
58 static void test_weakRefCnt(skiatest::Reporter* reporter) { argument
81 REPORTER_ASSERT(reporter, ref->unique());
82 REPORTER_ASSERT(reporter, ref->getWeakCnt() == 1);
86 DEF_TEST(RefCnt, reporter) {
87 test_refCnt(reporter);
88 test_weakRefCnt(reporter);
H A DXfermodeTest.cpp14 static void test_asMode(skiatest::Reporter* reporter) { argument
19 REPORTER_ASSERT(reporter, reportedMode != mode);
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode));
23 REPORTER_ASSERT(reporter, reportedMode == mode);
28 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode));
29 REPORTER_ASSERT(reporter, reportedMode == mode);
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
37 static void test_IsMode(skiatest::Reporter* reporter) { argument
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL,
45 REPORTER_ASSERT(reporter, SkXfermod
[all...]
H A DBitmapTest.cpp13 static void test_bigalloc(skiatest::Reporter* reporter) { argument
19 REPORTER_ASSERT(reporter, !bm.tryAllocPixels(info));
22 REPORTER_ASSERT(reporter, !pr);
25 static void test_allocpixels(skiatest::Reporter* reporter) { argument
33 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
35 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
38 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
41 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
43 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
46 REPORTER_ASSERT(reporter, explicitRowByte
61 test_bigwidth(skiatest::Reporter* reporter) argument
[all...]
H A DDocumentTest.cpp8 static void test_empty(skiatest::Reporter* reporter) { argument
15 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
18 static void test_abort(skiatest::Reporter* reporter) { argument
28 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
31 static void test_abortWithFile(skiatest::Reporter* reporter) { argument
56 REPORTER_ASSERT(reporter, fread(buffer, 1, 1, file) == 0);
60 static void test_file(skiatest::Reporter* reporter) { argument
79 REPORTER_ASSERT(reporter, file != NULL);
81 REPORTER_ASSERT(reporter, fread(header, 4, 1, file) != 0);
82 REPORTER_ASSERT(reporter, strncm
86 test_close(skiatest::Reporter* reporter) argument
[all...]
H A DFontMgrTest.cpp15 static void test_font(skiatest::Reporter* reporter) { argument
19 REPORTER_ASSERT(reporter, font->getTypeface());
20 REPORTER_ASSERT(reporter, 24 == font->getSize());
21 REPORTER_ASSERT(reporter, 1 == font->getScaleX());
22 REPORTER_ASSERT(reporter, 0 == font->getSkewX());
23 REPORTER_ASSERT(reporter, SkFont::kA8_MaskType == font->getMaskType());
30 REPORTER_ASSERT(reporter, 5 == count);
32 REPORTER_ASSERT(reporter, 0 != glyphs[i]);
34 REPORTER_ASSERT(reporter, glyphs[0] != glyphs[1]); // 'h' != 'e'
35 REPORTER_ASSERT(reporter, glyph
56 test_alias_names(skiatest::Reporter* reporter) argument
81 test_fontiter(skiatest::Reporter* reporter, bool verbose) argument
[all...]
H A DGpuRectanizerTest.cpp21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) { argument
22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
23 REPORTER_ASSERT(reporter, kHeight == rectanizer->height());
27 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc));
28 REPORTER_ASSERT(reporter, rectanizer->percentFull() > 0.0f);
30 REPORTER_ASSERT(reporter, rectanizer->percentFull() == 0.0f);
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { argument
50 test_rectanizer_basic(reporter, &skylineRectanizer);
51 test_rectanizer_inserts(reporter, &skylineRectanizer, rects);
54 static void test_pow2(skiatest::Reporter* reporter, cons argument
[all...]
H A DImageIsOpaqueTest.cpp19 static void test_flatten(skiatest::Reporter* reporter, const SkImageInfo& info) { argument
33 REPORTER_ASSERT(reporter, rb.offset() == wb.bytesWritten());
34 REPORTER_ASSERT(reporter, info == info2);
37 DEF_TEST(ImageInfo_flattening, reporter) {
45 test_flatten(reporter, info);
51 static void check_isopaque(skiatest::Reporter* reporter, SkSurface* surface, bool expectedOpaque) { argument
53 REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque);
56 DEF_TEST(ImageIsOpaqueTest, reporter) {
59 check_isopaque(reporter, surfaceTransparent, false);
63 check_isopaque(reporter, surfaceOpaqu
[all...]
H A DMD5Test.cpp20 static void md5_test(const char* string, const SkMD5::Digest& expectedDigest, skiatest::Reporter* reporter) { argument
30 REPORTER_ASSERT(reporter, digests_equal(expectedDigest, digest));
44 REPORTER_ASSERT(reporter, digests_equal(expectedDigest, digest));
62 DEF_TEST(MD5, reporter) {
64 md5_test(md5_tests[i].message, md5_tests[i].digest, reporter);
H A DOSPathTest.cpp16 * @param reporter Reporter for test conditions.
22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, argument
38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize);
44 REPORTER_ASSERT(reporter, basename.equals(filename));
55 REPORTER_ASSERT(reporter, dirname.equals(strippedDir));
58 REPORTER_ASSERT(reporter, !basename.contains(SkPATH_SEPARATOR));
62 REPORTER_ASSERT(reporter, basename.equals(filename));
65 DEF_TEST(OSPath, reporter) {
68 test_dir_with_file(reporter, dir, filename);
72 test_dir_with_file(reporter, di
[all...]
H A DParsePathTest.cpp11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) { argument
17 REPORTER_ASSERT(reporter, success);
20 REPORTER_ASSERT(reporter, str == str2);
23 REPORTER_ASSERT(reporter, path == path2);
44 DEF_TEST(ParsePath, reporter) {
48 REPORTER_ASSERT(reporter, success);
51 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
53 test_to_from(reporter, path);
60 test_to_from(reporter, p);
62 test_to_from(reporter,
[all...]
/external/jdiff/src/jdiff/
H A DOptions.java132 * @param reporter a DocErrorReporter for generating error messages
137 DocErrorReporter reporter) {
138 final DocErrorReporter errOut = reporter;
136 validOptions(String[][] options, DocErrorReporter reporter) argument
/external/mockito/src/org/mockito/internal/verification/
H A DOnly.java21 private final Reporter reporter = new Reporter(); field in class:Only
30 reporter.noMoreInteractionsWanted(unverified, (List) invocations);
32 reporter.wantedButNotInvoked(wantedMatcher);
/external/mockito/src/org/mockito/internal/
H A DInOrderImpl.java28 private final Reporter reporter = new Reporter(); field in class:InOrderImpl
46 reporter.inOrderRequiresFamiliarMock();
/external/mockito/src/org/mockito/internal/verification/checkers/
H A DAtLeastXNumberOfInvocationsChecker.java19 Reporter reporter = new Reporter(); field in class:AtLeastXNumberOfInvocationsChecker
29 reporter.tooLittleActualInvocations(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation);
H A DAtLeastXNumberOfInvocationsInOrderChecker.java20 private final Reporter reporter = new Reporter(); field in class:AtLeastXNumberOfInvocationsInOrderChecker
36 reporter.tooLittleActualInvocationsInOrder(new AtLeastDiscrepancy(wantedCount, actualCount), wanted, lastLocation);
H A DMissingInvocationChecker.java19 private final Reporter reporter; field in class:MissingInvocationChecker
26 MissingInvocationChecker(InvocationsFinder finder, Reporter reporter) { argument
28 this.reporter = reporter;
40 reporter.argumentsAreDifferent(smartPrinter.getWanted(), smartPrinter.getActual(), similar.getLocation());
42 reporter.wantedButNotInvoked(wanted, invocations);
H A DMissingInvocationInOrderChecker.java21 private final Reporter reporter; field in class:MissingInvocationInOrderChecker
28 MissingInvocationInOrderChecker(InvocationsFinder finder, Reporter reporter) { argument
30 this.reporter = reporter;
57 reporter.argumentsAreDifferent(smartPrinter.getWanted(), smartPrinter.getActual(), similar.getLocation());
59 reporter.wantedButNotInvoked(wanted);
63 reporter.wantedButNotInvokedInOrder(wanted, previousInOrder);
H A DNonGreedyNumberOfInvocationsInOrderChecker.java22 private final Reporter reporter; field in class:NonGreedyNumberOfInvocationsInOrderChecker
29 NonGreedyNumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter, InvocationMarker marker ) { argument
31 this.reporter = reporter;
41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastLocation );
H A DNumberOfInvocationsChecker.java20 private final Reporter reporter; field in class:NumberOfInvocationsChecker
28 NumberOfInvocationsChecker(Reporter reporter, InvocationsFinder finder) { argument
29 this.reporter = reporter;
39 reporter.tooLittleActualInvocations(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation);
42 reporter.neverWantedButInvoked(wanted, firstUndesired);
45 reporter.tooManyActualInvocations(wantedCount, actualCount, wanted, firstUndesired);
H A DNumberOfInvocationsInOrderChecker.java21 private final Reporter reporter; field in class:NumberOfInvocationsInOrderChecker
29 NumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter) { argument
31 this.reporter = reporter;
41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation);
44 reporter.tooManyActualInvocationsInOrder(wantedCount, actualCount, wanted, firstUndesired);

Completed in 466 milliseconds

1234567