/external/skia/tests/ |
H A D | BitSetTest.cpp | 11 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 D | GLProgramsTest.cpp | 13 static void GLProgramsTest(skiatest::Reporter* reporter, GrContext* context) { argument 15 REPORTER_ASSERT(reporter, shadersGpu->programUnitTest());
|
H A D | RefDictTest.cpp | 14 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 D | BitmapGetColorTest.cpp | 11 static void TestGetColor(skiatest::Reporter* reporter) { argument 38 REPORTER_ASSERT(reporter, c == gRec[i].fOutColor);
|
H A D | PathMeasureTest.cpp | 11 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 D | QuickRejectTest.cpp | 37 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 D | TestSize.cpp | 11 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 D | ClipStackTest.cpp | 13 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 D | ColorTest.cpp | 15 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 D | DequeTest.cpp | 11 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 D | DrawBitmapRectTest.cpp | 36 static void TestDrawBitmapRect(skiatest::Reporter* reporter) { argument 50 REPORTER_ASSERT(reporter, check_for_all_zeros(dst));
|
H A D | DrawPathTest.cpp | 27 static void test_giantaa(skiatest::Reporter* reporter) { argument 41 static void TestDrawPath(skiatest::Reporter* reporter) { argument 42 test_giantaa(reporter);
|
H A D | FillPathTest.cpp | 33 static void TestFillPathInverse(skiatest::Reporter* reporter) { argument 47 REPORTER_ASSERT(reporter, blitter.m_blitCount == expected_lines);
|
H A D | GLInterfaceValidation.cpp | 13 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 D | GeometryTest.cpp | 15 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 D | InfRectTest.cpp | 17 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 D | ParsePathTest.cpp | 11 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 D | PointTest.cpp | 15 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 D | PremulAlphaRoundTripTest.cpp | 45 void PremulAlphaRoundTripTest(skiatest::Reporter* reporter, argument 96 REPORTER_ASSERT(reporter, pixels1[i] == pixels2[i]);
|
H A D | Reader32Test.cpp | 14 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 D | RegionTest.cpp | 41 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 D | ShaderOpacityTest.cpp | 13 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 D | SortTest.cpp | 25 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 D | StringTest.cpp | 37 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 D | Options.java | 132 * @param reporter a DocErrorReporter for generating error messages 137 DocErrorReporter reporter) { 138 final DocErrorReporter errOut = reporter; 136 validOptions(String[][] options, DocErrorReporter reporter) argument
|