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

1234

/external/skia/tests/
H A DBitSetTest.cpp11 static void TestBitSet(skiatest::Reporter* reporter) { argument
13 REPORTER_ASSERT(reporter, set0.isBitSet(0) == false);
14 REPORTER_ASSERT(reporter, set0.isBitSet(32767) == false);
15 REPORTER_ASSERT(reporter, set0.isBitSet(65535) == false);
18 REPORTER_ASSERT(reporter, set0 == set1);
21 REPORTER_ASSERT(reporter, set0.isBitSet(22) == true);
23 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true);
25 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true);
27 REPORTER_ASSERT(reporter, set0.isBitSet(22) == false);
28 REPORTER_ASSERT(reporter, set
[all...]
H A DGLProgramsTest.cpp13 static void GLProgramsTest(skiatest::Reporter* reporter, GrContext* context) { argument
15 REPORTER_ASSERT(reporter, shadersGpu->programUnitTest());
H A DRefDictTest.cpp14 static void TestRefDict(skiatest::Reporter* reporter) { argument
18 REPORTER_ASSERT(reporter, NULL == dict.find(NULL));
19 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
20 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
23 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
24 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
28 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
31 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
32 REPORTER_ASSERT(reporter,
[all...]
H A DBitmapGetColorTest.cpp11 static void TestGetColor(skiatest::Reporter* reporter) { argument
38 REPORTER_ASSERT(reporter, c == gRec[i].fOutColor);
H A DPathMeasureTest.cpp11 static void TestPathMeasure(skiatest::Reporter* reporter) { argument
28 REPORTER_ASSERT(reporter, length == SK_Scalar1*5);
56 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4);
59 REPORTER_ASSERT(reporter, length == SK_Scalar1);
62 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
63 REPORTER_ASSERT(reporter,
65 REPORTER_ASSERT(reporter, position.fY == 0);
66 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1);
67 REPORTER_ASSERT(reporter, tangent.fY == 0);
84 REPORTER_ASSERT(reporter, lengt
[all...]
H A DQuickRejectTest.cpp37 static void test_drawBitmap(skiatest::Reporter* reporter) { argument
52 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
56 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
60 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
64 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5));
72 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5));
75 static void test(skiatest::Reporter* reporter) { argument
76 test_drawBitmap(reporter);
H A DTestSize.cpp11 static void TestISize(skiatest::Reporter* reporter) { argument
15 REPORTER_ASSERT(reporter, a.isEmpty());
17 REPORTER_ASSERT(reporter, a.isEmpty());
19 REPORTER_ASSERT(reporter, a.isEmpty());
21 REPORTER_ASSERT(reporter, a == b);
24 REPORTER_ASSERT(reporter, !a.isEmpty());
26 REPORTER_ASSERT(reporter, !b.isEmpty());
27 REPORTER_ASSERT(reporter, a == b);
28 REPORTER_ASSERT(reporter, !(a != b));
29 REPORTER_ASSERT(reporter,
33 TestSize(skiatest::Reporter* reporter) argument
[all...]
H A DClipStackTest.cpp13 static void test_assign_and_comparison(skiatest::Reporter* reporter) { argument
38 REPORTER_ASSERT(reporter, s == copy);
42 REPORTER_ASSERT(reporter, s != copy);
48 REPORTER_ASSERT(reporter, s == copy);
55 REPORTER_ASSERT(reporter, s != copy);
63 REPORTER_ASSERT(reporter, s != copy);
70 REPORTER_ASSERT(reporter, s != copy);
75 REPORTER_ASSERT(reporter, s == copy);
78 REPORTER_ASSERT(reporter, s == copy);
85 REPORTER_ASSERT(reporter,
88 assert_count(skiatest::Reporter* reporter, const SkClipStack& stack, int count) argument
100 TestClipStack(skiatest::Reporter* reporter) argument
[all...]
H A DColorTest.cpp15 static void test_premul(skiatest::Reporter* reporter) { argument
26 REPORTER_ASSERT(reporter, p0 == p1);
30 REPORTER_ASSERT(reporter, ax <= a);
42 static void test_interp(skiatest::Reporter* reporter) {
53 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a0) == dst);
54 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a255) == src);
59 static void test_fast_interp(skiatest::Reporter* reporter) { argument
70 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a0) == dst);
71 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a255) == src);
75 static void TestColor(skiatest::Reporter* reporter) { argument
[all...]
H A DDequeTest.cpp11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { argument
13 REPORTER_ASSERT(reporter, deq.empty());
14 REPORTER_ASSERT(reporter, 0 == deq.count());
15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize());
16 REPORTER_ASSERT(reporter, NULL == deq.front());
17 REPORTER_ASSERT(reporter, NULL == deq.back());
19 REPORTER_ASSERT(reporter, !deq.empty());
20 REPORTER_ASSERT(reporter, count == deq.count());
21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize());
22 REPORTER_ASSERT(reporter, NUL
32 assert_f2biter(skiatest::Reporter* reporter, const SkDeque& deq, int max, int min) argument
45 TestDeque(skiatest::Reporter* reporter) argument
[all...]
H A DDrawBitmapRectTest.cpp36 static void TestDrawBitmapRect(skiatest::Reporter* reporter) { argument
50 REPORTER_ASSERT(reporter, check_for_all_zeros(dst));
H A DDrawPathTest.cpp27 static void test_giantaa(skiatest::Reporter* reporter) { argument
41 static void TestDrawPath(skiatest::Reporter* reporter) { argument
42 test_giantaa(reporter);
H A DFillPathTest.cpp33 static void TestFillPathInverse(skiatest::Reporter* reporter) { argument
47 REPORTER_ASSERT(reporter, blitter.m_blitCount == expected_lines);
H A DGLInterfaceValidation.cpp13 static void GLInterfaceValidationTest(skiatest::Reporter* reporter) { argument
33 REPORTER_ASSERT(reporter, nativeContextInit);
43 REPORTER_ASSERT(reporter, mesaContextInit);
52 REPORTER_ASSERT(reporter, NULL != iface.get());
58 REPORTER_ASSERT(reporter, iface.get()->validate(binding));
H A DGeometryTest.cpp15 static void testChopCubic(skiatest::Reporter* reporter) { argument
34 static void TestGeometry(skiatest::Reporter* reporter) { argument
42 REPORTER_ASSERT(reporter, count == 1 || count == 2);
55 REPORTER_ASSERT(reporter, nearly_equal(cubic[i], dst[i]));
58 testChopCubic(reporter);
H A DInfRectTest.cpp17 static void check_invalid(skiatest::Reporter* reporter, argument
21 REPORTER_ASSERT(reporter, !rect.isFinite());
26 static void TestInfRect(skiatest::Reporter* reporter) { argument
36 REPORTER_ASSERT(reporter, rect.isFinite());
38 check_invalid(reporter, small, small, big, invalid);
39 check_invalid(reporter, small, small, invalid, big);
40 check_invalid(reporter, small, invalid, big, big);
41 check_invalid(reporter, invalid, small, big, big);
42 check_invalid(reporter, small, small, big, -invalid);
43 check_invalid(reporter, smal
[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);
30 static void TestParsePath(skiatest::Reporter* reporter) { argument
45 REPORTER_ASSERT(reporter, success);
48 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
50 test_to_from(reporter, path);
57 test_to_from(reporter, p);
59 test_to_from(reporter,
[all...]
H A DPointTest.cpp15 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, argument
21 REPORTER_ASSERT(reporter, s1 == s2);
22 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, expectedLength));
26 static void test_Normalize(skiatest::Reporter* reporter, argument
33 REPORTER_ASSERT(reporter, returned == oldLength);
34 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1));
37 void PointTest(skiatest::Reporter* reporter) { argument
38 test_length(reporter, SkIntToScalar(3), SkIntToScalar(4), SkIntToScalar(5));
39 test_length(reporter, SkFloatToScalar(0.6), SkFloatToScalar(0.8),
41 test_Normalize(reporter, SkIntToScala
[all...]
H A DPremulAlphaRoundTripTest.cpp45 void PremulAlphaRoundTripTest(skiatest::Reporter* reporter, argument
96 REPORTER_ASSERT(reporter, pixels1[i] == pixels2[i]);
H A DReader32Test.cpp14 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { argument
15 REPORTER_ASSERT(reporter, reader.eof());
16 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
17 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
21 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { argument
22 REPORTER_ASSERT(reporter, 0 == reader.offset());
23 REPORTER_ASSERT(reporter, reader.size() == reader.available());
24 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()));
25 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1));
26 REPORTER_ASSERT(reporter, reade
29 assert_empty(skiatest::Reporter* reporter, const SkReader32& reader) argument
38 Tests(skiatest::Reporter* reporter) argument
[all...]
H A DRegionTest.cpp41 static void TestRegion(skiatest::Reporter* reporter) { argument
46 REPORTER_ASSERT(reporter, test_rects(r2, SK_ARRAY_COUNT(r2)));
54 REPORTER_ASSERT(reporter, test_rects(rects, SK_ARRAY_COUNT(rects)));
65 REPORTER_ASSERT(reporter, test_rects(rect, N));
H A DShaderOpacityTest.cpp13 static void test_bitmap(skiatest::Reporter* reporter) { argument
20 REPORTER_ASSERT(reporter, shader);
21 REPORTER_ASSERT(reporter, !shader->isOpaque());
30 REPORTER_ASSERT(reporter, shader);
31 REPORTER_ASSERT(reporter, !shader->isOpaque());
38 REPORTER_ASSERT(reporter, shader);
39 REPORTER_ASSERT(reporter, shader->isOpaque());
46 REPORTER_ASSERT(reporter, shader);
47 REPORTER_ASSERT(reporter, !shader->isOpaque());
52 static void test_gradient(skiatest::Reporter* reporter) argument
96 test_color(skiatest::Reporter* reporter) argument
111 test_shader_opacity(skiatest::Reporter* reporter) argument
[all...]
H A DSortTest.cpp25 static void check_sort(skiatest::Reporter* reporter, const char label[], argument
32 reporter->reportFailed(str);
37 static void TestSort(skiatest::Reporter* reporter) { argument
46 check_sort(reporter, "Quick", array, count);
50 check_sort(reporter, "Heap", array, count);
H A DStringTest.cpp37 static void TestString(skiatest::Reporter* reporter) { argument
43 REPORTER_ASSERT(reporter, a.isEmpty());
44 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
52 REPORTER_ASSERT(reporter, !a.isEmpty());
53 REPORTER_ASSERT(reporter, a.size() == 5);
54 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
55 REPORTER_ASSERT(reporter, a.equals("hello", 5));
56 REPORTER_ASSERT(reporter, a.equals("hello"));
57 REPORTER_ASSERT(reporter, !a.equals("help"));
63 REPORTER_ASSERT(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

Completed in 191 milliseconds

1234