Lines Matching refs:REPORTER_ASSERT
109 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
110 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
111 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
115 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
116 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
117 REPORTER_ASSERT(reporter, 1 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
123 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
124 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
125 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
129 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
130 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
131 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
135 REPORTER_ASSERT(reporter, 1 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
136 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
137 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
142 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
143 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
144 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
149 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
150 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
151 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
157 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
158 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
159 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
163 REPORTER_ASSERT(reporter, 1 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
164 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
165 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
169 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
170 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
171 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
177 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
178 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
179 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
183 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
184 REPORTER_ASSERT(reporter, 1 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
185 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
189 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
190 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
191 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
197 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
198 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
199 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
203 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
204 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
205 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
209 REPORTER_ASSERT(reporter, 1 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
210 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
211 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
215 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
216 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
217 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
223 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
224 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
225 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
229 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
230 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
231 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
235 REPORTER_ASSERT(reporter, 1 == surface->fCOWDiscardCount); // because of the clear in TestDeferredCanvasWritePixelsToSurface()
236 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
237 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
241 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
242 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
243 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
250 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
251 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
252 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
257 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
258 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
259 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
263 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
264 REPORTER_ASSERT(reporter, 1 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
265 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
269 REPORTER_ASSERT(reporter, 0 == surface->fCOWDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
270 REPORTER_ASSERT(reporter, 0 == surface->fCOWRetainCount); in TestDeferredCanvasWritePixelsToSurface()
271 REPORTER_ASSERT(reporter, 0 == surface->fDiscardCount); in TestDeferredCanvasWritePixelsToSurface()
281 REPORTER_ASSERT(reporter, 0xFFFFFFFF == read_pixel(surface, 0, 0)); in TestDeferredCanvasFlush()
286 REPORTER_ASSERT(reporter, 0 == read_pixel(surface, 0, 0)); in TestDeferredCanvasFlush()
301 REPORTER_ASSERT(reporter, canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
303 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
307 REPORTER_ASSERT(reporter, canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
313 REPORTER_ASSERT(reporter, canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
319 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
328 REPORTER_ASSERT(reporter, canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
336 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
348 REPORTER_ASSERT(reporter, canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
358 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
374 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
386 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
395 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
408 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
420 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
429 REPORTER_ASSERT(reporter, !canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
439 REPORTER_ASSERT(reporter, canvas->isFreshFrame()); in TestDeferredCanvasFreshFrame()
506 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasMemoryLimit()
518 REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasSilentFlush()
519 REPORTER_ASSERT(reporter, 1 == notificationCounter.fSkippedPendingDrawCommandsCount); in TestDeferredCanvasSilentFlush()
539 REPORTER_ASSERT(reporter, 1 == notificationCounter.fStorageAllocatedChangedCount); in TestDeferredCanvasBitmapCaching()
541 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() > bitmapSize); in TestDeferredCanvasBitmapCaching()
544 REPORTER_ASSERT(reporter, 0 == canvas->freeMemoryIfPossible(~0U)); in TestDeferredCanvasBitmapCaching()
547 REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
548 REPORTER_ASSERT(reporter, 0 == notificationCounter.fPrepareForDrawCount); in TestDeferredCanvasBitmapCaching()
550 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
551 REPORTER_ASSERT(reporter, 1 == notificationCounter.fPrepareForDrawCount); in TestDeferredCanvasBitmapCaching()
552 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() >= bitmapSize); in TestDeferredCanvasBitmapCaching()
555 REPORTER_ASSERT(reporter, canvas->freeMemoryIfPossible(~0U) >= bitmapSize); in TestDeferredCanvasBitmapCaching()
559 REPORTER_ASSERT(reporter, 2 == notificationCounter.fStorageAllocatedChangedCount); in TestDeferredCanvasBitmapCaching()
561 REPORTER_ASSERT(reporter, 2 == notificationCounter.fStorageAllocatedChangedCount); in TestDeferredCanvasBitmapCaching()
562 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
563 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() < 2 * bitmapSize); in TestDeferredCanvasBitmapCaching()
567 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
569 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
570 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() > 2 * bitmapSize); in TestDeferredCanvasBitmapCaching()
572 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
573 REPORTER_ASSERT(reporter, bytesFreed >= bitmapSize); in TestDeferredCanvasBitmapCaching()
574 REPORTER_ASSERT(reporter, bytesFreed < 2*bitmapSize); in TestDeferredCanvasBitmapCaching()
579 REPORTER_ASSERT(reporter, 2 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
585 REPORTER_ASSERT(reporter, bytesFreed >= bitmapSize); in TestDeferredCanvasBitmapCaching()
586 REPORTER_ASSERT(reporter, bytesFreed < 2*bitmapSize); in TestDeferredCanvasBitmapCaching()
590 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() < bitmapSize); in TestDeferredCanvasBitmapCaching()
596 REPORTER_ASSERT(reporter, canvas->storageAllocatedForRecording() > 2*bitmapSize); in TestDeferredCanvasBitmapCaching()
599 REPORTER_ASSERT(reporter, 0 == notificationCounter.fSkippedPendingDrawCommandsCount); in TestDeferredCanvasBitmapCaching()
609 REPORTER_ASSERT(reporter, 1 == notificationCounter.fSkippedPendingDrawCommandsCount); in TestDeferredCanvasSkip()
610 REPORTER_ASSERT(reporter, 0 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasSkip()
612 REPORTER_ASSERT(reporter, 1 == notificationCounter.fSkippedPendingDrawCommandsCount); in TestDeferredCanvasSkip()
613 REPORTER_ASSERT(reporter, 1 == notificationCounter.fFlushedDrawCommandsCount); in TestDeferredCanvasSkip()
644 REPORTER_ASSERT(reporter, newBytesAllocated > bytesAllocated); in TestDeferredCanvasBitmapShaderNoLeak()
647 REPORTER_ASSERT(reporter, newBytesAllocated == bytesAllocated); in TestDeferredCanvasBitmapShaderNoLeak()
653 REPORTER_ASSERT(reporter, 0 == canvas->storageAllocatedForRecording()); in TestDeferredCanvasBitmapShaderNoLeak()
670 REPORTER_ASSERT(reporter, newBytesAllocated == 0); in TestDeferredCanvasBitmapSizeThreshold()
679 REPORTER_ASSERT(reporter, newBytesAllocated > 0); in TestDeferredCanvasBitmapSizeThreshold()
688 REPORTER_ASSERT(reporter, newBytesAllocated > 0); in TestDeferredCanvasBitmapSizeThreshold()
758 REPORTER_ASSERT(reporter, image1->uniqueID() == image2->uniqueID()); in TestDeferredCanvasSurface()
763 REPORTER_ASSERT(reporter, image1->uniqueID() != image3->uniqueID()); in TestDeferredCanvasSurface()
767 REPORTER_ASSERT(reporter, pixels1 != pixels2); in TestDeferredCanvasSurface()
774 REPORTER_ASSERT(reporter, image4->uniqueID() != image3->uniqueID()); in TestDeferredCanvasSurface()
776 REPORTER_ASSERT(reporter, pixels2 != pixels3); in TestDeferredCanvasSurface()
786 REPORTER_ASSERT(reporter, pixels4 == pixels5); in TestDeferredCanvasSurface()
838 REPORTER_ASSERT(reporter, image1->uniqueID() != image2->uniqueID()); in TestDeferredCanvasSetSurface()
840 REPORTER_ASSERT(reporter, get_surface_ptr(surface, useGpu) == pixels1); in TestDeferredCanvasSetSurface()
841 REPORTER_ASSERT(reporter, get_surface_ptr(alternateSurface, useGpu) == pixels2); in TestDeferredCanvasSetSurface()
845 REPORTER_ASSERT(reporter, get_surface_ptr(surface, useGpu) == pixels1); in TestDeferredCanvasSetSurface()
846 REPORTER_ASSERT(reporter, get_surface_ptr(alternateSurface, useGpu) != pixels2); in TestDeferredCanvasSetSurface()
865 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 0); in TestDeferredCanvasCreateCompatibleDevice()
868 REPORTER_ASSERT(reporter, notificationCounter.fStorageAllocatedChangedCount == 1); in TestDeferredCanvasCreateCompatibleDevice()
892 REPORTER_ASSERT(reporter, size == canvas->getCanvasSize()); in TestDeferredCanvasGetCanvasSize()
898 REPORTER_ASSERT(reporter, size == canvas->getCanvasSize()); in TestDeferredCanvasGetCanvasSize()
902 REPORTER_ASSERT(reporter, size == canvas->getCanvasSize()); in TestDeferredCanvasGetCanvasSize()
907 REPORTER_ASSERT(reporter, size == canvas->getCanvasSize()); in TestDeferredCanvasGetCanvasSize()
911 REPORTER_ASSERT(reporter, size == canvas->getCanvasSize()); in TestDeferredCanvasGetCanvasSize()
916 REPORTER_ASSERT(reporter, size == canvas->getCanvasSize()); in TestDeferredCanvasGetCanvasSize()
920 REPORTER_ASSERT(reporter, size == canvas->getCanvasSize()); in TestDeferredCanvasGetCanvasSize()