/external/chromium_org/third_party/skia/tests/ |
DrawBitmapRectTest.cpp | 37 static void test_faulty_pixelref(skiatest::Reporter* reporter) { 43 REPORTER_ASSERT(reporter, installSuccess); 92 static void test_treatAsSprite(skiatest::Reporter* reporter) { 104 REPORTER_ASSERT(reporter, treat_as_sprite(mat, size, 0)); 113 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, 0)); 114 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits)); 122 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits)); 124 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits)) [all...] |
SerializationTest.cpp | 26 static void TestAlignment(T* testObj, skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); 32 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); 137 static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) { 141 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); 152 REPORTER_ASSERT(reporter, !buffer.isValid()); 161 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); 164 REPORTER_ASSERT(reporter, static_cast<size_t>(peekAfter - peekBefore) == bytesWritten) [all...] |
SkResourceCacheTest.cpp | 49 DEF_TEST(ResourceCache_SingleAllocationByteLimit, reporter) { 61 REPORTER_ASSERT(reporter, test_scaled_image_cache_useage()); 67 REPORTER_ASSERT(reporter, test_scaled_image_cache_useage()); 73 REPORTER_ASSERT(reporter, !test_scaled_image_cache_useage()); 91 DEF_TEST(BitmapCache_add_rect, reporter) { 110 REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedBitmap.getGenerationID(), SkIRect::MakeWH(4, 6), cachedBitmap, cache)); 111 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); 113 REPORTER_ASSERT(reporter, !SkBitmapCache::Add(cachedBitmap.getGenerationID(), SkIRect::MakeXYWH(-1, 0, 5, 5), cachedBitmap, cache)); 114 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)); 117 REPORTER_ASSERT(reporter, !SkBitmapCache::Find(cachedBitmap.getGenerationID(), rect, &bm, cache)) [all...] |
ImageCacheTest.cpp | 44 static void test_cache(skiatest::Reporter* reporter, SkResourceCache& cache, bool testPurge) { 49 REPORTER_ASSERT(reporter, !cache.find(key, TestingRec::Visitor, &value)); 50 REPORTER_ASSERT(reporter, -1 == value); 54 REPORTER_ASSERT(reporter, cache.find(key, TestingRec::Visitor, &value)); 55 REPORTER_ASSERT(reporter, i == value); 83 DEF_TEST(ImageCache, reporter) { 88 test_cache(reporter, cache, true); 95 test_cache(reporter, cache, true); 99 test_cache(reporter, cache, false) [all...] |
PathOpsDTriangleTest.cpp | 31 DEF_TEST(PathOpsTriangleUtilities, reporter) { 38 REPORTER_ASSERT(reporter, 0); 43 REPORTER_ASSERT(reporter, 0); 58 DEF_TEST(PathOpsTriangleOneOff, reporter) { 66 REPORTER_ASSERT(reporter, 0);
|
PathOpsQuadReduceOrderTest.cpp | 20 static void oneOffTest(skiatest::Reporter* reporter) { 29 static void standardTestCases(skiatest::Reporter* reporter) { 65 DEF_TEST(PathOpsReduceOrderQuad, reporter) { 66 oneOffTest(reporter); 67 standardTestCases(reporter);
|
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);
|
AAClipTest.cpp | 132 static void test_rgn(skiatest::Reporter* reporter) { 137 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 145 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 153 REPORTER_ASSERT(reporter, equalsAAClip(rgn)); 180 static void test_path_bounds(skiatest::Reporter* reporter) { 187 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()); 189 REPORTER_ASSERT(reporter, height == clip.getBounds().height()); 201 REPORTER_ASSERT(reporter, sheight == path.getBounds().height()) [all...] |
PathOpsAngleIdeas.cpp | 41 static double testArc(skiatest::Reporter* reporter, const SkDQuad& quad, const SkDQuad& arcRef, 69 REPORTER_ASSERT(reporter, smallest >= 0); 70 REPORTER_ASSERT(reporter, t >= 0 && t <= 1); 74 static void orderQuads(skiatest::Reporter* reporter, const SkDQuad& quad, double radius, 89 double t = testArc(reporter, quad, circle[octant], octant); 104 static double quadAngle(skiatest::Reporter* reporter, const SkDQuad& quad, double t) { 107 REPORTER_ASSERT(reporter, angle >= 0 && angle <= 8) [all...] |
BBoxHierarchyTest.cpp | 75 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 81 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 86 skiatest::Reporter* reporter) { 89 REPORTER_ASSERT(reporter, tree); 120 run_queries(reporter, rand, rects, *tree); 121 REPORTER_ASSERT(reporter, NUM_RECTS == tree->getCount()); 122 REPORTER_ASSERT(reporter, 126 REPORTER_ASSERT(reporter, 0 == tree->getCount()) [all...] |
/external/mockito/src/org/mockito/internal/verification/checkers/ |
MissingInvocationInOrderChecker.java | 10 import org.mockito.exceptions.Reporter; 21 private final Reporter reporter; field in class:MissingInvocationInOrderChecker 25 this(new InvocationsFinder(), new Reporter()); 28 MissingInvocationInOrderChecker(InvocationsFinder finder, Reporter reporter) { 30 this.reporter = reporter; 57 reporter.argumentsAreDifferent(smartPrinter.getWanted(), smartPrinter.getActual(), similar.getLocation()); 59 reporter.wantedButNotInvoked(wanted) [all...] |
NonGreedyNumberOfInvocationsInOrderChecker.java | 8 import org.mockito.exceptions.Reporter; 22 private final Reporter reporter; field in class:NonGreedyNumberOfInvocationsInOrderChecker 26 this(new InvocationsFinder(), new Reporter(), new InvocationMarker()); 29 NonGreedyNumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter, InvocationMarker marker ) { 31 this.reporter = reporter; 41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastLocation );
|
/external/skia/tests/ |
DrawBitmapRectTest.cpp | 40 static void test_faulty_pixelref(skiatest::Reporter* reporter) { 46 REPORTER_ASSERT(reporter, installSuccess); 95 static void test_treatAsSprite(skiatest::Reporter* reporter) { 107 REPORTER_ASSERT(reporter, treat_as_sprite(mat, size, 0)); 116 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, 0)); 117 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits)); 125 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits)); 127 REPORTER_ASSERT(reporter, !treat_as_sprite(mat, size, bilerBits)) [all...] |
PictureTest.cpp | 479 static void test_gatherpixelrefs(skiatest::Reporter* reporter) { 501 REPORTER_ASSERT(reporter, pic->willPlayBackBitmaps() || N == 0); 510 ERRORF(reporter, "SkPictureUtils::GatherPixelRefs returned " 516 REPORTER_ASSERT(reporter, 1 == count || 2 == count); 518 REPORTER_ASSERT(reporter, gatheredRefs[0] == refs[i]); 520 REPORTER_ASSERT(reporter, 553 ERRORF(reporter, "PixelRef missing %d %s", 568 ERRORF(reporter, "PixelRef missing %d %s", 584 static void test_gatherpixelrefsandrects(skiatest::Reporter* reporter) [all...] |
BBoxHierarchyTest.cpp | 75 static void run_queries(skiatest::Reporter* reporter, SkRandom& rand, DataRect rects[], 81 REPORTER_ASSERT(reporter, verify_query(query, rects, hits)); 86 skiatest::Reporter* reporter) { 89 REPORTER_ASSERT(reporter, NULL != tree); 120 run_queries(reporter, rand, rects, *tree); 121 REPORTER_ASSERT(reporter, NUM_RECTS == tree->getCount()); 122 REPORTER_ASSERT(reporter, 126 REPORTER_ASSERT(reporter, 0 == tree->getCount()) [all...] |
BitmapCopyTest.cpp | 21 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src, 23 ERRORF(reporter, "src %s opaque:%d, dst %s opaque:%d", 33 static void test_isOpaque(skiatest::Reporter* reporter, 39 REPORTER_ASSERT(reporter, srcPremul.copyTo(&dst, dstColorType)); 40 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType); 42 report_opaqueness(reporter, srcPremul, dst); 46 REPORTER_ASSERT(reporter, srcOpaque.copyTo(&dst, dstColorType)); 47 REPORTER_ASSERT(reporter, dst.colorType() == dstColorType) [all...] |
PathOpsDTriangleTest.cpp | 31 DEF_TEST(PathOpsTriangleUtilities, reporter) { 38 REPORTER_ASSERT(reporter, 0); 43 REPORTER_ASSERT(reporter, 0); 58 DEF_TEST(PathOpsTriangleOneOff, reporter) { 66 REPORTER_ASSERT(reporter, 0);
|
PathOpsQuadReduceOrderTest.cpp | 20 static void oneOffTest(skiatest::Reporter* reporter) { 29 static void standardTestCases(skiatest::Reporter* reporter) { 65 DEF_TEST(PathOpsReduceOrderQuad, reporter) { 66 oneOffTest(reporter); 67 standardTestCases(reporter);
|
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);
|
PathOpsAngleIdeas.cpp | 41 static double testArc(skiatest::Reporter* reporter, const SkDQuad& quad, const SkDQuad& arcRef, 69 REPORTER_ASSERT(reporter, smallest >= 0); 70 REPORTER_ASSERT(reporter, t >= 0 && t <= 1); 74 static void orderQuads(skiatest::Reporter* reporter, const SkDQuad& quad, double radius, 89 double t = testArc(reporter, quad, circle[octant], octant); 104 static double quadAngle(skiatest::Reporter* reporter, const SkDQuad& quad, double t) { 107 REPORTER_ASSERT(reporter, angle >= 0 && angle <= 8) [all...] |
/external/stlport/test/unit/cppunit/ |
test_main.cpp | 30 Reporter *TestCase::m_reporter = 0; 37 int TestCase::run(Reporter *in_reporter, const char *in_testName, bool invert) { 107 CPPUNIT_NS::Reporter* reporter; local 109 reporter = new FileReporter(fileName, doMonitoring); 111 reporter = new FileReporter(stdout, doMonitoring); 115 num_errors = CPPUNIT_NS::TestCase::run(reporter, xtestName, true); 117 num_errors = CPPUNIT_NS::TestCase::run(reporter, testName); 120 reporter->printSummary(); 121 delete reporter; [all...] |
/ndk/tests/device/test-gnustl-full/unit/cppunit/ |
test_main.cpp | 30 Reporter *TestCase::m_reporter = 0; 37 int TestCase::run(Reporter *in_reporter, const char *in_testName, bool invert) { 107 CPPUNIT_NS::Reporter* reporter; local 109 reporter = new FileReporter(fileName, doMonitoring); 111 reporter = new FileReporter(stdout, doMonitoring); 115 num_errors = CPPUNIT_NS::TestCase::run(reporter, xtestName, true); 117 num_errors = CPPUNIT_NS::TestCase::run(reporter, testName); 120 reporter->printSummary(); 121 delete reporter; [all...] |
/ndk/tests/device/test-stlport/unit/cppunit/ |
test_main.cpp | 30 Reporter *TestCase::m_reporter = 0; 37 int TestCase::run(Reporter *in_reporter, const char *in_testName, bool invert) { 107 CPPUNIT_NS::Reporter* reporter; local 109 reporter = new FileReporter(fileName, doMonitoring); 111 reporter = new FileReporter(stdout, doMonitoring); 115 num_errors = CPPUNIT_NS::TestCase::run(reporter, xtestName, true); 117 num_errors = CPPUNIT_NS::TestCase::run(reporter, testName); 120 reporter->printSummary(); 121 delete reporter; [all...] |
/external/chromium_org/content/renderer/media/crypto/ |
key_systems_support_uma.cc | 54 class KeySystemsSupportUMA::Reporter { 56 explicit Reporter(const std::string& key_system); 57 ~Reporter(); 70 KeySystemsSupportUMA::Reporter::Reporter(const std::string& key_system) 77 KeySystemsSupportUMA::Reporter::~Reporter() {} 79 void KeySystemsSupportUMA::Reporter::Report(bool has_type, bool is_supported) { 98 reporters_.set(key_system, scoped_ptr<Reporter>(new Reporter(key_system))) 103 Reporter* reporter = GetReporter(key_system); local 111 Reporter* reporter = GetReporter(key_system); local 119 Reporters::iterator reporter = reporters_.find(key_system); local [all...] |
/external/objenesis/tck/src/org/objenesis/tck/ |
TCK.java | 32 * implementations, reporting the results to a {@link Reporter}. 45 * Reporter reporter = new TextReporter(System.out, System.err); 46 * tck.runTests(reporter); 51 * @see Reporter 85 * @param reporter Where to report the results of the test to. 87 public void runTests(Reporter reporter) { 88 reporter.startTests(describePlatform(), findAllDescriptions(candidates, descriptions), 100 reporter.startTest(candidateDescription, objenesisDescription) [all...] |