/external/skia/tests/ |
RefDictTest.cpp | 7 static void TestRefDict(skiatest::Reporter* reporter) { 11 REPORTER_ASSERT(reporter, NULL == dict.find(NULL)); 12 REPORTER_ASSERT(reporter, NULL == dict.find("foo")); 13 REPORTER_ASSERT(reporter, NULL == dict.find("bar")); 16 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 17 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 20 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 21 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 24 REPORTER_ASSERT(reporter, &data1 == dict.find("foo")) [all...] |
DequeTest.cpp | 4 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { 6 REPORTER_ASSERT(reporter, deq.empty()); 7 REPORTER_ASSERT(reporter, 0 == deq.count()); 8 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); 9 REPORTER_ASSERT(reporter, NULL == deq.front()); 10 REPORTER_ASSERT(reporter, NULL == deq.back()); 12 REPORTER_ASSERT(reporter, !deq.empty()); 13 REPORTER_ASSERT(reporter, count == deq.count()); 14 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()) [all...] |
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...] |
MetaDataTest.cpp | 4 static void test_ptrs(skiatest::Reporter* reporter) { 6 REPORTER_ASSERT(reporter, 1 == ref.getRefCnt()); 13 REPORTER_ASSERT(reporter, md0.findRefCnt(name)); 14 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref)); 15 REPORTER_ASSERT(reporter, 2 == ref.getRefCnt()); 18 REPORTER_ASSERT(reporter, md1.findRefCnt(name)); 19 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref)); 20 REPORTER_ASSERT(reporter, 3 == ref.getRefCnt()); 22 REPORTER_ASSERT(reporter, md0.removeRefCnt(name)) [all...] |
Reader32Test.cpp | 21 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { 22 REPORTER_ASSERT(reporter, reader.eof()); 23 REPORTER_ASSERT(reporter, reader.size() == reader.offset()); 24 REPORTER_ASSERT(reporter, (const char*)reader.peek() == 28 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { 29 REPORTER_ASSERT(reporter, 0 == reader.offset()); 30 REPORTER_ASSERT(reporter, reader.size() == reader.available()); 31 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size())) [all...] |
InfRectTest.cpp | 10 static void check_invalid(skiatest::Reporter* reporter, 14 REPORTER_ASSERT(reporter, !rect.hasValidCoordinates()); 19 static void TestInfRect(skiatest::Reporter* reporter) { 29 REPORTER_ASSERT(reporter, rect.hasValidCoordinates()); 31 check_invalid(reporter, small, small, big, invalid); 32 check_invalid(reporter, small, small, invalid, big); 33 check_invalid(reporter, small, invalid, big, big); 34 check_invalid(reporter, invalid, small, big, big) [all...] |
UtilsTest.cpp | 17 static void test_refptr(skiatest::Reporter* reporter) { 21 REPORTER_ASSERT(reporter, rc0.get() == NULL); 22 REPORTER_ASSERT(reporter, !rc0); 25 REPORTER_ASSERT(reporter, rc0 == rc1); 26 REPORTER_ASSERT(reporter, rc0.get() != r0); 29 REPORTER_ASSERT(reporter, rc0); 30 REPORTER_ASSERT(reporter, rc0 != rc1); 31 REPORTER_ASSERT(reporter, rc0.get() == r0); 34 REPORTER_ASSERT(reporter, rc1) [all...] |
ColorTest.cpp | 5 static void test_premul(skiatest::Reporter* reporter) { 16 REPORTER_ASSERT(reporter, p0 == p1); 20 REPORTER_ASSERT(reporter, ax <= a); 27 static void TestColor(skiatest::Reporter* reporter) { 28 test_premul(reporter);
|
Writer32Test.cpp | 22 static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { 25 REPORTER_ASSERT(reporter, i*4 == writer->size()); 28 REPORTER_ASSERT(reporter, data[i] == *addr); 32 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->size()); 34 REPORTER_ASSERT(reporter, !memcmp(data, buffer, sizeof(buffer))); 37 static void test2(skiatest::Reporter* reporter, SkWriter32* writer) { 46 REPORTER_ASSERT(reporter, writer->size() == len); 54 REPORTER_ASSERT(reporter, !reader.eof()) [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...] |
XfermodeTest.cpp | 11 static void test_asMode(skiatest::Reporter* reporter) { 16 REPORTER_ASSERT(reporter, reportedMode != mode); 19 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, &reportedMode)); 20 REPORTER_ASSERT(reporter, reportedMode == mode); 25 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode)); 26 REPORTER_ASSERT(reporter, reportedMode == mode); 29 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); 35 REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode)); 36 REPORTER_ASSERT(reporter, reportedMode == -1) [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...] |
PDFPrimitivesTest.cpp | 26 static void CheckObjectOutput(skiatest::Reporter* reporter, SkPDFObject* obj, 30 REPORTER_ASSERT(reporter, directSize == representation.size()); 34 REPORTER_ASSERT(reporter, directSize == buffer.getOffset()); 35 REPORTER_ASSERT(reporter, memcmp(buffer.getStream(), representation.c_str(), 49 REPORTER_ASSERT(reporter, 54 REPORTER_ASSERT(reporter, indirectSize == buffer.getOffset()); 55 REPORTER_ASSERT(reporter, memcmp(buffer.getStream(), header, 57 REPORTER_ASSERT(reporter, 60 REPORTER_ASSERT(reporter, [all...] |
FlateTest.cpp | 39 static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream, 53 REPORTER_ASSERT(reporter, status); 59 REPORTER_ASSERT(reporter, testData.getLength() == inputSize); 60 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(), 66 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024); 68 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024); 73 REPORTER_ASSERT(reporter, status); 79 REPORTER_ASSERT(reporter, compressed.getOffset() == inputSize); 80 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase() [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...] |
PathTest.cpp | 6 static void check_convexity(skiatest::Reporter* reporter, const SkPath& path, 9 REPORTER_ASSERT(reporter, c == expected); 12 static void test_convexity2(skiatest::Reporter* reporter) { 16 check_convexity(reporter, pt, SkPath::kConvex_Convexity); 22 check_convexity(reporter, pt, SkPath::kConvex_Convexity); 29 check_convexity(reporter, triLeft, SkPath::kConvex_Convexity); 36 check_convexity(reporter, triRight, SkPath::kConvex_Convexity); 44 check_convexity(reporter, square, SkPath::kConvex_Convexity) [all...] |
MathTest.cpp | 23 static void test_premul(skiatest::Reporter* reporter) { 62 static void check_length(skiatest::Reporter* reporter, 71 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f); 100 static void assert_float_equal(skiatest::Reporter* reporter, const char op[], 105 reporter->reportFailed(desc); 109 static void test_float_cast(skiatest::Reporter* reporter, float x) [all...] |
ClipStackTest.cpp | 6 static void test_assign_and_comparison(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, s == copy); 34 REPORTER_ASSERT(reporter, s != copy); 40 REPORTER_ASSERT(reporter, s == copy); 47 REPORTER_ASSERT(reporter, s != copy); 55 REPORTER_ASSERT(reporter, s != copy); 62 REPORTER_ASSERT(reporter, s != copy); 67 REPORTER_ASSERT(reporter, s == copy); 70 REPORTER_ASSERT(reporter, s == copy) [all...] |
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...] |
GeometryTest.cpp | 4 static void TestGeometry(skiatest::Reporter* reporter) { 12 REPORTER_ASSERT(reporter, count == 1 || count == 2);
|
TestClassDef.h | 10 void MyTestFunction(skiatest::Reporter*) 20 virtual void onRun(Reporter* reporter) { function(reporter); } \
|
MatrixTest.cpp | 32 static void test_flatten(skiatest::Reporter* reporter, const SkMatrix& m) { 37 REPORTER_ASSERT(reporter, size1 == size2); 38 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize); 42 REPORTER_ASSERT(reporter, size1 == size2); 43 REPORTER_ASSERT(reporter, m == m2); 47 REPORTER_ASSERT(reporter, size1 == size2); 48 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0); 51 void TestMatrix(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);
|
ColorFilterTest.cpp | 33 static void test_asColorMode(skiatest::Reporter* reporter) { 52 REPORTER_ASSERT(reporter, cf); 62 REPORTER_ASSERT(reporter, cf->asColorMode(&c, &m)); 75 REPORTER_ASSERT(reporter, c == expectedColor); 76 REPORTER_ASSERT(reporter, m == expectedMode); 81 REPORTER_ASSERT(reporter, cf2); 85 REPORTER_ASSERT(reporter, cf2->asColorMode(&c2, &m2)); 86 REPORTER_ASSERT(reporter, c2 == expectedColor); 87 REPORTER_ASSERT(reporter, m2 == expectedMode) [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/bot/ |
flakytestreporter_unittest.py | 60 reporter = FlakyTestReporter(tool, 'dummy-queue') 63 self.assertEqual(reporter._author_emails_for_test([]), set(emails)) 71 reporter = FlakyTestReporter(MockTool(), 'dummy-queue') 92 OutputCapture().assert_outputs(self, reporter._create_bug_for_flaky_test, ['foo/bar.html', ['test@test.com'], 'FLAKE_MESSAGE'], expected_stderr=expected_stderr) 96 reporter = FlakyTestReporter(tool, 'dummy-queue') 98 self.assertEqual(reporter._follow_duplicate_chain(bug).id(), 76) 104 reporter = FlakyTestReporter(tool, 'dummy-queue') 105 reporter._lookup_bug_for_flaky_test = lambda bug_id: None 146 OutputCapture().assert_outputs(self, reporter.report_flaky_tests, [patch, test_results, MockZipFile()], expected_stderr=expected_stderr) 149 reporter = FlakyTestReporter(MockTool(), 'dummy-queue' [all...] |