HomeSort by relevance Sort by last modified time
    Searched full:reporter (Results 1 - 25 of 107) sorted by null

1 2 3 4 5

  /external/skia/tests/
TestSize.cpp 4 static void TestISize(skiatest::Reporter* reporter) {
8 REPORTER_ASSERT(reporter, a.isEmpty());
10 REPORTER_ASSERT(reporter, a.isEmpty());
12 REPORTER_ASSERT(reporter, a.isEmpty());
14 REPORTER_ASSERT(reporter, a == b);
17 REPORTER_ASSERT(reporter, !a.isEmpty());
19 REPORTER_ASSERT(reporter, !b.isEmpty());
20 REPORTER_ASSERT(reporter, a == b);
21 REPORTER_ASSERT(reporter, !(a != b))
    [all...]
PathTest.cpp 5 static void check_convex_bounds(skiatest::Reporter* reporter, const SkPath& p,
7 REPORTER_ASSERT(reporter, p.isConvex());
8 REPORTER_ASSERT(reporter, p.getBounds() == bounds);
11 REPORTER_ASSERT(reporter, p2.isConvex());
12 REPORTER_ASSERT(reporter, p2.getBounds() == bounds);
16 REPORTER_ASSERT(reporter, other.isConvex());
17 REPORTER_ASSERT(reporter, other.getBounds() == bounds);
20 static void TestPath(skiatest::Reporter* reporter) {
    [all...]
MathTest.cpp 27 static void check_length(skiatest::Reporter* reporter,
36 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f);
65 static void assert_float_equal(skiatest::Reporter* reporter, const char op[],
70 reporter->reportFailed(desc);
74 static void test_float_cast(skiatest::Reporter* reporter, float x) {
77 assert_float_equal(reporter, "cast", x, ix, iix);
80 static void test_float_floor(skiatest::Reporter* reporter, float x)
    [all...]
StreamTest.cpp 15 static void test_buffer(skiatest::Reporter* reporter) {
37 REPORTER_ASSERT(reporter, ss > 0 && ss <= s);
38 REPORTER_ASSERT(reporter, bytesRead + ss <= size);
39 REPORTER_ASSERT(reporter,
43 REPORTER_ASSERT(reporter, bytesRead == size);
48 static void TestRStream(skiatest::Reporter* reporter) {
62 REPORTER_ASSERT(reporter, copyPtr == copy + sizeof(s));
63 REPORTER_ASSERT(reporter, memcmp(s, copy, sizeof(s)) == 0)
    [all...]
GeometryTest.cpp 4 static void TestGeometry(skiatest::Reporter* reporter) {
12 REPORTER_ASSERT(reporter, count == 1 || count == 2);
Sk64Test.cpp 9 static void bool_table_test(skiatest::Reporter* reporter,
12 REPORTER_ASSERT(reporter, a.isZero() != a.nonZero());
14 REPORTER_ASSERT(reporter, !a.isZero() == !table.zero);
15 REPORTER_ASSERT(reporter, !a.isPos() == !table.pos);
16 REPORTER_ASSERT(reporter, !a.isNeg() == !table.neg);
17 REPORTER_ASSERT(reporter, a.getSign() == table.sign);
27 static void TestSk64(skiatest::Reporter* reporter) {
44 REPORTER_ASSERT(reporter, a == b)
    [all...]
StringTest.cpp 4 static void TestString(skiatest::Reporter* reporter) {
10 REPORTER_ASSERT(reporter, a.isEmpty());
11 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
19 REPORTER_ASSERT(reporter, !a.isEmpty());
20 REPORTER_ASSERT(reporter, a.size() == 5);
21 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
22 REPORTER_ASSERT(reporter, a.equals("hello", 5));
23 REPORTER_ASSERT(reporter, a.equals("hello"));
24 REPORTER_ASSERT(reporter, !a.equals("help"))
    [all...]
ParsePathTest.cpp 4 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) {
10 REPORTER_ASSERT(reporter, success);
13 REPORTER_ASSERT(reporter, str == str2);
16 REPORTER_ASSERT(reporter, path == path2);
23 static void TestParsePath(skiatest::Reporter* reporter) {
38 REPORTER_ASSERT(reporter, success);
41 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
43 test_to_from(reporter, path)
    [all...]
TestClassDef.h 10 void MyTestFunction(skiatest::Reporter*)
20 virtual void onRun(Reporter* reporter) { function(reporter); } \
UtilsTest.cpp 9 static void test_search(skiatest::Reporter* reporter) {
20 REPORTER_ASSERT(reporter, array[i-1] <= array[i]);
26 REPORTER_ASSERT(reporter, index == i);
36 REPORTER_ASSERT(reporter,
40 REPORTER_ASSERT(reporter, index <= kSEARCH_COUNT);
42 REPORTER_ASSERT(reporter, value < array[index]);
44 REPORTER_ASSERT(reporter, value > array[index - 1]);
48 REPORTER_ASSERT(reporter, value > array[kSEARCH_COUNT - 1]);
54 static void test_utf16(skiatest::Reporter* reporter)
    [all...]
BitmapCopyTest.cpp 14 static void report_opaqueness(skiatest::Reporter* reporter, const SkBitmap& src,
20 reporter->reportFailed(str);
28 static void test_isOpaque(skiatest::Reporter* reporter, const SkBitmap& src,
43 REPORTER_ASSERT(reporter, bitmap.copyTo(&dst, dstConfig));
44 REPORTER_ASSERT(reporter, dst.config() == dstConfig);
46 report_opaqueness(reporter, bitmap, dst);
54 REPORTER_ASSERT(reporter, bitmap.copyTo(&dst, dstConfig));
55 REPORTER_ASSERT(reporter, dst.config() == dstConfig)
    [all...]
MatrixTest.cpp 30 static void test_flatten(skiatest::Reporter* reporter, const SkMatrix& m) {
35 REPORTER_ASSERT(reporter, size1 == size2);
36 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize);
40 REPORTER_ASSERT(reporter, size1 == size2);
41 REPORTER_ASSERT(reporter, m == m2);
45 REPORTER_ASSERT(reporter, size1 == size2);
46 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0);
49 void TestMatrix(skiatest::Reporter* reporter) {
    [all...]
PackBitsTest.cpp 16 static void test_pack16(skiatest::Reporter* reporter) {
35 REPORTER_ASSERT(reporter, match);
46 REPORTER_ASSERT(reporter, maxSize >= dstSize);
49 REPORTER_ASSERT(reporter, size == srcCount);
51 REPORTER_ASSERT(reporter, match);
66 static void test_pack8(skiatest::Reporter* reporter) {
83 REPORTER_ASSERT(reporter, dstSize <= maxSize);
89 REPORTER_ASSERT(reporter, match)
    [all...]
SortTest.cpp 18 static void check_sort(skiatest::Reporter* reporter, const char label[],
25 reporter->reportFailed(str);
30 static void TestSort(skiatest::Reporter* reporter) {
39 check_sort(reporter, "Quick", array, count);
43 check_sort(reporter, "Heap", array, count);
Test.cpp 5 Reporter::Reporter() {
9 void Reporter::resetReporting() {
15 void Reporter::startTest(Test* test) {
23 void Reporter::report(const char desc[], Result result) {
34 void Reporter::endTest(Test* test) {
48 void Test::setReporter(Reporter* r) {
ClipCubicTest.cpp 47 static void TestCubicClipping(skiatest::Reporter* reporter) {
65 REPORTER_ASSERT(reporter, success == true);
66 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
73 REPORTER_ASSERT(reporter, success == true);
74 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
81 REPORTER_ASSERT(reporter, success == true);
82 REPORTER_ASSERT(reporter, CurvesAreEqual(clipped, SetCurve(
89 REPORTER_ASSERT(reporter, success == false);
95 REPORTER_ASSERT(reporter, success == true)
    [all...]
PaintTest.cpp 7 static void regression_cubic(skiatest::Reporter* reporter) {
32 REPORTER_ASSERT(reporter, maxR.contains(strokeR));
35 static void TestPaint(skiatest::Reporter* reporter) {
39 regression_cubic(reporter);
Test.h 12 class Reporter : public SkRefCnt {
14 Reporter();
75 Reporter* getReporter() const { return fReporter; }
76 void setReporter(Reporter*);
83 virtual void onRun(Reporter*) = 0;
86 Reporter* fReporter;
skia_test.cpp 11 Iter(Reporter* r) : fReporter(r) {
42 Reporter* fReporter;
46 static const char* result2string(Reporter::Result result) {
47 return result == Reporter::kPassed ? "passed" : "FAILED";
50 class DebugfReporter : public Reporter {
62 virtual void onReport(const char desc[], Reporter::Result result) {
108 DebugfReporter reporter(androidMode);
109 Iter iter(&reporter);
116 reporter.setIndexOfTotal(index, count);
TriangulationTest.cpp 18 skiatest::Reporter* reporter) {
22 REPORTER_ASSERT(reporter, n % 3 == 0);
160 static void TestStarTriangulation(skiatest::Reporter* reporter) {
175 PrintTriangles(triangles, kNumStarVertices, star, reporter);
178 reporter->report("Triangulate Star", success ? reporter->kPassed
179 : reporter->kFailed);
184 static void TestStarHoleTriangulation(skiatest::Reporter* reporter)
    [all...]
SrcOverTest.cpp 20 static void test_srcover_hack(skiatest::Reporter* reporter) {
42 REPORTER_ASSERT(reporter, opaqueCounter0 == 256);
43 REPORTER_ASSERT(reporter, opaqueCounter1 == 256);
44 REPORTER_ASSERT(reporter, opaqueCounter2 == 256);
55 REPORTER_ASSERT(reporter, r0 <= 255 && r0 >= max);
57 REPORTER_ASSERT(reporter, r1 <= 255 && r1 >= max);
58 REPORTER_ASSERT(reporter, r2 <= 255 && r2 >= max);
ClipperTest.cpp 6 static void test_intersectline(skiatest::Reporter* reporter) {
35 REPORTER_ASSERT(reporter, !valid);
59 REPORTER_ASSERT(reporter, valid && !memcmp(&gFull[i], dst, sizeof(dst)));
78 REPORTER_ASSERT(reporter, valid &&
84 void TestClipper(skiatest::Reporter* reporter) {
85 test_intersectline(reporter);
  /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...]

Completed in 92 milliseconds

1 2 3 4 5