Lines Matching refs:REPORTER_ASSERT
59 REPORTER_ASSERT(reporter, !picture->willPlayBackBitmaps()); in test_analysis()
73 REPORTER_ASSERT(reporter, in test_analysis()
79 REPORTER_ASSERT(reporter, picture->willPlayBackBitmaps()); in test_analysis()
152 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(NULL, &reason)); in test_gpu_veto()
153 REPORTER_ASSERT(reporter, reason); in test_gpu_veto()
165 REPORTER_ASSERT(reporter, !path.isConvex()); in test_gpu_veto()
175 REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(NULL)); in test_gpu_veto()
187 REPORTER_ASSERT(reporter, !path.isConvex()); in test_gpu_veto()
197 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(NULL)); in test_gpu_veto()
209 REPORTER_ASSERT(reporter, !path.isConvex()); in test_gpu_veto()
221 REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(NULL)); in test_gpu_veto()
238 REPORTER_ASSERT(reporter, picture->suitableForGpuRasterization(NULL)); in test_gpu_veto()
253 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(NULL)); in test_gpu_veto()
261 REPORTER_ASSERT(reporter, !picture->suitableForGpuRasterization(NULL)); in test_gpu_veto()
369 REPORTER_ASSERT(reporter, data); in test_savelayer_extraction()
372 REPORTER_ASSERT(reporter, 8 == gpuData->numBlocks()); in test_savelayer_extraction()
389 REPORTER_ASSERT(reporter, NULL == info0.fPicture); in test_savelayer_extraction()
390 REPORTER_ASSERT(reporter, kWidth == info0.fBounds.width() && in test_savelayer_extraction()
392 REPORTER_ASSERT(reporter, info0.fLocalMat.isIdentity()); in test_savelayer_extraction()
393 REPORTER_ASSERT(reporter, info0.fPreMat.isIdentity()); in test_savelayer_extraction()
394 REPORTER_ASSERT(reporter, 0 == info0.fBounds.fLeft && 0 == info0.fBounds.fTop); in test_savelayer_extraction()
395 REPORTER_ASSERT(reporter, NULL != info0.fPaint); in test_savelayer_extraction()
396 REPORTER_ASSERT(reporter, !info0.fIsNested && !info0.fHasNestedLayers); in test_savelayer_extraction()
398 REPORTER_ASSERT(reporter, NULL == info1.fPicture); in test_savelayer_extraction()
399 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.width() && in test_savelayer_extraction()
401 REPORTER_ASSERT(reporter, info1.fLocalMat.isIdentity()); in test_savelayer_extraction()
402 REPORTER_ASSERT(reporter, info1.fPreMat.isIdentity()); in test_savelayer_extraction()
403 REPORTER_ASSERT(reporter, kWidth/2.0 == info1.fBounds.fLeft && in test_savelayer_extraction()
405 REPORTER_ASSERT(reporter, NULL == info1.fPaint); in test_savelayer_extraction()
406 REPORTER_ASSERT(reporter, !info1.fIsNested && in test_savelayer_extraction()
409 REPORTER_ASSERT(reporter, NULL == info2.fPicture); in test_savelayer_extraction()
410 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.width() && in test_savelayer_extraction()
412 REPORTER_ASSERT(reporter, !info2.fLocalMat.isIdentity()); in test_savelayer_extraction()
413 REPORTER_ASSERT(reporter, info2.fPreMat.isIdentity()); in test_savelayer_extraction()
414 REPORTER_ASSERT(reporter, kWidth / 2 == info2.fBounds.fLeft && // translated in test_savelayer_extraction()
416 REPORTER_ASSERT(reporter, NULL != info2.fPaint); in test_savelayer_extraction()
417 REPORTER_ASSERT(reporter, info2.fIsNested && !info2.fHasNestedLayers); // is nested in test_savelayer_extraction()
419 REPORTER_ASSERT(reporter, NULL == info3.fPicture); in test_savelayer_extraction()
420 REPORTER_ASSERT(reporter, kWidth == info3.fBounds.width() && in test_savelayer_extraction()
422 REPORTER_ASSERT(reporter, info3.fLocalMat.isIdentity()); in test_savelayer_extraction()
423 REPORTER_ASSERT(reporter, info3.fPreMat.isIdentity()); in test_savelayer_extraction()
424 REPORTER_ASSERT(reporter, 0 == info3.fBounds.fLeft && 0 == info3.fBounds.fTop); in test_savelayer_extraction()
425 REPORTER_ASSERT(reporter, info3.fPaint); in test_savelayer_extraction()
426 REPORTER_ASSERT(reporter, !info3.fIsNested && !info3.fHasNestedLayers); in test_savelayer_extraction()
428 REPORTER_ASSERT(reporter, NULL == info4.fPicture); in test_savelayer_extraction()
429 REPORTER_ASSERT(reporter, kWidth == info4.fBounds.width() && in test_savelayer_extraction()
431 REPORTER_ASSERT(reporter, 0 == info4.fBounds.fLeft && 0 == info4.fBounds.fTop); in test_savelayer_extraction()
432 REPORTER_ASSERT(reporter, info4.fLocalMat.isIdentity()); in test_savelayer_extraction()
433 REPORTER_ASSERT(reporter, info4.fPreMat.isIdentity()); in test_savelayer_extraction()
434 REPORTER_ASSERT(reporter, info4.fPaint); in test_savelayer_extraction()
435 REPORTER_ASSERT(reporter, !info4.fIsNested && in test_savelayer_extraction()
438 REPORTER_ASSERT(reporter, child == info5.fPicture); // in a child picture in test_savelayer_extraction()
439 REPORTER_ASSERT(reporter, kWidth == info5.fBounds.width() && in test_savelayer_extraction()
441 REPORTER_ASSERT(reporter, 0 == info5.fBounds.fLeft && 0 == info5.fBounds.fTop); in test_savelayer_extraction()
442 REPORTER_ASSERT(reporter, info5.fLocalMat.isIdentity()); in test_savelayer_extraction()
443 REPORTER_ASSERT(reporter, info5.fPreMat.isIdentity()); in test_savelayer_extraction()
444 REPORTER_ASSERT(reporter, NULL != info5.fPaint); in test_savelayer_extraction()
445 REPORTER_ASSERT(reporter, info5.fIsNested && !info5.fHasNestedLayers); // is nested in test_savelayer_extraction()
447 REPORTER_ASSERT(reporter, NULL == info6.fPicture); in test_savelayer_extraction()
448 REPORTER_ASSERT(reporter, kWidth-10 == info6.fBounds.width() && in test_savelayer_extraction()
450 REPORTER_ASSERT(reporter, 10 == info6.fBounds.fLeft && 10 == info6.fBounds.fTop); in test_savelayer_extraction()
451 REPORTER_ASSERT(reporter, info6.fLocalMat.isIdentity()); in test_savelayer_extraction()
452 REPORTER_ASSERT(reporter, info6.fPreMat.isIdentity()); in test_savelayer_extraction()
453 REPORTER_ASSERT(reporter, info6.fPaint); in test_savelayer_extraction()
454 REPORTER_ASSERT(reporter, !info6.fIsNested && in test_savelayer_extraction()
457 REPORTER_ASSERT(reporter, child == info7.fPicture); // in a child picture in test_savelayer_extraction()
458 REPORTER_ASSERT(reporter, kWidth == info7.fBounds.width() && in test_savelayer_extraction()
460 REPORTER_ASSERT(reporter, 0 == info7.fBounds.fLeft && 0 == info7.fBounds.fTop); in test_savelayer_extraction()
461 REPORTER_ASSERT(reporter, info7.fLocalMat.isIdentity()); in test_savelayer_extraction()
462 REPORTER_ASSERT(reporter, info7.fPreMat.isIdentity()); in test_savelayer_extraction()
463 REPORTER_ASSERT(reporter, NULL != info7.fPaint); in test_savelayer_extraction()
464 REPORTER_ASSERT(reporter, info7.fIsNested && !info7.fHasNestedLayers); // is nested in test_savelayer_extraction()
476 REPORTER_ASSERT(reporter, !picture->hasText()); in test_has_text()
484 REPORTER_ASSERT(reporter, picture->hasText()); in test_has_text()
491 REPORTER_ASSERT(reporter, picture->hasText()); in test_has_text()
498 REPORTER_ASSERT(reporter, picture->hasText()); in test_has_text()
509 REPORTER_ASSERT(reporter, picture->hasText()); in test_has_text()
520 REPORTER_ASSERT(reporter, picture->hasText()); in test_has_text()
528 REPORTER_ASSERT(reporter, picture->hasText()); in test_has_text()
588 REPORTER_ASSERT(reporter, numSaves >= canvas.getSaveCount()); in check_save_state()
589 REPORTER_ASSERT(reporter, numSaveLayers >= canvas.getSaveLayerCount()); in check_save_state()
590 REPORTER_ASSERT(reporter, numRestores >= canvas.getRestoreCount()); in check_save_state()
637 REPORTER_ASSERT(reporter, beforeSaveCount == canvas.getSaveCount()); in check_balance()
638 REPORTER_ASSERT(reporter, beforeMatrix == canvas.getTotalMatrix()); in check_balance()
644 REPORTER_ASSERT(reporter, afterClip == beforeClip); in check_balance()
685 REPORTER_ASSERT(reporter, !copy->willPlayBackBitmaps()); in DEF_TEST()
694 REPORTER_ASSERT(reporter, final->willPlayBackBitmaps()); in DEF_TEST()
696 REPORTER_ASSERT(reporter, copy->uniqueID() != final->uniqueID()); in DEF_TEST()
699 REPORTER_ASSERT(reporter, !copy->willPlayBackBitmaps()); in DEF_TEST()
714 REPORTER_ASSERT(reporter, expectedSaveCount = canvas->getSaveCount()); in DEF_TEST()
726 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
745 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
766 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
778 REPORTER_ASSERT(reporter, 4 == testCanvas.getSaveCount()); in test_unbalanced_save_restores()
779 REPORTER_ASSERT(reporter, testCanvas.getTotalMatrix().isIdentity()); in test_unbalanced_save_restores()
875 REPORTER_ASSERT(reporter, installSuccess); in test_bitmap_with_encoded_data()
882 REPORTER_ASSERT(reporter, picture1->equals(picture2)); in test_bitmap_with_encoded_data()
892 REPORTER_ASSERT(reporter, pictureFromStream.get() != NULL); in test_bitmap_with_encoded_data()
921 REPORTER_ASSERT(reporter, true == nonEmpty); in test_clip_bound_opt()
922 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
923 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
924 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
925 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
932 REPORTER_ASSERT(reporter, true == nonEmpty); in test_clip_bound_opt()
933 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft); in test_clip_bound_opt()
934 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop); in test_clip_bound_opt()
935 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom); in test_clip_bound_opt()
936 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight); in test_clip_bound_opt()
943 REPORTER_ASSERT(reporter, true == nonEmpty); in test_clip_bound_opt()
944 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
945 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
946 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
947 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
953 REPORTER_ASSERT(reporter, true == nonEmpty); in test_clip_bound_opt()
954 REPORTER_ASSERT(reporter, 0 == clipBounds.fLeft); in test_clip_bound_opt()
955 REPORTER_ASSERT(reporter, 0 == clipBounds.fTop); in test_clip_bound_opt()
956 REPORTER_ASSERT(reporter, 10 == clipBounds.fBottom); in test_clip_bound_opt()
957 REPORTER_ASSERT(reporter, 10 == clipBounds.fRight); in test_clip_bound_opt()
966 REPORTER_ASSERT(reporter, true == nonEmpty); in test_clip_bound_opt()
967 REPORTER_ASSERT(reporter, 7 == clipBounds.fLeft); in test_clip_bound_opt()
968 REPORTER_ASSERT(reporter, 7 == clipBounds.fTop); in test_clip_bound_opt()
969 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom); in test_clip_bound_opt()
970 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight); in test_clip_bound_opt()
977 REPORTER_ASSERT(reporter, true == nonEmpty); in test_clip_bound_opt()
978 REPORTER_ASSERT(reporter, 6 == clipBounds.fLeft); in test_clip_bound_opt()
979 REPORTER_ASSERT(reporter, 6 == clipBounds.fTop); in test_clip_bound_opt()
980 REPORTER_ASSERT(reporter, 8 == clipBounds.fBottom); in test_clip_bound_opt()
981 REPORTER_ASSERT(reporter, 8 == clipBounds.fRight); in test_clip_bound_opt()
1046 REPORTER_ASSERT(reporter, testCanvas.getClipCount() == 2); in test_clip_expansion()
1057 REPORTER_ASSERT(reporter, !childPlain->willPlayBackBitmaps()); // 0 in test_hierarchical()
1061 REPORTER_ASSERT(reporter, childWithBitmap->willPlayBackBitmaps()); // 1 in test_hierarchical()
1067 REPORTER_ASSERT(reporter, !parentPP->willPlayBackBitmaps()); // 0 in test_hierarchical()
1073 REPORTER_ASSERT(reporter, parentPWB->willPlayBackBitmaps()); // 1 in test_hierarchical()
1080 REPORTER_ASSERT(reporter, parentWBP->willPlayBackBitmaps()); // 1 in test_hierarchical()
1087 REPORTER_ASSERT(reporter, parentWBWB->willPlayBackBitmaps()); // 2 in test_hierarchical()
1098 REPORTER_ASSERT(reporter, empty->uniqueID() != SK_InvalidGenID); in test_gen_id()
1104 REPORTER_ASSERT(reporter, hasData->uniqueID() != SK_InvalidGenID); in test_gen_id()
1107 REPORTER_ASSERT(reporter, hasData->uniqueID() != empty->uniqueID()); in test_gen_id()
1117 REPORTER_ASSERT(reporter, SkPictureUtils::ApproximateBytesUsed(empty.get()) >= in test_bytes_used()
1122 REPORTER_ASSERT(reporter, approxUsed <= 432); in test_bytes_used()
1130 REPORTER_ASSERT(reporter, SkPictureUtils::ApproximateBytesUsed(nested.get()) >= in test_bytes_used()
1234 REPORTER_ASSERT(reporter, replayBM.getColor(30, 30) == 0xff000080); in DEF_TEST()
1235 REPORTER_ASSERT(reporter, replayBM.getColor(55, 55) == 0xff800000); in DEF_TEST()
1276 REPORTER_ASSERT(r, bbh.searchCalls == 0); in DEF_TEST()
1279 REPORTER_ASSERT(r, bbh.searchCalls == 1); in DEF_TEST()
1291 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
1292 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
1306 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
1307 REPORTER_ASSERT(r, !immut.pixelRef()->unique()); in DEF_TEST()
1311 REPORTER_ASSERT(r, mut.pixelRef()->unique()); in DEF_TEST()
1312 REPORTER_ASSERT(r, immut.pixelRef()->unique()); in DEF_TEST()
1318 REPORTER_ASSERT(r, !rec.getRecordingCanvas()); in DEF_TEST()
1321 REPORTER_ASSERT(r, rec.getRecordingCanvas()); in DEF_TEST()
1323 REPORTER_ASSERT(r, !rec.getRecordingCanvas()); in DEF_TEST()