Lines Matching refs:REPORTER_ASSERT
53 REPORTER_ASSERT(reporter, aVal == bVal && aValI == aValI);
56 REPORTER_ASSERT(reporter, foundZeroSignDiff);
67 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI);
70 REPORTER_ASSERT(reporter, foundNaN);
73 REPORTER_ASSERT(reporter, false);
92 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType());
93 REPORTER_ASSERT(reporter, matrix.rectStaysRect());
97 REPORTER_ASSERT(reporter, SkMatrix::kTranslate_Mask == matrix.getType());
98 REPORTER_ASSERT(reporter, matrix.rectStaysRect());
102 REPORTER_ASSERT(reporter,
104 REPORTER_ASSERT(reporter, matrix.rectStaysRect());
109 REPORTER_ASSERT(reporter, SkMatrix::kScale_Mask == matrix.getType());
110 REPORTER_ASSERT(reporter, matrix.rectStaysRect());
118 REPORTER_ASSERT(reporter, size1 == size2);
119 REPORTER_ASSERT(reporter, size1 <= SkMatrix::kMaxFlattenSize);
123 REPORTER_ASSERT(reporter, size1 == size3);
124 REPORTER_ASSERT(reporter, are_equal(reporter, m, m2));
128 REPORTER_ASSERT(reporter, size1 == size3);
129 REPORTER_ASSERT(reporter, memcmp(buffer, buffer2, size1) == 0);
135 REPORTER_ASSERT(reporter, SK_Scalar1 == identity.getMaxStretch());
139 REPORTER_ASSERT(reporter, SK_Scalar1 * 4 == scale.getMaxStretch());
144 REPORTER_ASSERT(reporter, SK_Scalar1 / 2 == rot90Scale.getMaxStretch());
148 REPORTER_ASSERT(reporter, SkScalarAbs(SK_Scalar1 - rotate.getMaxStretch()) <= SK_ScalarNearlyZero);
152 REPORTER_ASSERT(reporter, SK_Scalar1 == translate.getMaxStretch());
157 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspX.getMaxStretch());
162 REPORTER_ASSERT(reporter, -SK_Scalar1 == perspY.getMaxStretch());
170 REPORTER_ASSERT(reporter, invertable);
186 REPORTER_ASSERT(reporter, (stretch < 0) == mat.hasPerspective());
211 REPORTER_ASSERT(reporter, SkScalarDiv(d, stretch) < gStretchTol);
216 REPORTER_ASSERT(reporter, SkScalarDiv(max, stretch) >= gMaxStretchTol);
225 REPORTER_ASSERT(reporter, mat.isSimilarity());
230 REPORTER_ASSERT(reporter, mat.isSimilarity());
235 REPORTER_ASSERT(reporter, mat.isSimilarity());
240 REPORTER_ASSERT(reporter, mat.isSimilarity());
245 REPORTER_ASSERT(reporter, !mat.isSimilarity());
251 REPORTER_ASSERT(reporter, mat.isSimilarity());
257 REPORTER_ASSERT(reporter, !mat.isSimilarity());
262 REPORTER_ASSERT(reporter, !mat.isSimilarity());
267 REPORTER_ASSERT(reporter, !mat.isSimilarity());
273 REPORTER_ASSERT(reporter, !mat.isSimilarity());
279 REPORTER_ASSERT(reporter, !mat.isSimilarity());
284 REPORTER_ASSERT(reporter, !mat.isSimilarity());
289 REPORTER_ASSERT(reporter, !mat.isSimilarity());
305 REPORTER_ASSERT(reporter, mat.isSimilarity());
313 REPORTER_ASSERT(reporter, mat.isSimilarity());
319 REPORTER_ASSERT(reporter, mat.isSimilarity());
325 REPORTER_ASSERT(reporter, mat.isSimilarity());
331 REPORTER_ASSERT(reporter, !mat.isSimilarity());
336 REPORTER_ASSERT(reporter, !mat.isSimilarity());
340 REPORTER_ASSERT(reporter, !mat.isSimilarity());
346 REPORTER_ASSERT(reporter, mat.isSimilarity());
380 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
381 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation0));
382 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, SK_Scalar1));
383 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, SK_Scalar1));
384 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
386 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, NULL, NULL, NULL, NULL));
390 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
391 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation0, SkDegreesToRadians(kRotation0)));
392 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, SK_Scalar1));
393 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, SK_Scalar1));
394 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
398 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
399 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation0));
400 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale0));
401 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, kScale0));
402 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
406 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
407 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation0));
408 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale1));
409 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, kScale0));
410 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
415 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
416 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation0, SkDegreesToRadians(kRotation1)));
417 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale0));
418 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, kScale0));
419 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
424 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
425 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation0, SkDegreesToRadians(kRotation1)));
426 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale0));
427 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, kScale0));
428 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
433 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
434 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation0, SkDegreesToRadians(kRotation0)));
435 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale1));
436 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, -kScale1));
437 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
442 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
443 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation0, SkDegreesToRadians(-kRotation1)));
444 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale0));
445 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, -kScale0));
446 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
451 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
452 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation0, SkDegreesToRadians(kRotation1)));
453 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale1));
454 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, kScale0));
455 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
460 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
461 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation0));
462 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale1));
463 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, kScale0));
464 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation1, SkDegreesToRadians(kRotation0)));
470 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
471 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(rotation0,
473 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleX, kScale0));
474 REPORTER_ASSERT(reporter, SkScalarNearlyEqual(scaleY, kScale0));
475 REPORTER_ASSERT(reporter, SkScalarNearlyZero(rotation1));
481 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
491 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleX],
493 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewX],
495 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewY],
497 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleY],
516 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleX],
518 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewX],
520 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewY],
522 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleY],
528 REPORTER_ASSERT(reporter, SkScalarNearlyZero(perpdot));
534 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
537 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleX],
539 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewX],
541 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewY],
543 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleY],
550 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
553 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleX],
555 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewX],
557 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewY],
559 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleY],
566 REPORTER_ASSERT(reporter, SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
569 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleX],
571 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewX],
573 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMSkewY],
575 REPORTER_ASSERT(reporter, scalar_nearly_equal_relative(mat[SkMatrix::kMScaleY],
582 REPORTER_ASSERT(reporter, !SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
585 REPORTER_ASSERT(reporter, !SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
592 REPORTER_ASSERT(reporter, !SkDecomposeUpper2x2(mat, &rotation0, &scaleX, &scaleY, &rotation1));
600 REPORTER_ASSERT(reporter, mat.invert(&inverse));
602 REPORTER_ASSERT(reporter, is_identity(iden1));
605 REPORTER_ASSERT(reporter, mat.invert(&inverse));
607 REPORTER_ASSERT(reporter, is_identity(iden1));
611 REPORTER_ASSERT(reporter, mat.invert(&inverse));
613 REPORTER_ASSERT(reporter, is_identity(iden1));
618 REPORTER_ASSERT(reporter, mat.invert(NULL));
619 REPORTER_ASSERT(reporter, mat.invert(&inverse));
621 REPORTER_ASSERT(reporter, is_identity(iden1));
623 REPORTER_ASSERT(reporter, is_identity(iden2));
628 REPORTER_ASSERT(reporter, !mat.invert(NULL));
629 REPORTER_ASSERT(reporter, !mat.invert(&inverse));
631 REPORTER_ASSERT(reporter, !mat.invert(NULL));
632 REPORTER_ASSERT(reporter, !mat.invert(&inverse));
667 REPORTER_ASSERT(reporter,
680 REPORTER_ASSERT(reporter, mat.asAffine(affine));
683 REPORTER_ASSERT(reporter, affineEqual(ScaleX));
684 REPORTER_ASSERT(reporter, affineEqual(SkewY));
685 REPORTER_ASSERT(reporter, affineEqual(SkewX));
686 REPORTER_ASSERT(reporter, affineEqual(ScaleY));
687 REPORTER_ASSERT(reporter, affineEqual(TransX));
688 REPORTER_ASSERT(reporter, affineEqual(TransY));
692 REPORTER_ASSERT(reporter, !mat.asAffine(affine));
699 REPORTER_ASSERT(reporter, are_equal(reporter, mat, mat2));
707 REPORTER_ASSERT(reporter, are_equal(reporter, mat, mat2));
709 REPORTER_ASSERT(reporter, !are_equal(reporter, mat, mat2));