/external/skia/tests/ |
H A D | BitSetTest.cpp | 11 static void TestBitSet(skiatest::Reporter* reporter) { argument 13 REPORTER_ASSERT(reporter, set0.isBitSet(0) == false); 14 REPORTER_ASSERT(reporter, set0.isBitSet(32767) == false); 15 REPORTER_ASSERT(reporter, set0.isBitSet(65535) == false); 18 REPORTER_ASSERT(reporter, set0 == set1); 21 REPORTER_ASSERT(reporter, set0.isBitSet(22) == true); 23 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true); 25 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true); 27 REPORTER_ASSERT(reporter, set0.isBitSet(22) == false); 28 REPORTER_ASSERT(reporter, set [all...] |
H A D | RefDictTest.cpp | 14 static void TestRefDict(skiatest::Reporter* reporter) { argument 18 REPORTER_ASSERT(reporter, NULL == dict.find(NULL)); 19 REPORTER_ASSERT(reporter, NULL == dict.find("foo")); 20 REPORTER_ASSERT(reporter, NULL == dict.find("bar")); 23 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 24 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo")); 28 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt()); 31 REPORTER_ASSERT(reporter, &data1 == dict.find("foo")); 32 REPORTER_ASSERT(reporter, [all...] |
H A D | DequeTest.cpp | 11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) { argument 13 REPORTER_ASSERT(reporter, deq.empty()); 14 REPORTER_ASSERT(reporter, 0 == deq.count()); 15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); 16 REPORTER_ASSERT(reporter, NULL == deq.front()); 17 REPORTER_ASSERT(reporter, NULL == deq.back()); 19 REPORTER_ASSERT(reporter, !deq.empty()); 20 REPORTER_ASSERT(reporter, count == deq.count()); 21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize()); 22 REPORTER_ASSERT(reporter, NUL 32 assert_f2biter(skiatest::Reporter* reporter, const SkDeque& deq, int max, int min) argument 45 TestDeque(skiatest::Reporter* reporter) argument [all...] |
H A D | TestSize.cpp | 11 static void TestISize(skiatest::Reporter* reporter) { argument 15 REPORTER_ASSERT(reporter, a.isEmpty()); 17 REPORTER_ASSERT(reporter, a.isEmpty()); 19 REPORTER_ASSERT(reporter, a.isEmpty()); 21 REPORTER_ASSERT(reporter, a == b); 24 REPORTER_ASSERT(reporter, !a.isEmpty()); 26 REPORTER_ASSERT(reporter, !b.isEmpty()); 27 REPORTER_ASSERT(reporter, a == b); 28 REPORTER_ASSERT(reporter, !(a != b)); 29 REPORTER_ASSERT(reporter, 33 TestSize(skiatest::Reporter* reporter) argument [all...] |
H A D | MetaDataTest.cpp | 11 static void test_ptrs(skiatest::Reporter* reporter) { argument 13 REPORTER_ASSERT(reporter, 1 == ref.getRefCnt()); 20 REPORTER_ASSERT(reporter, md0.findRefCnt(name)); 21 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref)); 22 REPORTER_ASSERT(reporter, 2 == ref.getRefCnt()); 25 REPORTER_ASSERT(reporter, md1.findRefCnt(name)); 26 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref)); 27 REPORTER_ASSERT(reporter, 3 == ref.getRefCnt()); 29 REPORTER_ASSERT(reporter, md0.removeRefCnt(name)); 30 REPORTER_ASSERT(reporter, !md 37 TestMetaData(skiatest::Reporter* reporter) argument [all...] |
H A D | Reader32Test.cpp | 14 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) { argument 15 REPORTER_ASSERT(reporter, reader.eof()); 16 REPORTER_ASSERT(reporter, reader.size() == reader.offset()); 17 REPORTER_ASSERT(reporter, (const char*)reader.peek() == 21 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) { argument 22 REPORTER_ASSERT(reporter, 0 == reader.offset()); 23 REPORTER_ASSERT(reporter, reader.size() == reader.available()); 24 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size())); 25 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1)); 26 REPORTER_ASSERT(reporter, reade 29 assert_empty(skiatest::Reporter* reporter, const SkReader32& reader) argument 38 Tests(skiatest::Reporter* reporter) argument [all...] |
H A D | XfermodeTest.cpp | 18 static void test_asMode(skiatest::Reporter* reporter) { argument 23 REPORTER_ASSERT(reporter, reportedMode != mode); 26 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, &reportedMode)); 27 REPORTER_ASSERT(reporter, reportedMode == mode); 32 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode)); 33 REPORTER_ASSERT(reporter, reportedMode == mode); 36 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode); 42 REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode)); 43 REPORTER_ASSERT(reporter, reportedMode == -1); 44 REPORTER_ASSERT(reporter, !SkXfermod 49 test_IsMode(skiatest::Reporter* reporter) argument 66 test_xfermodes(skiatest::Reporter* reporter) argument [all...] |
H A D | GLProgramsTest.cpp | 13 static void GLProgramsTest(skiatest::Reporter* reporter, GrContext* context) { argument 15 REPORTER_ASSERT(reporter, shadersGpu->programUnitTest());
|
H A D | Matrix44Test.cpp | 23 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[], argument 28 REPORTER_ASSERT(reporter, data[0] == m0); 29 REPORTER_ASSERT(reporter, data[1] == m1); 30 REPORTER_ASSERT(reporter, data[2] == m2); 31 REPORTER_ASSERT(reporter, data[3] == m3); 33 REPORTER_ASSERT(reporter, data[4] == m4); 34 REPORTER_ASSERT(reporter, data[5] == m5); 35 REPORTER_ASSERT(reporter, data[6] == m6); 36 REPORTER_ASSERT(reporter, data[7] == m7); 38 REPORTER_ASSERT(reporter, dat 67 test_common_angles(skiatest::Reporter* reporter) argument 79 TestMatrix44(skiatest::Reporter* reporter) argument [all...] |
H A D | InfRectTest.cpp | 17 static void check_invalid(skiatest::Reporter* reporter, argument 21 REPORTER_ASSERT(reporter, !rect.isFinite()); 26 static void TestInfRect(skiatest::Reporter* reporter) { argument 36 REPORTER_ASSERT(reporter, rect.isFinite()); 38 check_invalid(reporter, small, small, big, invalid); 39 check_invalid(reporter, small, small, invalid, big); 40 check_invalid(reporter, small, invalid, big, big); 41 check_invalid(reporter, invalid, small, big, big); 42 check_invalid(reporter, small, small, big, -invalid); 43 check_invalid(reporter, smal [all...] |
H A D | UtilsTest.cpp | 24 static void test_refptr(skiatest::Reporter* reporter) { argument 28 REPORTER_ASSERT(reporter, rc0.get() == NULL); 29 REPORTER_ASSERT(reporter, !rc0); 32 REPORTER_ASSERT(reporter, rc0 == rc1); 33 REPORTER_ASSERT(reporter, rc0.get() != r0); 36 REPORTER_ASSERT(reporter, rc0); 37 REPORTER_ASSERT(reporter, rc0 != rc1); 38 REPORTER_ASSERT(reporter, rc0.get() == r0); 41 REPORTER_ASSERT(reporter, rc1); 42 REPORTER_ASSERT(reporter, rc 53 test_autounref(skiatest::Reporter* reporter) argument 78 test_search(skiatest::Reporter* reporter) argument 123 test_utf16(skiatest::Reporter* reporter) argument 142 TestUTF(skiatest::Reporter* reporter) argument [all...] |
H A D | Writer32Test.cpp | 15 static void test1(skiatest::Reporter* reporter, SkWriter32* writer) { argument 18 REPORTER_ASSERT(reporter, i*4 == writer->size()); 21 REPORTER_ASSERT(reporter, data[i] == *addr); 25 REPORTER_ASSERT(reporter, sizeof(buffer) == writer->size()); 27 REPORTER_ASSERT(reporter, !memcmp(data, buffer, sizeof(buffer))); 30 static void test2(skiatest::Reporter* reporter, SkWriter32* writer) { argument 39 REPORTER_ASSERT(reporter, writer->size() == len); 47 REPORTER_ASSERT(reporter, !reader.eof()); 49 REPORTER_ASSERT(reporter, i == len); 50 REPORTER_ASSERT(reporter, strle 56 Tests(skiatest::Reporter* reporter) argument [all...] |
H A D | ParsePathTest.cpp | 11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) { argument 17 REPORTER_ASSERT(reporter, success); 20 REPORTER_ASSERT(reporter, str == str2); 23 REPORTER_ASSERT(reporter, path == path2); 30 static void TestParsePath(skiatest::Reporter* reporter) { argument 45 REPORTER_ASSERT(reporter, success); 48 REPORTER_ASSERT(reporter, expectedBounds == pathBounds); 50 test_to_from(reporter, path); 57 test_to_from(reporter, p); 59 test_to_from(reporter, [all...] |
H A D | PointTest.cpp | 15 static void test_length(skiatest::Reporter* reporter, SkScalar x, SkScalar y, argument 21 REPORTER_ASSERT(reporter, s1 == s2); 22 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(s1, expectedLength)); 26 static void test_Normalize(skiatest::Reporter* reporter, argument 33 REPORTER_ASSERT(reporter, returned == oldLength); 34 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(newLength, SK_Scalar1)); 37 void PointTest(skiatest::Reporter* reporter) { argument 38 test_length(reporter, SkIntToScalar(3), SkIntToScalar(4), SkIntToScalar(5)); 39 test_length(reporter, SkFloatToScalar(0.6), SkFloatToScalar(0.8), 41 test_Normalize(reporter, SkIntToScala [all...] |
H A D | DataRefTest.cpp | 19 static void assert_len(skiatest::Reporter* reporter, SkData* ref, size_t len) { argument 20 REPORTER_ASSERT(reporter, ref->size() == len); 23 static void assert_data(skiatest::Reporter* reporter, SkData* ref, argument 25 REPORTER_ASSERT(reporter, ref->size() == len); 26 REPORTER_ASSERT(reporter, !memcmp(ref->data(), data, len)); 29 void TestDataRef(skiatest::Reporter* reporter) { argument 44 assert_len(reporter, r0, 0); 45 assert_len(reporter, r1, strlen(str)); 46 assert_len(reporter, r2, N * sizeof(int)); 47 assert_len(reporter, r [all...] |
H A D | PaintTest.cpp | 14 static void test_copy(skiatest::Reporter* reporter) { argument 28 REPORTER_ASSERT(reporter, paint == copiedPaint); 34 REPORTER_ASSERT(reporter, paintGenID == copiedPaintGenID); 35 REPORTER_ASSERT(reporter, !memcmp(&paint, &copiedPaint, sizeof(paint))); 40 REPORTER_ASSERT(reporter, paint == copiedPaint); 44 REPORTER_ASSERT(reporter, paint.getGenerationID() == paintGenID); 45 REPORTER_ASSERT(reporter, copiedPaint.getGenerationID() != copiedPaintGenID); 47 REPORTER_ASSERT(reporter, memcmp(&paint, &copiedPaint, sizeof(paint))); 54 REPORTER_ASSERT(reporter, cleanPaint == paint); 55 REPORTER_ASSERT(reporter, cleanPain 68 regression_cubic(skiatest::Reporter* reporter) argument 100 TestPaint(skiatest::Reporter* reporter) argument [all...] |
H A D | ShaderOpacityTest.cpp | 13 static void test_bitmap(skiatest::Reporter* reporter) { argument 20 REPORTER_ASSERT(reporter, shader); 21 REPORTER_ASSERT(reporter, !shader->isOpaque()); 30 REPORTER_ASSERT(reporter, shader); 31 REPORTER_ASSERT(reporter, !shader->isOpaque()); 38 REPORTER_ASSERT(reporter, shader); 39 REPORTER_ASSERT(reporter, shader->isOpaque()); 46 REPORTER_ASSERT(reporter, shader); 47 REPORTER_ASSERT(reporter, !shader->isOpaque()); 52 static void test_gradient(skiatest::Reporter* reporter) argument 96 test_color(skiatest::Reporter* reporter) argument 111 test_shader_opacity(skiatest::Reporter* reporter) argument [all...] |
H A D | StringTest.cpp | 37 static void TestString(skiatest::Reporter* reporter) { argument 43 REPORTER_ASSERT(reporter, a.isEmpty()); 44 REPORTER_ASSERT(reporter, a == b && a == c && a == d); 52 REPORTER_ASSERT(reporter, !a.isEmpty()); 53 REPORTER_ASSERT(reporter, a.size() == 5); 54 REPORTER_ASSERT(reporter, a == b && a == c && a == d); 55 REPORTER_ASSERT(reporter, a.equals("hello", 5)); 56 REPORTER_ASSERT(reporter, a.equals("hello")); 57 REPORTER_ASSERT(reporter, !a.equals("help")); 63 REPORTER_ASSERT(reporter, [all...] |
H A D | FlateTest.cpp | 33 static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream, argument 47 REPORTER_ASSERT(reporter, status); 53 REPORTER_ASSERT(reporter, testData.getLength() == inputSize); 54 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(), 60 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024); 62 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024); 69 REPORTER_ASSERT(reporter, status); 75 REPORTER_ASSERT(reporter, data1.size() == inputSize); 76 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase(), 81 REPORTER_ASSERT(reporter, testDat 86 TestFlateCompression(skiatest::Reporter* reporter) argument [all...] |
H A D | MathTest.cpp | 72 static void test_blend(skiatest::Reporter* reporter) { argument 88 REPORTER_ASSERT(reporter, false); 118 static void check_length(skiatest::Reporter* reporter, argument 127 REPORTER_ASSERT(reporter, len > 0.999f && len < 1.001f); 156 static void assert_float_equal(skiatest::Reporter* reporter, const char op[], argument 161 reporter->reportFailed(desc); 165 static void test_float_cast(skiatest::Reporter* reporter, float x) { argument 168 assert_float_equal(reporter, "cast", x, ix, iix); 171 static void test_float_floor(skiatest::Reporter* reporter, float x) { argument 174 assert_float_equal(reporter, "floo 177 test_float_round(skiatest::Reporter* reporter, float x) argument 184 test_float_ceil(skiatest::Reporter* reporter, float x) argument 190 test_float_conversions(skiatest::Reporter* reporter, float x) argument 197 test_int2float(skiatest::Reporter* reporter, int ival) argument 205 unittest_fastfloat(skiatest::Reporter* reporter) argument 245 unittest_isfinite(skiatest::Reporter* reporter) argument 273 test_muldiv255(skiatest::Reporter* reporter) argument 296 test_muldiv255ceiling(skiatest::Reporter* reporter) argument 309 test_copysign(skiatest::Reporter* reporter) argument 349 TestMath(skiatest::Reporter* reporter) argument [all...] |
H A D | PathMeasureTest.cpp | 11 static void TestPathMeasure(skiatest::Reporter* reporter) { argument 28 REPORTER_ASSERT(reporter, length == SK_Scalar1*5); 56 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4); 59 REPORTER_ASSERT(reporter, length == SK_Scalar1); 62 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent)); 63 REPORTER_ASSERT(reporter, 65 REPORTER_ASSERT(reporter, position.fY == 0); 66 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1); 67 REPORTER_ASSERT(reporter, tangent.fY == 0); 84 REPORTER_ASSERT(reporter, lengt [all...] |
H A D | ColorTest.cpp | 15 static void test_premul(skiatest::Reporter* reporter) { argument 26 REPORTER_ASSERT(reporter, p0 == p1); 30 REPORTER_ASSERT(reporter, ax <= a); 42 static void test_interp(skiatest::Reporter* reporter) { 53 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a0) == dst); 54 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a255) == src); 59 static void test_fast_interp(skiatest::Reporter* reporter) { argument 70 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a0) == dst); 71 REPORTER_ASSERT(reporter, SkFastFourByteInterp(src, dst, a255) == src); 75 static void TestColor(skiatest::Reporter* reporter) { argument [all...] |
H A D | ScalarTest.cpp | 53 static void test_floatclass(skiatest::Reporter* reporter, float value, FloatClass fc) { argument 56 REPORTER_ASSERT(reporter, !!sk_float_isfinite(value) == (fc == kFinite)); 57 REPORTER_ASSERT(reporter, !!sk_float_isinf(value) == (fc == kInfinite)); 58 REPORTER_ASSERT(reporter, !!sk_float_isnan(value) == (fc == kNaN)); 61 static void test_isfinite(skiatest::Reporter* reporter) { argument 72 test_floatclass(reporter, 0, kFinite); 73 test_floatclass(reporter, max, kFinite); 74 test_floatclass(reporter, -max, kFinite); 75 test_floatclass(reporter, inf, kInfinite); 76 test_floatclass(reporter, 131 TestScalar(skiatest::Reporter* reporter) argument [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/bot/ |
H A D | 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 [all...] |
/external/webkit/Tools/Scripts/webkitpy/tool/commands/ |
H A D | bugfortest.py | 41 reporter = FlakyTestReporter(tool, "webkitpy") 43 bug = reporter._lookup_bug_for_flaky_test(search_string) 45 bug = reporter._follow_duplicate_chain(bug)
|