Lines Matching refs:test

135 void test( bool bResult, const char* msg )  in test()  function
176 test( aContainedBmp.GetSizePixel() == Size(200,200), in checkCanvasBitmap()
179 test( xBmp->getSize().Width == 200 && xBmp->getSize().Height == 200, in checkCanvasBitmap()
182 test( xBmp->hasAlpha() == aContainedBmpEx.IsTransparent(), in checkCanvasBitmap()
185 test( xBmp->getScaledBitmap( geometry::RealSize2D(500,500), sal_False ).is(), in checkCanvasBitmap()
193 test( aLayout.ScanLines == 1, in checkCanvasBitmap()
195 test( aLayout.ScanLineBytes == (nExpectedBitsPerPixel+7)/8, in checkCanvasBitmap()
197 test( aLayout.ScanLineStride == (nExpectedBitsPerPixel+7)/8 || in checkCanvasBitmap()
200 test( aLayout.PlaneStride == 0, in checkCanvasBitmap()
203 test( aLayout.ColorSpace.is(), in checkCanvasBitmap()
206 test( aLayout.Palette.is() == (nDepth <= 8), in checkCanvasBitmap()
211 test( aPixelData2.getLength() == aPixelData.getLength(), in checkCanvasBitmap()
215 test( aLayout.ScanLines == 1, in checkCanvasBitmap()
217 test( aLayout.ScanLineBytes == (200*nExpectedBitsPerPixel+7)/8, in checkCanvasBitmap()
219 test( aLayout.ScanLineStride == (200*nExpectedBitsPerPixel+7)/8 || in checkCanvasBitmap()
231 test( aRes.first == pRGBEnd, in checkCanvasBitmap()
234 test( std::find_if(pRGBStart,pRGBEnd,&rangeCheck) == pRGBEnd, in checkCanvasBitmap()
237 test( pRGBStart[0].Red == 1.0 && pRGBStart[0].Green == 1.0 && pRGBStart[0].Blue == 1.0, in checkCanvasBitmap()
239 test( pARGBStart[1].Alpha == 1.0, in checkCanvasBitmap()
243 test( pARGBStart[0].Alpha == 0.0, in checkCanvasBitmap()
247 test( pRGBStart[1].Red == 0.0 && pRGBStart[1].Green == 0.0 && pRGBStart[1].Blue == 0.0, in checkCanvasBitmap()
253 test( pRGBStart[5].Red == vcl::unotools::toDoubleColor(aCol.GetRed()) && in checkCanvasBitmap()
261 test( xPal.is(), in checkCanvasBitmap()
263 test( xPal->getNumberOfEntries() == 1L << nOriginalDepth, in checkCanvasBitmap()
266 test( xPal->setIndex(aIndex,sal_True,0) == sal_False, in checkCanvasBitmap()
268 test( xPal->getIndex(aIndex,0), in checkCanvasBitmap()
270 test( xPal->getColorSpace().is(), in checkCanvasBitmap()
274 test( pRGBStart[150].Red == 1.0 && pRGBStart[150].Green == 1.0 && pRGBStart[150].Blue == 1.0, in checkCanvasBitmap()
296 test( aPixel3 == aPixel4, in checkCanvasBitmap()
302 test( aPixel3 == aPixel4, in checkCanvasBitmap()
327 test( aContainedBmp.GetSizePixel() == Size(200,200), in checkBitmapImport()
330 test( xBmp->getSize().Width == 200 && xBmp->getSize().Height == 200, in checkBitmapImport()
333 test( xBmp->hasAlpha() == aContainedBmpEx.IsTransparent(), in checkBitmapImport()
336 test( xBmp->getScaledBitmap( geometry::RealSize2D(500,500), sal_False ).is(), in checkBitmapImport()
344 test( aLayout.ScanLines == 1, in checkBitmapImport()
346 test( aLayout.ScanLineBytes == (nExpectedBitsPerPixel+7)/8, in checkBitmapImport()
348 test( aLayout.ScanLineStride == (nExpectedBitsPerPixel+7)/8 || in checkBitmapImport()
351 test( aLayout.PlaneStride == 0, in checkBitmapImport()
354 test( aLayout.ColorSpace.is(), in checkBitmapImport()
357 test( aLayout.Palette.is() == (nDepth <= 8), in checkBitmapImport()
362 test( aPixelData2.getLength() == aPixelData.getLength(), in checkBitmapImport()
366 test( aLayout.ScanLines == 1, in checkBitmapImport()
368 test( aLayout.ScanLineBytes == (200*nExpectedBitsPerPixel+7)/8, in checkBitmapImport()
370 test( aLayout.ScanLineStride == (200*nExpectedBitsPerPixel+7)/8 || in checkBitmapImport()
382 test( aRes.first == pRGBEnd, in checkBitmapImport()
385 test( std::find_if(pRGBStart,pRGBEnd,&rangeCheck) == pRGBEnd, in checkBitmapImport()
388 test( pRGBStart[0].Red == 1.0 && pRGBStart[0].Green == 1.0 && pRGBStart[0].Blue == 1.0, in checkBitmapImport()
390 test( pARGBStart[1].Alpha == 1.0, in checkBitmapImport()
394 test( pARGBStart[0].Alpha == 0.0, in checkBitmapImport()
398 test( pRGBStart[1].Red == 0.0 && pRGBStart[1].Green == 0.0 && pRGBStart[1].Blue == 0.0, in checkBitmapImport()
404 test( pRGBStart[5].Red == vcl::unotools::toDoubleColor(aCol.GetRed()) && in checkBitmapImport()
412 test( xPal.is(), in checkBitmapImport()
414 test( xPal->getNumberOfEntries() == 1L << nOriginalDepth, in checkBitmapImport()
417 test( xPal->setIndex(aIndex,sal_True,0) == sal_False, in checkBitmapImport()
419 test( xPal->getIndex(aIndex,0), in checkBitmapImport()
421 test( xPal->getColorSpace().is(), in checkBitmapImport()
425 test( pRGBStart[150].Red == 1.0 && pRGBStart[150].Green == 1.0 && pRGBStart[150].Blue == 1.0, in checkBitmapImport()
447 test( aPixel3 == aPixel4, in checkBitmapImport()
453 test( aPixel3 == aPixel4, in checkBitmapImport()
483 test( rect.X1 >= 0, "X1 within bounds" ); in getData()
484 test( rect.Y1 >= 0, "Y1 within bounds" ); in getData()
485 test( rect.X2 <= maSize.Width, "X2 within bounds" ); in getData()
486 test( rect.Y2 <= maSize.Height, "Y2 within bounds" ); in getData()
529 test(false, "Method not implemented"); in getPixel()
559 test( getPalette().is(), in getNumberOfEntries()
569 test( getPalette().is(), in getIndex()
571 test( nIndex >= 0 && nIndex < 256, in getIndex()
587 test( getPalette().is(), in setIndex()
589 test( nIndex >= 0 && nIndex < 256, in setIndex()
628 test(false, "Method not implemented"); in getProperties()
635 test(false, "Method not implemented"); in convertColorSpace()
642 test(false, "Method not implemented"); in convertToRGB()
649 test(false, "Method not implemented"); in convertToARGB()
656 test(false, "Method not implemented"); in convertToPARGB()
663 test(false, "Method not implemented"); in convertFromRGB()
670 test(false, "This method is not expected to be called!"); in convertFromARGB()
677 test(false, "This method is not expected to be called!"); in convertFromPARGB()
700 test(false, "Method not implemented"); in convertFromIntegerColorSpace()
708 test(false, "Method not implemented"); in convertToIntegerColorSpace()
734 test(nLen%nBytesPerPixel==0, in convertIntegerToARGB()
771 test(nLen%nBytesPerPixel==0, in convertIntegerToPARGB()
807 test(false, "Method not implemented"); in convertIntegerFromRGB()
814 test(false, "Method not implemented"); in convertIntegerFromARGB()
821 test(false, "Method not implemented"); in convertIntegerFromPARGB()
959 test( aBmp.IsTransparent() == false, in Paint()
961 test( aBmp.GetSizePixel() == Size(10,10), in Paint()
963 test( aBmp.GetBitCount() == 8, in Paint()
968 test( pBmpAcc, in Paint()
971 test(pBmpAcc->GetPixel(0,0) == BitmapColor(0), in Paint()
973 test(pBmpAcc->GetPixel(2,2) == BitmapColor(2), in Paint()
975 test(pBmpAcc->GetPixel(2,9) == BitmapColor(9), in Paint()
984 test( aBmp.IsTransparent() == TRUE, in Paint()
986 test( aBmp.IsAlpha() == TRUE, in Paint()
988 test( aBmp.GetSizePixel() == Size(10,10), in Paint()
990 test( aBmp.GetBitCount() == 24, in Paint()
996 test( pBmpAcc, in Paint()
998 test( pAlphaAcc, in Paint()
1001 test(pBmpAcc->GetPixel(0,0) == BitmapColor(0,1,0), in Paint()
1003 test(pAlphaAcc->GetPixel(0,0) == BitmapColor(255), in Paint()
1005 test(pBmpAcc->GetPixel(2,2) == BitmapColor(0,3,2), in Paint()
1007 test(pAlphaAcc->GetPixel(2,2) == BitmapColor(253), in Paint()
1009 test(pBmpAcc->GetPixel(2,9) == BitmapColor(0,3,9), in Paint()
1011 test(pAlphaAcc->GetPixel(2,9) == BitmapColor(253), in Paint()