• Home
  • Raw
  • Download

Lines Matching refs:REPORTER_ASSERT

45                     REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI);  in are_equal()
48 REPORTER_ASSERT(reporter, foundZeroSignDiff); in are_equal()
59 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI); in are_equal()
62 REPORTER_ASSERT(reporter, foundNaN); in are_equal()
80 REPORTER_ASSERT(reporter, buffer[0] == a); in assert9()
81 REPORTER_ASSERT(reporter, buffer[1] == b); in assert9()
82 REPORTER_ASSERT(reporter, buffer[2] == c); in assert9()
83 REPORTER_ASSERT(reporter, buffer[3] == d); in assert9()
84 REPORTER_ASSERT(reporter, buffer[4] == e); in assert9()
85 REPORTER_ASSERT(reporter, buffer[5] == f); in assert9()
86 REPORTER_ASSERT(reporter, buffer[6] == g); in assert9()
87 REPORTER_ASSERT(reporter, buffer[7] == h); in assert9()
88 REPORTER_ASSERT(reporter, buffer[8] == i); in assert9()
108 REPORTER_ASSERT(reporter, !m.isIdentity()); in test_set9()
110 REPORTER_ASSERT(reporter, m.isIdentity()); in test_set9()
120 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType()); in test_matrix_recttorect()
121 REPORTER_ASSERT(reporter, matrix.rectStaysRect()); in test_matrix_recttorect()
125 REPORTER_ASSERT(reporter, SkMatrix::kTranslate_Mask == matrix.getType()); in test_matrix_recttorect()
126 REPORTER_ASSERT(reporter, matrix.rectStaysRect()); in test_matrix_recttorect()
130 REPORTER_ASSERT(reporter, in test_matrix_recttorect()
132 REPORTER_ASSERT(reporter, matrix.rectStaysRect()); in test_matrix_recttorect()
137 REPORTER_ASSERT(reporter, SkMatrix::kScale_Mask == matrix.getType()); in test_matrix_recttorect()
138 REPORTER_ASSERT(reporter, matrix.rectStaysRect()); in test_matrix_recttorect()
147 REPORTER_ASSERT(reporter, size1 == size2); in test_flatten()
148 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize); in test_flatten()
152 REPORTER_ASSERT(reporter, size1 == size3); in test_flatten()
153 REPORTER_ASSERT(reporter, are_equal(reporter, m, m2)); in test_flatten()
157 REPORTER_ASSERT(reporter, size1 == size3); in test_flatten()
158 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0); in test_flatten()
167 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMinScale()); in test_matrix_min_max_scale()
168 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxScale()); in test_matrix_min_max_scale()
170 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
174 REPORTER_ASSERT(reporter, SK_Scalar1 * 2 == scale.getMinScale()); in test_matrix_min_max_scale()
175 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxScale()); in test_matrix_min_max_scale()
177REPORTER_ASSERT(reporter, success && SK_Scalar1 * 2 == scales[0] && SK_Scalar1 * 4 == scales[1]); in test_matrix_min_max_scale()
182 REPORTER_ASSERT(reporter, SK_Scalar1 / 4 == rot90Scale.getMinScale()); in test_matrix_min_max_scale()
183 REPORTER_ASSERT(reporter, SK_Scalar1 / 2 == rot90Scale.getMaxScale()); in test_matrix_min_max_scale()
185REPORTER_ASSERT(reporter, success && SK_Scalar1 / 4 == scales[0] && SK_Scalar1 / 2 == scales[1]); in test_matrix_min_max_scale()
189REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, rotate.getMinScale(), SK_ScalarNearlyZer… in test_matrix_min_max_scale()
190REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, rotate.getMaxScale(), SK_ScalarNearlyZer… in test_matrix_min_max_scale()
192 REPORTER_ASSERT(reporter, success); in test_matrix_min_max_scale()
193 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[0], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
194 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(SK_Scalar1, scales[1], SK_ScalarNearlyZero)); in test_matrix_min_max_scale()
198 REPORTER_ASSERT(reporter, SK_Scalar1 == translate.getMinScale()); in test_matrix_min_max_scale()
199 REPORTER_ASSERT(reporter, SK_Scalar1 == translate.getMaxScale()); in test_matrix_min_max_scale()
201 REPORTER_ASSERT(reporter, success && SK_Scalar1 == scales[0] && SK_Scalar1 == scales[1]); in test_matrix_min_max_scale()
206 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspX.getMinScale()); in test_matrix_min_max_scale()
207 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspX.getMaxScale()); in test_matrix_min_max_scale()
209 REPORTER_ASSERT(reporter, !success); in test_matrix_min_max_scale()
217 REPORTER_ASSERT(reporter, !success); in test_matrix_min_max_scale()
225 REPORTER_ASSERT(reporter, success && 0 == scales[0]); in test_matrix_min_max_scale()
230 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspY.getMinScale()); in test_matrix_min_max_scale()
231 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspY.getMaxScale()); in test_matrix_min_max_scale()
235REPORTER_ASSERT(reporter, !success && -5 * SK_Scalar1 == scales[0] && -5 * SK_Scalar1 == scales[1… in test_matrix_min_max_scale()
243 REPORTER_ASSERT(reporter, invertible); in test_matrix_min_max_scale()
256 REPORTER_ASSERT(reporter, (minScale < 0) == (maxScale < 0)); in test_matrix_min_max_scale()
257 REPORTER_ASSERT(reporter, (maxScale < 0) == mat.hasPerspective()); in test_matrix_min_max_scale()
261 REPORTER_ASSERT(reporter, success == !mat.hasPerspective()); in test_matrix_min_max_scale()
262 REPORTER_ASSERT(reporter, !success || (scales[0] == minScale && scales[1] == maxScale)); in test_matrix_min_max_scale()
286 REPORTER_ASSERT(reporter, d / maxScale < gVectorScaleTol); in test_matrix_min_max_scale()
287 REPORTER_ASSERT(reporter, minScale / d < gVectorScaleTol); in test_matrix_min_max_scale()
295 REPORTER_ASSERT(reporter, max / maxScale >= gCloseScaleTol); in test_matrix_min_max_scale()
296 REPORTER_ASSERT(reporter, minScale / min >= gCloseScaleTol); in test_matrix_min_max_scale()
305 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
306 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
311 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
312 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
317 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
318 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
323 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
324 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
329 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
330 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
336 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
337 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
343 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
344 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
349 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
350 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
355 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
356 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
362 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
363 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
369 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
370 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
375 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
376 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
381 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
382 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
388 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
389 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
397 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
398 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
404 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
405 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
411 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
412 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
418 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
419 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
425 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
426 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
430 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
431 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
436 REPORTER_ASSERT(reporter, !mat.isSimilarity()); in test_matrix_preserve_shape()
437 REPORTER_ASSERT(reporter, !mat.preservesRightAngles()); in test_matrix_preserve_shape()
443 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
444 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
450 REPORTER_ASSERT(reporter, mat.isSimilarity()); in test_matrix_preserve_shape()
451 REPORTER_ASSERT(reporter, mat.preservesRightAngles()); in test_matrix_preserve_shape()
510 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
511 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
513 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, nullptr, nullptr, nullptr)); in test_matrix_decomposition()
517 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
518 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
522 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
523 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
527 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
528 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
533 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
534 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
539 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
540 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
545 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
546 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
551 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
552 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
557 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
558 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
563 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
564 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
569 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
570 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
575 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
576 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
582 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
583 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
589 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
590 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
596 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
597 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
611 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
616 REPORTER_ASSERT(reporter, SkScalarNearlyZero(perpdot)); in test_matrix_decomposition()
622 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
623 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
629 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
630 REPORTER_ASSERT(reporter, check_matrix_recomposition(mat, rotation1, scale, rotation2)); in test_matrix_decomposition()
636 REPORTER_ASSERT(reporter, !SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
639 REPORTER_ASSERT(reporter, !SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
646 REPORTER_ASSERT(reporter, !SkDecomposeUpper2x2(mat, &rotation1, &scale, &rotation2)); in test_matrix_decomposition()
707 REPORTER_ASSERT(reporter, scalar_array_nearly_equal_relative(randTriples, dst, kTripleCount*3)); in test_matrix_homogeneous()
717 REPORTER_ASSERT(reporter, scalar_array_nearly_equal_relative(&dst[i*3], zeros, 3)); in test_matrix_homogeneous()
727 REPORTER_ASSERT(reporter, scalar_array_nearly_equal_relative(dst, zeros, 3)); in test_matrix_homogeneous()
745 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[0], pnt.fX)); in test_matrix_homogeneous()
746 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[1], pnt.fY)); in test_matrix_homogeneous()
747 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[2], SK_Scalar1)); in test_matrix_homogeneous()
759 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[0], pnt.fX)); in test_matrix_homogeneous()
760 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[1], pnt.fY)); in test_matrix_homogeneous()
761 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[2], SK_Scalar1)); in test_matrix_homogeneous()
775 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[0], pnt.fX)); in test_matrix_homogeneous()
776 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[1], pnt.fY)); in test_matrix_homogeneous()
777 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(dst[2], SK_Scalar1)); in test_matrix_homogeneous()
786 REPORTER_ASSERT(reporter, naive_homogeneous_mapping(mats[i], &randTriples[j*3], dst)); in test_matrix_homogeneous()
811 REPORTER_ASSERT(reporter, check_decompScale(m)); in test_decompScale()
813 REPORTER_ASSERT(reporter, check_decompScale(m)); in test_decompScale()
815 REPORTER_ASSERT(reporter, check_decompScale(m)); in test_decompScale()
818 REPORTER_ASSERT(reporter, !check_decompScale(m)); in test_decompScale()
826 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in DEF_TEST()
828 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
831 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in DEF_TEST()
833 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
837 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in DEF_TEST()
839 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
844 REPORTER_ASSERT(reporter, mat.invert(nullptr)); in DEF_TEST()
845 REPORTER_ASSERT(reporter, mat.invert(&inverse)); in DEF_TEST()
847 REPORTER_ASSERT(reporter, is_identity(iden1)); in DEF_TEST()
849 REPORTER_ASSERT(reporter, is_identity(iden2)); in DEF_TEST()
854 REPORTER_ASSERT(reporter, !mat.invert(nullptr)); in DEF_TEST()
855 REPORTER_ASSERT(reporter, !mat.invert(&inverse)); in DEF_TEST()
857 REPORTER_ASSERT(reporter, !mat.invert(nullptr)); in DEF_TEST()
858 REPORTER_ASSERT(reporter, !mat.invert(&inverse)); in DEF_TEST()
864 REPORTER_ASSERT(reporter, !mat.invert(nullptr)); in DEF_TEST()
865 REPORTER_ASSERT(reporter, !mat.invert(&inverse)); in DEF_TEST()
900 REPORTER_ASSERT(reporter, in DEF_TEST()
913 REPORTER_ASSERT(reporter, mat.asAffine(affine)); in DEF_TEST()
916 REPORTER_ASSERT(reporter, affineEqual(ScaleX)); in DEF_TEST()
917 REPORTER_ASSERT(reporter, affineEqual(SkewY)); in DEF_TEST()
918 REPORTER_ASSERT(reporter, affineEqual(SkewX)); in DEF_TEST()
919 REPORTER_ASSERT(reporter, affineEqual(ScaleY)); in DEF_TEST()
920 REPORTER_ASSERT(reporter, affineEqual(TransX)); in DEF_TEST()
921 REPORTER_ASSERT(reporter, affineEqual(TransY)); in DEF_TEST()
925 REPORTER_ASSERT(reporter, !mat.asAffine(affine)); in DEF_TEST()
932 REPORTER_ASSERT(reporter, are_equal(reporter, mat, mat2)); in DEF_TEST()
938 REPORTER_ASSERT(reporter, !are_equal(reporter, mat, mat2)); in DEF_TEST()
952 REPORTER_ASSERT(reporter, mat == mat2); in DEF_TEST()
965 REPORTER_ASSERT(r, expected == SkMatrix::Concat(a, b)); in DEF_TEST()
989 REPORTER_ASSERT(r, dst[0] == dst[1]); in DEF_TEST()
990 REPORTER_ASSERT(r, dst[0] == dst[2]); in DEF_TEST()