Lines Matching refs:REPORTER_ASSERT
42 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0xFFFFFFFF); //verify that clear was deferred
44 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0x00000000); //verify that clear was executed
45 REPORTER_ASSERT(reporter, accessed.pixelRef() == store.pixelRef());
98 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
99 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
103 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
104 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
110 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
111 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
115 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
116 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
120 REPORTER_ASSERT(reporter, 1 == surface->fDiscardCount);
121 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
126 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
127 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
131 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
132 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
136 REPORTER_ASSERT(reporter, 1 == surface->fDiscardCount);
137 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
142 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
143 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
147 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
148 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
152 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
153 REPORTER_ASSERT(reporter, 1 == surface->fRetainCount);
159 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
160 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
164 REPORTER_ASSERT(reporter, 1 == surface->fDiscardCount);
165 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
169 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
170 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
176 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
177 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
181 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
182 REPORTER_ASSERT(reporter, 1 == surface->fRetainCount);
186 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
187 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
193 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
194 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
198 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
199 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
203 REPORTER_ASSERT(reporter, 1 == surface->fDiscardCount);
204 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
208 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
209 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
215 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
216 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
220 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
221 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
225 REPORTER_ASSERT(reporter, 1 == surface->fDiscardCount); // because of the clear
226 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
230 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
231 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
238 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
239 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
244 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
245 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
249 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
250 REPORTER_ASSERT(reporter, 1 == surface->fRetainCount);
254 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount);
255 REPORTER_ASSERT(reporter, 0 == surface->fRetainCount);
268 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0xFFFFFFFF); //verify that clear was deferred
270 REPORTER_ASSERT(reporter, store.getColor(0,0) == 0x00000000); //verify that clear was executed
286 REPORTER_ASSERT(reporter, canvas->isFreshFrame());
288 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
292 REPORTER_ASSERT(reporter, canvas->isFreshFrame());
298 REPORTER_ASSERT(reporter, canvas->isFreshFrame());
304 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
312 REPORTER_ASSERT(reporter, canvas->isFreshFrame());
321 REPORTER_ASSERT(reporter, canvas->isFreshFrame());
329 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
341 REPORTER_ASSERT(reporter, canvas->isFreshFrame());
351 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
367 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
379 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
388 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
401 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
413 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
422 REPORTER_ASSERT(reporter, !canvas->isFreshFrame());
432 REPORTER_ASSERT(reporter, canvas->isFreshFrame());
469 REPORTER_ASSERT(reporter, mockDevice.fDrawBitmapCallCount == 4);
521 REPORTER_ASSERT(reporter, 1 == notificationCounter.fStorageAllocatedChangedCount);
523 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() > bitmapSize);
526 REPORTER_ASSERT(reporter, 0 == canvas->freeMemoryIfPossible(~0U));
529 REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount);
530 REPORTER_ASSERT(reporter, 0 == notificationCounter.fPrepareForDrawCount);
532 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
533 REPORTER_ASSERT(reporter, 1 == notificationCounter.fPrepareForDrawCount);
534 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() >= bitmapSize);
537 REPORTER_ASSERT(reporter, canvas->freeMemoryIfPossible(~0U) >= bitmapSize);
541 REPORTER_ASSERT(reporter, 2 == notificationCounter.fStorageAllocatedChangedCount);
543 REPORTER_ASSERT(reporter, 2 == notificationCounter.fStorageAllocatedChangedCount);
544 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
545 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() < 2 * bitmapSize);
549 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
551 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount);
552 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() > 2 * bitmapSize);
554 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount);
555 REPORTER_ASSERT(reporter, bytesFreed >= bitmapSize);
556 REPORTER_ASSERT(reporter, bytesFreed < 2*bitmapSize);
561 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount);
567 REPORTER_ASSERT(reporter, bytesFreed >= bitmapSize);
568 REPORTER_ASSERT(reporter, bytesFreed < 2*bitmapSize);
572 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() < bitmapSize);
578 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() > 2*bitmapSize);
581 REPORTER_ASSERT(reporter, 0 == notificationCounter.fSkippedPendingDrawCommandsCount);
593 REPORTER_ASSERT(reporter, 1 == notificationCounter.fSkippedPendingDrawCommandsCount);
594 REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount);
596 REPORTER_ASSERT(reporter, 1 == notificationCounter.fSkippedPendingDrawCommandsCount);
597 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount);
631 REPORTER_ASSERT(reporter, newBytesAllocated > bytesAllocated);
634 REPORTER_ASSERT(reporter, newBytesAllocated == bytesAllocated);
640 REPORTER_ASSERT(reporter, 0 == canvas->storageAllocatedForRecording());
660 REPORTER_ASSERT(reporter, newBytesAllocated == 0);
670 REPORTER_ASSERT(reporter, newBytesAllocated > 0);
680 REPORTER_ASSERT(reporter, newBytesAllocated > 0);
730 REPORTER_ASSERT(reporter, image1->uniqueID() == image2->uniqueID());
735 REPORTER_ASSERT(reporter, image1->uniqueID() != image3->uniqueID());
739 REPORTER_ASSERT(reporter, pixels1 != pixels2);
746 REPORTER_ASSERT(reporter, image4->uniqueID() != image3->uniqueID());
748 REPORTER_ASSERT(reporter, pixels2 != pixels3);
758 REPORTER_ASSERT(reporter, pixels4 == pixels5);
795 REPORTER_ASSERT(reporter, image1->uniqueID() != image2->uniqueID());
797 REPORTER_ASSERT(reporter, getSurfacePixelPtr(surface, useGpu) == pixels1);
798 REPORTER_ASSERT(reporter, getSurfacePixelPtr(alternateSurface, useGpu) == pixels2);
802 REPORTER_ASSERT(reporter, getSurfacePixelPtr(surface, useGpu) == pixels1);
803 REPORTER_ASSERT(reporter, getSurfacePixelPtr(alternateSurface, useGpu) != pixels2);
822 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 0);
825 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 1);