/external/chromium_org/third_party/skia/tests/ |
ErrorTest.cpp | 14 skiatest::Reporter *fReporter; 19 REPORTER_ASSERT( reporter, (err = SkGetLastError()) == errcode); \ 30 DEF_TEST(Error, reporter) { 38 context.fReporter = reporter;
|
FlatDataTest.cpp | 37 * @param reporter Object to report failures. 42 static void testCreate(skiatest::Reporter* reporter, const T& obj) { 47 REPORTER_ASSERT(reporter, *data1 == *data2); 50 DEF_TEST(FlatData, reporter) { 61 testCreate<SkFlattenableTraits>(reporter, *shader); 65 testCreate<SkFlattenableTraits>(reporter, *cf); 69 testCreate<SkFlattenableTraits>(reporter, *xfer);
|
GeometryTest.cpp | 15 static void testChopCubic(skiatest::Reporter* reporter) { 32 REPORTER_ASSERT(reporter, count); 36 DEF_TEST(Geometry, reporter) { 44 REPORTER_ASSERT(reporter, count == 1 || count == 2); 57 REPORTER_ASSERT(reporter, nearly_equal(cubic[i], dst[i])); 60 testChopCubic(reporter);
|
GpuDrawPathTest.cpp | 21 static void test_drawPathEmpty(skiatest::Reporter*, SkCanvas* canvas) { 44 DEF_GPUTEST(GpuDrawPath, reporter, factory) { 61 test_drawPathEmpty(reporter, surface->getCanvas());
|
ImageIsOpaqueTest.cpp | 17 static void check_isopaque(skiatest::Reporter* reporter, SkSurface* surface, bool expectedOpaque) { 19 REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque); 22 DEF_TEST(ImageIsOpaqueTest, reporter) { 25 check_isopaque(reporter, surfaceTransparent, false); 29 check_isopaque(reporter, surfaceOpaque, true); 34 DEF_GPUTEST(ImageIsOpaqueTest_GPU, reporter, factory) { 50 check_isopaque(reporter, surfaceTransparent, false); 56 check_isopaque(reporter, surfaceOpaque, true);
|
Matrix44Test.cpp | 30 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[], 35 REPORTER_ASSERT(reporter, data[0] == m0); 36 REPORTER_ASSERT(reporter, data[1] == m1); 37 REPORTER_ASSERT(reporter, data[2] == m2); 38 REPORTER_ASSERT(reporter, data[3] == m3); 40 REPORTER_ASSERT(reporter, data[4] == m4); 41 REPORTER_ASSERT(reporter, data[5] == m5); 42 REPORTER_ASSERT(reporter, data[6] == m6); 43 REPORTER_ASSERT(reporter, data[7] == m7) [all...] |
ParsePathTest.cpp | 11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) { 17 REPORTER_ASSERT(reporter, success); 20 REPORTER_ASSERT(reporter, str == str2); 23 REPORTER_ASSERT(reporter, path == path2); 41 DEF_TEST(ParsePath, reporter) { 45 REPORTER_ASSERT(reporter, success); 48 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); 50 test_to_from(reporter, path); 57 test_to_from(reporter, p) [all...] |
QuickRejectTest.cpp | 52 static void test_drawBitmap(skiatest::Reporter* reporter) { 65 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 69 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 73 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 77 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 85 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 88 DEF_TEST(QuickReject, reporter) { 89 test_drawBitmap(reporter);
|
SmallAllocatorTest.cpp | 30 template<uint32_t kMaxObjects, size_t kBytes> void test_allocator(skiatest::Reporter* reporter) { 35 REPORTER_ASSERT(reporter, c != NULL); 36 REPORTER_ASSERT(reporter, CountingClass::GetCount() == static_cast<int>(i+1)); 39 REPORTER_ASSERT(reporter, CountingClass::GetCount() == 0); 44 DEF_TEST(SmallAllocator_destructor, reporter) { 48 test_allocator<5, 20>(reporter); 49 test_allocator<10, 40>(reporter); 50 test_allocator<20, 80>(reporter); 55 test_allocator<50, 20>(reporter); [all...] |
SortTest.cpp | 24 static void check_sort(skiatest::Reporter* reporter, const char label[], 28 ERRORF(reporter, "%sSort [%d] failed %d %d", 34 DEF_TEST(Sort, reporter) { 54 check_sort(reporter, "Heap", workingArray, sortedArray, count); 58 check_sort(reporter, "Quick", workingArray, sortedArray, count);
|
StreamTest.cpp | 21 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, 28 REPORTER_ASSERT(reporter, bytes == len); 29 REPORTER_ASSERT(reporter, !memcmp(tmp, src, len)); 34 REPORTER_ASSERT(reporter, 0 == bytes); 36 REPORTER_ASSERT(reporter, stream->isAtEnd()); 39 static void test_filestreams(skiatest::Reporter* reporter, const char* tmpDir) { 47 ERRORF(reporter, "Failed to create tmp file %s\n", path.c_str()); 58 REPORTER_ASSERT(reporter, stream.isValid()) [all...] |
StrokeTest.cpp | 21 static void test_strokerect(skiatest::Reporter* reporter) { 44 REPORTER_ASSERT(reporter, equal(outer, fillPath.getBounds())); 48 REPORTER_ASSERT(reporter, fillPath.isNestedRects(nested) == isMiter); 52 REPORTER_ASSERT(reporter, equal(nested[0], outer)); 53 REPORTER_ASSERT(reporter, equal(nested[1], inner)); 58 DEF_TEST(Stroke, reporter) { 59 test_strokerect(reporter);
|
TArrayTest.cpp | 14 static void TestTSet_basic(skiatest::Reporter* reporter) { 18 REPORTER_ASSERT(reporter, a.empty()); 19 REPORTER_ASSERT(reporter, a.count() == 0); 23 REPORTER_ASSERT(reporter, !a.empty()); 24 REPORTER_ASSERT(reporter, a.count() == 1); 28 REPORTER_ASSERT(reporter, a.empty()); 29 REPORTER_ASSERT(reporter, a.count() == 0); 33 REPORTER_ASSERT(reporter, a.push_back() = 1); 35 REPORTER_ASSERT(reporter, !a.empty()) [all...] |
UtilsTest.cpp | 28 static void test_autounref(skiatest::Reporter* reporter) { 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()) [all...] |
/external/objenesis/tck/src/org/objenesis/tck/ |
Main.java | 67 TextReporter reporter = new TextReporter(System.out, System.err); local 69 runTest(new ObjenesisStd(), reporter, "Objenesis std", "candidates/candidates.properties"); 70 runTest(new ObjenesisSerializer(), reporter, "Objenesis serializer", 75 reporter.printResult(result); 91 private static void runTest(Objenesis objenesis, Reporter reporter, String description, 101 tck.runTests(reporter);
|
/external/skia/dm/ |
DMGpuGMTask.cpp | 13 Reporter* reporter, 19 : GpuTask(reporter, taskRunner)
|
/external/skia/tests/ |
ClipCacheTest.cpp | 44 static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) { 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, 108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID()); 110 REPORTER_ASSERT(reporter, mask == cache.getLastMask()) [all...] |
ErrorTest.cpp | 14 skiatest::Reporter *fReporter; 19 REPORTER_ASSERT( reporter, (err = SkGetLastError()) == errcode); \ 30 DEF_TEST(Error, reporter) { 35 context.fReporter = reporter;
|
FlatDataTest.cpp | 37 * @param reporter Object to report failures. 42 static void testCreate(skiatest::Reporter* reporter, const T& obj) { 47 REPORTER_ASSERT(reporter, *data1 == *data2); 50 DEF_TEST(FlatData, reporter) { 61 testCreate<SkFlattenableTraits>(reporter, *shader); 65 testCreate<SkFlattenableTraits>(reporter, *cf); 69 testCreate<SkFlattenableTraits>(reporter, *xfer);
|
GeometryTest.cpp | 15 static void testChopCubic(skiatest::Reporter* reporter) { 32 REPORTER_ASSERT(reporter, count); 36 DEF_TEST(Geometry, reporter) { 44 REPORTER_ASSERT(reporter, count == 1 || count == 2); 57 REPORTER_ASSERT(reporter, nearly_equal(cubic[i], dst[i])); 60 testChopCubic(reporter);
|
ParsePathTest.cpp | 11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) { 17 REPORTER_ASSERT(reporter, success); 20 REPORTER_ASSERT(reporter, str == str2); 23 REPORTER_ASSERT(reporter, path == path2); 41 DEF_TEST(ParsePath, reporter) { 45 REPORTER_ASSERT(reporter, success); 48 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); 50 test_to_from(reporter, path); 57 test_to_from(reporter, p) [all...] |
QuickRejectTest.cpp | 52 static void test_drawBitmap(skiatest::Reporter* reporter) { 65 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 69 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 73 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 77 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 85 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 88 DEF_TEST(QuickReject, reporter) { 89 test_drawBitmap(reporter);
|
SmallAllocatorTest.cpp | 30 template<uint32_t kMaxObjects, size_t kBytes> void test_allocator(skiatest::Reporter* reporter) { 35 REPORTER_ASSERT(reporter, c != NULL); 36 REPORTER_ASSERT(reporter, CountingClass::GetCount() == static_cast<int>(i+1)); 39 REPORTER_ASSERT(reporter, CountingClass::GetCount() == 0); 44 DEF_TEST(SmallAllocator_destructor, reporter) { 48 test_allocator<5, 20>(reporter); 49 test_allocator<10, 40>(reporter); 50 test_allocator<20, 80>(reporter); 55 test_allocator<50, 20>(reporter); [all...] |
SortTest.cpp | 24 static void check_sort(skiatest::Reporter* reporter, const char label[], 28 ERRORF(reporter, "%sSort [%d] failed %d %d", 34 DEF_TEST(Sort, reporter) { 54 check_sort(reporter, "Heap", workingArray, sortedArray, count); 58 check_sort(reporter, "Quick", workingArray, sortedArray, count);
|
StreamTest.cpp | 21 static void test_loop_stream(skiatest::Reporter* reporter, SkStream* stream, 28 REPORTER_ASSERT(reporter, bytes == len); 29 REPORTER_ASSERT(reporter, !memcmp(tmp, src, len)); 34 REPORTER_ASSERT(reporter, 0 == bytes); 36 REPORTER_ASSERT(reporter, stream->isAtEnd()); 39 static void test_filestreams(skiatest::Reporter* reporter, const char* tmpDir) { 47 ERRORF(reporter, "Failed to create tmp file %s\n", path.c_str()); 58 REPORTER_ASSERT(reporter, stream.isValid()) [all...] |