/external/chromium_org/third_party/skia/tests/ |
FlateTest.cpp | 31 static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream, 45 REPORTER_ASSERT(reporter, status); 51 REPORTER_ASSERT(reporter, testData.getLength() == inputSize); 52 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(), 58 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024); 60 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024); 67 REPORTER_ASSERT(reporter, status); 73 REPORTER_ASSERT(reporter, data1->size() == inputSize); 74 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase() [all...] |
SurfaceTest.cpp | 69 static void test_image(skiatest::Reporter* reporter) { 76 REPORTER_ASSERT(reporter, 1 == data->getRefCnt()); 78 REPORTER_ASSERT(reporter, 2 == data->getRefCnt()); 80 REPORTER_ASSERT(reporter, 1 == data->getRefCnt()); 115 static void test_imagepeek(skiatest::Reporter* reporter) { 139 REPORTER_ASSERT(reporter, gRec[i].fPeekShouldSucceed == success); 141 REPORTER_ASSERT(reporter, 10 == info.fWidth); 142 REPORTER_ASSERT(reporter, 10 == info.fHeight) [all...] |
RefCntTest.cpp | 30 static void test_refarray(skiatest::Reporter* reporter) { 31 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter); 36 REPORTER_ASSERT(reporter, 1 == array->getRefCnt()); 37 REPORTER_ASSERT(reporter, N == array->count()); 39 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter); 41 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter); 47 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter); 49 REPORTER_ASSERT(reporter, i == src[i].fCount); 53 REPORTER_ASSERT(reporter, 1 == array->getRefCnt()) [all...] |
SListTest.cpp | 18 static bool verifyEmptyList(skiatest::Reporter* reporter, 23 ERRORF(reporter, "%s - List not empty", stage); 27 ERRORF(reporter, "%s - List count is not zero, %d instead", stage, list.getCount()); 31 ERRORF(reporter, "%s - List has elements when empty", stage); 37 static bool verifyList(skiatest::Reporter* reporter, 43 ERRORF(reporter, "%s - List was too short, %d instead of %d", stage, list.getCount(), count); 49 ERRORF(reporter, "%s - List too short, should be %d", stage, count); 53 ERRORF(reporter, "%s - List entries at index %d of %d don't match", stage, index, count) [all...] |
TDStackNesterTest.cpp | 16 static void test_push(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 21 REPORTER_ASSERT(reporter, nester->count() == count + 1); 29 static void test_pop(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 37 REPORTER_ASSERT(reporter, top == value); 39 REPORTER_ASSERT(reporter, newCount == count - 1); 42 REPORTER_ASSERT(reporter, newCount == value); 51 static void test_nest(skiatest::Reporter* reporter, SkTDStackNester<int>* nester, int inc) [all...] |
DeferredCanvasTest.cpp | 52 static void TestDeferredCanvasBitmapAccess(skiatest::Reporter* reporter) { 61 REPORTER_ASSERT(reporter, 0xFFFFFFFF == read_pixel(surface, 0, 0)); 66 REPORTER_ASSERT(reporter, 0 == read_pixel(surface, 0, 0)); 105 static void TestDeferredCanvasWritePixelsToSurface(skiatest::Reporter* reporter) { 117 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); 118 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount); 122 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); 123 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount) [all...] |
PointTest.cpp | 14 static void test_casts(skiatest::Reporter* reporter) { 21 REPORTER_ASSERT(reporter, p.asScalars() == pPtr); 22 REPORTER_ASSERT(reporter, r.asScalars() == rPtr); 26 static void test_Normalize(skiatest::Reporter* reporter, 33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); 34 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1)); 39 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y [all...] |
OSPathTest.cpp | 16 * @param reporter Reporter for test conditions. 22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize); 43 REPORTER_ASSERT(reporter, basename.equals(filename)); 46 REPORTER_ASSERT(reporter, !basename.contains(SkPATH_SEPARATOR)); 50 REPORTER_ASSERT(reporter, basename.equals(filename)); 53 DEF_TEST(OSPath, reporter) { 56 test_dir_with_file(reporter, dir, filename) [all...] |
BitmapTest.cpp | 12 static void test_bigwidth(skiatest::Reporter* reporter) { 17 REPORTER_ASSERT(reporter, bm.setInfo(info)); 19 REPORTER_ASSERT(reporter, bm.setInfo(info)); 28 REPORTER_ASSERT(reporter, !bm.setInfo(info)); 34 DEF_TEST(Bitmap, reporter) { 40 REPORTER_ASSERT(reporter, setConf); 42 REPORTER_ASSERT(reporter, bm.allocPixels(NULL)); 44 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty()); 48 test_bigwidth(reporter); [all...] |
ObjectPoolTest.cpp | 21 static bool verifyPool(skiatest::Reporter* reporter, 26 ERRORF(reporter, "%s - Pool available is %d not %d", 31 ERRORF(reporter, "%s - Pool blocks is %d not %d", 39 static void testObjectPool(skiatest::Reporter* reporter) { 42 verifyPool(reporter, pool, "empty", 0, 0); 47 if (!verifyPool(reporter, pool, "acquire", available, blocks)) { 56 if (!verifyPool(reporter, pool, "release", available, blocks)) { 62 REPORTER_ASSERT(reporter, used.isEmpty()) [all...] |
InfRectTest.cpp | 21 static void test_center(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, 32 REPORTER_ASSERT(reporter, 44 REPORTER_ASSERT(reporter, ((r.left() + r.right()) >> 1) == cx); 45 REPORTER_ASSERT(reporter, ((r.top() + r.bottom()) >> 1) == cy); 49 static void check_invalid(skiatest::Reporter* reporter, 53 REPORTER_ASSERT(reporter, !rect.isFinite()); 58 DEF_TEST(InfRect, reporter) { [all...] |
PathTest.cpp | 90 static void test_path_to_region(skiatest::Reporter* reporter) { 116 static void test_path_close_issue1474(skiatest::Reporter* reporter) { 129 REPORTER_ASSERT(reporter, 50 == last.fX); 130 REPORTER_ASSERT(reporter, 50 == last.fY); 140 REPORTER_ASSERT(reporter, 75 == last.fX); 141 REPORTER_ASSERT(reporter, 75 == last.fY); 151 REPORTER_ASSERT(reporter, 85 == last.fX); 152 REPORTER_ASSERT(reporter, 85 == last.fY) [all...] |
/external/skia/tests/ |
FlateTest.cpp | 31 static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream, 45 REPORTER_ASSERT(reporter, status); 51 REPORTER_ASSERT(reporter, testData.getLength() == inputSize); 52 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(), 58 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024); 60 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024); 67 REPORTER_ASSERT(reporter, status); 73 REPORTER_ASSERT(reporter, data1->size() == inputSize); 74 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase() [all...] |
SurfaceTest.cpp | 69 static void test_image(skiatest::Reporter* reporter) { 76 REPORTER_ASSERT(reporter, 1 == data->getRefCnt()); 78 REPORTER_ASSERT(reporter, 2 == data->getRefCnt()); 80 REPORTER_ASSERT(reporter, 1 == data->getRefCnt()); 115 static void test_imagepeek(skiatest::Reporter* reporter) { 139 REPORTER_ASSERT(reporter, gRec[i].fPeekShouldSucceed == success); 141 REPORTER_ASSERT(reporter, 10 == info.fWidth); 142 REPORTER_ASSERT(reporter, 10 == info.fHeight) [all...] |
RefCntTest.cpp | 30 static void test_refarray(skiatest::Reporter* reporter) { 31 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter); 36 REPORTER_ASSERT(reporter, 1 == array->getRefCnt()); 37 REPORTER_ASSERT(reporter, N == array->count()); 39 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter); 41 REPORTER_ASSERT(reporter, 0 == InstCounterClass::gInstCounter); 47 REPORTER_ASSERT(reporter, N == InstCounterClass::gInstCounter); 49 REPORTER_ASSERT(reporter, i == src[i].fCount); 53 REPORTER_ASSERT(reporter, 1 == array->getRefCnt()) [all...] |
SListTest.cpp | 18 static bool verifyEmptyList(skiatest::Reporter* reporter, 23 ERRORF(reporter, "%s - List not empty", stage); 27 ERRORF(reporter, "%s - List count is not zero, %d instead", stage, list.getCount()); 31 ERRORF(reporter, "%s - List has elements when empty", stage); 37 static bool verifyList(skiatest::Reporter* reporter, 43 ERRORF(reporter, "%s - List was too short, %d instead of %d", stage, list.getCount(), count); 49 ERRORF(reporter, "%s - List too short, should be %d", stage, count); 53 ERRORF(reporter, "%s - List entries at index %d of %d don't match", stage, index, count) [all...] |
TDStackNesterTest.cpp | 16 static void test_push(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 21 REPORTER_ASSERT(reporter, nester->count() == count + 1); 29 static void test_pop(skiatest::Reporter* reporter, SkTDStackNester<int>* nester) { 37 REPORTER_ASSERT(reporter, top == value); 39 REPORTER_ASSERT(reporter, newCount == count - 1); 42 REPORTER_ASSERT(reporter, newCount == value); 51 static void test_nest(skiatest::Reporter* reporter, SkTDStackNester<int>* nester, int inc) [all...] |
DeferredCanvasTest.cpp | 52 static void TestDeferredCanvasBitmapAccess(skiatest::Reporter* reporter) { 61 REPORTER_ASSERT(reporter, 0xFFFFFFFF == read_pixel(surface, 0, 0)); 66 REPORTER_ASSERT(reporter, 0 == read_pixel(surface, 0, 0)); 105 static void TestDeferredCanvasWritePixelsToSurface(skiatest::Reporter* reporter) { 117 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); 118 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount); 122 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); 123 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount) [all...] |
PointTest.cpp | 14 static void test_casts(skiatest::Reporter* reporter) { 21 REPORTER_ASSERT(reporter, p.asScalars() == pPtr); 22 REPORTER_ASSERT(reporter, r.asScalars() == rPtr); 26 static void test_Normalize(skiatest::Reporter* reporter, 33 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(returned, oldLength)); 34 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1)); 39 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y [all...] |
OSPathTest.cpp | 16 * @param reporter Reporter for test conditions. 22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, 38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize); 43 REPORTER_ASSERT(reporter, basename.equals(filename)); 46 REPORTER_ASSERT(reporter, !basename.contains(SkPATH_SEPARATOR)); 50 REPORTER_ASSERT(reporter, basename.equals(filename)); 53 DEF_TEST(OSPath, reporter) { 56 test_dir_with_file(reporter, dir, filename) [all...] |
BitmapTest.cpp | 12 static void test_bigwidth(skiatest::Reporter* reporter) { 17 REPORTER_ASSERT(reporter, bm.setInfo(info)); 19 REPORTER_ASSERT(reporter, bm.setInfo(info)); 28 REPORTER_ASSERT(reporter, !bm.setInfo(info)); 34 DEF_TEST(Bitmap, reporter) { 40 REPORTER_ASSERT(reporter, setConf); 42 REPORTER_ASSERT(reporter, bm.allocPixels(NULL)); 44 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty()); 48 test_bigwidth(reporter); [all...] |
ObjectPoolTest.cpp | 21 static bool verifyPool(skiatest::Reporter* reporter, 26 ERRORF(reporter, "%s - Pool available is %d not %d", 31 ERRORF(reporter, "%s - Pool blocks is %d not %d", 39 static void testObjectPool(skiatest::Reporter* reporter) { 42 verifyPool(reporter, pool, "empty", 0, 0); 47 if (!verifyPool(reporter, pool, "acquire", available, blocks)) { 56 if (!verifyPool(reporter, pool, "release", available, blocks)) { 62 REPORTER_ASSERT(reporter, used.isEmpty()) [all...] |
InfRectTest.cpp | 21 static void test_center(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, 32 REPORTER_ASSERT(reporter, 44 REPORTER_ASSERT(reporter, ((r.left() + r.right()) >> 1) == cx); 45 REPORTER_ASSERT(reporter, ((r.top() + r.bottom()) >> 1) == cy); 49 static void check_invalid(skiatest::Reporter* reporter, 53 REPORTER_ASSERT(reporter, !rect.isFinite()); 58 DEF_TEST(InfRect, reporter) { [all...] |
/external/mockito/src/org/mockito/internal/verification/checkers/ |
MissingInvocationChecker.java | 10 import org.mockito.exceptions.Reporter; 19 private final Reporter reporter; field in class:MissingInvocationChecker 23 this(new InvocationsFinder(), new Reporter()); 26 MissingInvocationChecker(InvocationsFinder finder, Reporter reporter) { 28 this.reporter = reporter; 40 reporter.argumentsAreDifferent(smartPrinter.getWanted(), smartPrinter.getActual(), similar.getLocation()); 42 reporter.wantedButNotInvoked(wanted, invocations) [all...] |
NumberOfInvocationsInOrderChecker.java | 10 import org.mockito.exceptions.Reporter; 21 private final Reporter reporter; field in class:NumberOfInvocationsInOrderChecker 26 this(new InvocationsFinder(), new Reporter()); 29 NumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter) { 31 this.reporter = reporter; 41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastInvocation); 44 reporter.tooManyActualInvocationsInOrder(wantedCount, actualCount, wanted, firstUndesired) [all...] |