Home
last modified time | relevance | path

Searched refs:reporter (Results 1 – 25 of 103) sorted by relevance

12345

/external/skia/tests/
DMetaDataTest.cpp11 static void test_ptrs(skiatest::Reporter* reporter) { in test_ptrs() argument
13 REPORTER_ASSERT(reporter, 1 == ref.getRefCnt()); in test_ptrs()
20 REPORTER_ASSERT(reporter, md0.findRefCnt(name)); in test_ptrs()
21 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref)); in test_ptrs()
22 REPORTER_ASSERT(reporter, 2 == ref.getRefCnt()); in test_ptrs()
25 REPORTER_ASSERT(reporter, md1.findRefCnt(name)); in test_ptrs()
26 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref)); in test_ptrs()
27 REPORTER_ASSERT(reporter, 3 == ref.getRefCnt()); in test_ptrs()
29 REPORTER_ASSERT(reporter, md0.removeRefCnt(name)); in test_ptrs()
30 REPORTER_ASSERT(reporter, !md0.findRefCnt(name)); in test_ptrs()
[all …]
DUtilsTest.cpp24 static void test_refptr(skiatest::Reporter* reporter) { in test_refptr() argument
28 REPORTER_ASSERT(reporter, rc0.get() == NULL); in test_refptr()
29 REPORTER_ASSERT(reporter, !rc0); in test_refptr()
32 REPORTER_ASSERT(reporter, rc0 == rc1); in test_refptr()
33 REPORTER_ASSERT(reporter, rc0.get() != r0); in test_refptr()
36 REPORTER_ASSERT(reporter, rc0); in test_refptr()
37 REPORTER_ASSERT(reporter, rc0 != rc1); in test_refptr()
38 REPORTER_ASSERT(reporter, rc0.get() == r0); in test_refptr()
41 REPORTER_ASSERT(reporter, rc1); in test_refptr()
42 REPORTER_ASSERT(reporter, rc0 == rc1); in test_refptr()
[all …]
DReader32Test.cpp14 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { in assert_eof() argument
15 REPORTER_ASSERT(reporter, reader.eof()); in assert_eof()
16 REPORTER_ASSERT(reporter, reader.size() == reader.offset()); in assert_eof()
17 REPORTER_ASSERT(reporter, (const char*)reader.peek() == in assert_eof()
21 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { in assert_start() argument
22 REPORTER_ASSERT(reporter, 0 == reader.offset()); in assert_start()
23 REPORTER_ASSERT(reporter, reader.size() == reader.available()); in assert_start()
24 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size())); in assert_start()
25 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1)); in assert_start()
26 REPORTER_ASSERT(reporter, reader.peek() == reader.base()); in assert_start()
[all …]
DBitSetTest.cpp11 static void TestBitSet(skiatest::Reporter* reporter) { in TestBitSet() argument
13 REPORTER_ASSERT(reporter, set0.isBitSet(0) == false); in TestBitSet()
14 REPORTER_ASSERT(reporter, set0.isBitSet(32767) == false); in TestBitSet()
15 REPORTER_ASSERT(reporter, set0.isBitSet(65535) == false); in TestBitSet()
18 REPORTER_ASSERT(reporter, set0 == set1); in TestBitSet()
21 REPORTER_ASSERT(reporter, set0.isBitSet(22) == true); in TestBitSet()
23 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true); in TestBitSet()
25 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true); in TestBitSet()
27 REPORTER_ASSERT(reporter, set0.isBitSet(22) == false); in TestBitSet()
28 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true); in TestBitSet()
[all …]
DPathTest.cpp25 skiatest::Reporter* reporter) { in check_direction() argument
27 REPORTER_ASSERT(reporter, path->cheapIsDirection(expectedDir)); in check_direction()
30 REPORTER_ASSERT(reporter, path->cheapIsDirection(expectedDir)); in check_direction()
33 static void test_direction(skiatest::Reporter* reporter) { in test_direction() argument
36 REPORTER_ASSERT(reporter, !path.cheapComputeDirection(NULL)); in test_direction()
37 REPORTER_ASSERT(reporter, !path.cheapIsDirection(SkPath::kCW_Direction)); in test_direction()
38 REPORTER_ASSERT(reporter, !path.cheapIsDirection(SkPath::kCCW_Direction)); in test_direction()
51 REPORTER_ASSERT(reporter, valid); in test_direction()
52 REPORTER_ASSERT(reporter, !path.cheapComputeDirection(NULL)); in test_direction()
63 REPORTER_ASSERT(reporter, valid); in test_direction()
[all …]
DRefDictTest.cpp14 static void TestRefDict(skiatest::Reporter* reporter) { in TestRefDict() argument
18 REPORTER_ASSERT(reporter, NULL == dict.find(NULL)); in TestRefDict()
19 REPORTER_ASSERT(reporter, NULL == dict.find("foo")); in TestRefDict()
20 REPORTER_ASSERT(reporter, NULL == dict.find("bar")); in TestRefDict()
23 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); in TestRefDict()
24 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); in TestRefDict()
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); in TestRefDict()
28 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); in TestRefDict()
31 REPORTER_ASSERT(reporter, &data1 == dict.find("foo")); in TestRefDict()
32 REPORTER_ASSERT(reporter, 1 == data0.getRefCnt()); in TestRefDict()
[all …]
DMathTest.cpp72 static void test_blend(skiatest::Reporter* reporter) { in test_blend() argument
88 REPORTER_ASSERT(reporter, false); in test_blend()
118 static void check_length(skiatest::Reporter* reporter, in check_length() argument
127 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f); in check_length()
156 static void assert_float_equal(skiatest::Reporter* reporter, const char op[], in assert_float_equal() argument
161 reporter->reportFailed(desc); in assert_float_equal()
165 static void test_float_cast(skiatest::Reporter* reporter, float x) { in test_float_cast() argument
168 assert_float_equal(reporter, "cast", x, ix, iix); in test_float_cast()
171 static void test_float_floor(skiatest::Reporter* reporter, float x) { in test_float_floor() argument
174 assert_float_equal(reporter, "floor", x, ix, iix); in test_float_floor()
[all …]
DDequeTest.cpp11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { in assert_count() argument
13 REPORTER_ASSERT(reporter, deq.empty()); in assert_count()
14 REPORTER_ASSERT(reporter, 0 == deq.count()); in assert_count()
15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
16 REPORTER_ASSERT(reporter, NULL == deq.front()); in assert_count()
17 REPORTER_ASSERT(reporter, NULL == deq.back()); in assert_count()
19 REPORTER_ASSERT(reporter, !deq.empty()); in assert_count()
20 REPORTER_ASSERT(reporter, count == deq.count()); in assert_count()
21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); in assert_count()
22 REPORTER_ASSERT(reporter, NULL != deq.front()); in assert_count()
[all …]
DPathMeasureTest.cpp11 static void TestPathMeasure(skiatest::Reporter* reporter) { in TestPathMeasure() argument
28 REPORTER_ASSERT(reporter, length == SK_Scalar1*5); in TestPathMeasure()
56 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4); in TestPathMeasure()
59 REPORTER_ASSERT(reporter, length == SK_Scalar1); in TestPathMeasure()
62 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); in TestPathMeasure()
63 REPORTER_ASSERT(reporter, in TestPathMeasure()
65 REPORTER_ASSERT(reporter, position.fY == 0); in TestPathMeasure()
66 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); in TestPathMeasure()
67 REPORTER_ASSERT(reporter, tangent.fY == 0); in TestPathMeasure()
84 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 6); in TestPathMeasure()
[all …]
DMatrix44Test.cpp23 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[], in assert16() argument
28 REPORTER_ASSERT(reporter, data[0] == m0); in assert16()
29 REPORTER_ASSERT(reporter, data[1] == m1); in assert16()
30 REPORTER_ASSERT(reporter, data[2] == m2); in assert16()
31 REPORTER_ASSERT(reporter, data[3] == m3); in assert16()
33 REPORTER_ASSERT(reporter, data[4] == m4); in assert16()
34 REPORTER_ASSERT(reporter, data[5] == m5); in assert16()
35 REPORTER_ASSERT(reporter, data[6] == m6); in assert16()
36 REPORTER_ASSERT(reporter, data[7] == m7); in assert16()
38 REPORTER_ASSERT(reporter, data[8] == m8); in assert16()
[all …]
DShaderOpacityTest.cpp13 static void test_bitmap(skiatest::Reporter* reporter) { in test_bitmap() argument
20 REPORTER_ASSERT(reporter, shader); in test_bitmap()
21 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
30 REPORTER_ASSERT(reporter, shader); in test_bitmap()
31 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
38 REPORTER_ASSERT(reporter, shader); in test_bitmap()
39 REPORTER_ASSERT(reporter, shader->isOpaque()); in test_bitmap()
46 REPORTER_ASSERT(reporter, shader); in test_bitmap()
47 REPORTER_ASSERT(reporter, !shader->isOpaque()); in test_bitmap()
52 static void test_gradient(skiatest::Reporter* reporter) in test_gradient() argument
[all …]
DTestSize.cpp11 static void TestISize(skiatest::Reporter* reporter) { in TestISize() argument
15 REPORTER_ASSERT(reporter, a.isEmpty()); in TestISize()
17 REPORTER_ASSERT(reporter, a.isEmpty()); in TestISize()
19 REPORTER_ASSERT(reporter, a.isEmpty()); in TestISize()
21 REPORTER_ASSERT(reporter, a == b); in TestISize()
24 REPORTER_ASSERT(reporter, !a.isEmpty()); in TestISize()
26 REPORTER_ASSERT(reporter, !b.isEmpty()); in TestISize()
27 REPORTER_ASSERT(reporter, a == b); in TestISize()
28 REPORTER_ASSERT(reporter, !(a != b)); in TestISize()
29 REPORTER_ASSERT(reporter, in TestISize()
[all …]
DSk64Test.cpp16 static void bool_table_test(skiatest::Reporter* reporter, in bool_table_test() argument
19 REPORTER_ASSERT(reporter, a.isZero() != a.nonZero()); in bool_table_test()
21 REPORTER_ASSERT(reporter, !a.isZero() == !table.zero); in bool_table_test()
22 REPORTER_ASSERT(reporter, !a.isPos() == !table.pos); in bool_table_test()
23 REPORTER_ASSERT(reporter, !a.isNeg() == !table.neg); in bool_table_test()
24 REPORTER_ASSERT(reporter, a.getSign() == table.sign); in bool_table_test()
34 static void TestSk64(skiatest::Reporter* reporter) { in TestSk64() argument
51 REPORTER_ASSERT(reporter, a == b); in TestSk64()
52 REPORTER_ASSERT(reporter, a == c); in TestSk64()
53 bool_table_test(reporter, a, gBoolTable[kZero_BoolTest]); in TestSk64()
[all …]
DPDFPrimitivesTest.cpp49 static void CheckObjectOutput(skiatest::Reporter* reporter, SkPDFObject* obj, in CheckObjectOutput() argument
58 REPORTER_ASSERT(reporter, directSize == expectedSize); in CheckObjectOutput()
62 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); in CheckObjectOutput()
63 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, expectedData, in CheckObjectOutput()
76 REPORTER_ASSERT(reporter, in CheckObjectOutput()
81 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset()); in CheckObjectOutput()
82 REPORTER_ASSERT(reporter, stream_equals(buffer, 0, header, headerLen)); in CheckObjectOutput()
83 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen, expectedData, in CheckObjectOutput()
85 REPORTER_ASSERT(reporter, stream_equals(buffer, headerLen + directSize, in CheckObjectOutput()
90 static void SimpleCheckObjectOutput(skiatest::Reporter* reporter, in SimpleCheckObjectOutput() argument
[all …]
DCanvasTest.cpp201 virtual void draw(SkCanvas* canvas, skiatest::Reporter* reporter) { \
202 FUNCTION (canvas, reporter, this); \
216 static void NAME##TestStep(SkCanvas* canvas, skiatest::Reporter* reporter, \
218 REPORTER_ASSERT_MESSAGE(reporter, canvas-> CALL , \
290 skiatest::Reporter* reporter, in DrawVerticesShaderTestStep() argument
307 skiatest::Reporter* reporter, in DrawPictureTestStep() argument
320 skiatest::Reporter* reporter, in SaveRestoreTestStep() argument
322 REPORTER_ASSERT_MESSAGE(reporter, 1 == canvas->getSaveCount(), in SaveRestoreTestStep()
325 REPORTER_ASSERT_MESSAGE(reporter, 1 == n, testStep->assertMessage()); in SaveRestoreTestStep()
326 REPORTER_ASSERT_MESSAGE(reporter, 2 == canvas->getSaveCount(), in SaveRestoreTestStep()
[all …]
DStringTest.cpp37 static void TestString(skiatest::Reporter* reporter) { in TestString() argument
43 REPORTER_ASSERT(reporter, a.isEmpty()); in TestString()
44 REPORTER_ASSERT(reporter, a == b && a == c && a == d); in TestString()
52 REPORTER_ASSERT(reporter, !a.isEmpty()); in TestString()
53 REPORTER_ASSERT(reporter, a.size() == 5); in TestString()
54 REPORTER_ASSERT(reporter, a == b && a == c && a == d); in TestString()
55 REPORTER_ASSERT(reporter, a.equals("hello", 5)); in TestString()
56 REPORTER_ASSERT(reporter, a.equals("hello")); in TestString()
57 REPORTER_ASSERT(reporter, !a.equals("help")); in TestString()
63 REPORTER_ASSERT(reporter, a == e && a == f && a == g); in TestString()
[all …]
DWriter32Test.cpp15 static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { in test1() argument
18 REPORTER_ASSERT(reporter, i*4 == writer->size()); in test1()
21 REPORTER_ASSERT(reporter, data[i] == *addr); in test1()
25 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->size()); in test1()
27 REPORTER_ASSERT(reporter, !memcmp(data, buffer, sizeof(buffer))); in test1()
30 static void test2(skiatest::Reporter* reporter, SkWriter32* writer) { in test2() argument
39 REPORTER_ASSERT(reporter, writer->size() == len); in test2()
47 REPORTER_ASSERT(reporter, !reader.eof()); in test2()
49 REPORTER_ASSERT(reporter, i == len); in test2()
50 REPORTER_ASSERT(reporter, strlen(str) == len); in test2()
[all …]
DXfermodeTest.cpp18 static void test_asMode(skiatest::Reporter* reporter) { in test_asMode() argument
23 REPORTER_ASSERT(reporter, reportedMode != mode); in test_asMode()
26 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, &reportedMode)); in test_asMode()
27 REPORTER_ASSERT(reporter, reportedMode == mode); in test_asMode()
32 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode)); in test_asMode()
33 REPORTER_ASSERT(reporter, reportedMode == mode); in test_asMode()
36 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); in test_asMode()
42 REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode)); in test_asMode()
43 REPORTER_ASSERT(reporter, reportedMode == -1); in test_asMode()
44 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(bogusXfer, &reportedMode)); in test_asMode()
[all …]
DStreamTest.cpp23 static void test_buffer(skiatest::Reporter* reporter) { in test_buffer() argument
45 REPORTER_ASSERT(reporter, ss > 0 && ss <= s); in test_buffer()
46 REPORTER_ASSERT(reporter, bytesRead + ss <= size); in test_buffer()
47 REPORTER_ASSERT(reporter, in test_buffer()
51 REPORTER_ASSERT(reporter, bytesRead == size); in test_buffer()
56 static void TestRStream(skiatest::Reporter* reporter) { in TestRStream() argument
70 REPORTER_ASSERT(reporter, copyPtr == copy + sizeof(s)); in TestRStream()
71 REPORTER_ASSERT(reporter, memcmp(s, copy, sizeof(s)) == 0); in TestRStream()
73 test_buffer(reporter); in TestRStream()
76 static void TestWStream(skiatest::Reporter* reporter) { in TestWStream() argument
[all …]
DMatrixTest.cpp41 static void test_flatten(skiatest::Reporter* reporter, const SkMatrix& m) { in test_flatten() argument
46 REPORTER_ASSERT(reporter, size1 == size2); in test_flatten()
47 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize); in test_flatten()
51 REPORTER_ASSERT(reporter, size1 == size2); in test_flatten()
52 REPORTER_ASSERT(reporter, m == m2); in test_flatten()
56 REPORTER_ASSERT(reporter, size1 == size2); in test_flatten()
57 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0); in test_flatten()
60 void test_matrix_max_stretch(skiatest::Reporter* reporter) { in test_matrix_max_stretch() argument
63 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxStretch()); in test_matrix_max_stretch()
67 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxStretch()); in test_matrix_max_stretch()
[all …]
DClipStackTest.cpp13 static void test_assign_and_comparison(skiatest::Reporter* reporter) { in test_assign_and_comparison() argument
38 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
42 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
48 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
55 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
63 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
70 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
75 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
78 REPORTER_ASSERT(reporter, s == copy); in test_assign_and_comparison()
85 REPORTER_ASSERT(reporter, s != copy); in test_assign_and_comparison()
[all …]
DPaintTest.cpp14 static void test_copy(skiatest::Reporter* reporter) { in test_copy() argument
28 REPORTER_ASSERT(reporter, paint == copiedPaint); in test_copy()
34 REPORTER_ASSERT(reporter, paintGenID == copiedPaintGenID); in test_copy()
35 REPORTER_ASSERT(reporter, !memcmp(&paint, &copiedPaint, sizeof(paint))); in test_copy()
40 REPORTER_ASSERT(reporter, paint == copiedPaint); in test_copy()
44 REPORTER_ASSERT(reporter, paint.getGenerationID() == paintGenID); in test_copy()
45 REPORTER_ASSERT(reporter, copiedPaint.getGenerationID() != copiedPaintGenID); in test_copy()
47 REPORTER_ASSERT(reporter, memcmp(&paint, &copiedPaint, sizeof(paint))); in test_copy()
54 REPORTER_ASSERT(reporter, cleanPaint == paint); in test_copy()
55 REPORTER_ASSERT(reporter, cleanPaint == copiedPaint); in test_copy()
[all …]
DFlateTest.cpp33 static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream, in TestFlate() argument
47 REPORTER_ASSERT(reporter, status); in TestFlate()
53 REPORTER_ASSERT(reporter, testData.getLength() == inputSize); in TestFlate()
54 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(), in TestFlate()
60 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024); in TestFlate()
62 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024); in TestFlate()
69 REPORTER_ASSERT(reporter, status); in TestFlate()
75 REPORTER_ASSERT(reporter, data1.size() == inputSize); in TestFlate()
76 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase(), in TestFlate()
81 REPORTER_ASSERT(reporter, testData.getLength() == uncompressed.getOffset()); in TestFlate()
[all …]
DDeferredCanvasTest.cpp23 static void TestDeferredCanvasBitmapAccess(skiatest::Reporter* reporter) { in TestDeferredCanvasBitmapAccess() argument
33 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0xFFFFFFFF); //verify that clear was deferred in TestDeferredCanvasBitmapAccess()
35 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0x00000000); //verify that clear was executed in TestDeferredCanvasBitmapAccess()
36 REPORTER_ASSERT(reporter, accessed.pixelRef() == store.pixelRef()); in TestDeferredCanvasBitmapAccess()
39 static void TestDeferredCanvasFlush(skiatest::Reporter* reporter) { in TestDeferredCanvasFlush() argument
49 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0xFFFFFFFF); //verify that clear was deferred in TestDeferredCanvasFlush()
51 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0x00000000); //verify that clear was executed in TestDeferredCanvasFlush()
54 static void TestDeferredCanvasFreshFrame(skiatest::Reporter* reporter) { in TestDeferredCanvasFreshFrame() argument
67 REPORTER_ASSERT(reporter, canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
69 REPORTER_ASSERT(reporter, !canvas.getDeferredDevice()->isFreshFrame()); in TestDeferredCanvasFreshFrame()
[all …]
/external/webkit/Tools/Scripts/webkitpy/tool/bot/
Dflakytestreporter_unittest.py60 reporter = FlakyTestReporter(tool, 'dummy-queue')
63 self.assertEqual(reporter._author_emails_for_test([]), set(emails))
71 reporter = FlakyTestReporter(MockTool(), 'dummy-queue')
92 …OutputCapture().assert_outputs(self, reporter._create_bug_for_flaky_test, ['foo/bar.html', ['test@…
96 reporter = FlakyTestReporter(tool, 'dummy-queue')
98 self.assertEqual(reporter._follow_duplicate_chain(bug).id(), 76)
104 reporter = FlakyTestReporter(tool, 'dummy-queue')
105 reporter._lookup_bug_for_flaky_test = lambda bug_id: None
146 …OutputCapture().assert_outputs(self, reporter.report_flaky_tests, [patch, test_results, MockZipFil…
149 reporter = FlakyTestReporter(MockTool(), 'dummy-queue')
[all …]

12345