equal
deleted
inserted
replaced
1240 // Test create surface doesn't return an error |
1240 // Test create surface doesn't return an error |
1241 SurfaceOperation(buf); |
1241 SurfaceOperation(buf); |
1242 |
1242 |
1243 //contiguous attribute is not valid on emulator |
1243 //contiguous attribute is not valid on emulator |
1244 #ifndef __WINS__ |
1244 #ifndef __WINS__ |
1245 TEST(iInfo.iContiguous == attributes.iContiguous); |
1245 if(attributes.iContiguous) |
|
1246 TEST(iInfo.iContiguous == attributes.iContiguous); |
|
1247 else |
|
1248 INFO_PRINTF1(_L("We didn't ask for contiguous memory so we don't care how it's going to be (can be contiguous or not)\n")); |
1246 #else |
1249 #else |
1247 INFO_PRINTF1(_L("Contiguous attribute test is not valid on emulator\n")); |
1250 INFO_PRINTF1(_L("Contiguous attribute test is not valid on emulator\n")); |
1248 #endif |
1251 #endif |
1249 |
1252 |
1250 TEST(KErrNone == iSurfaceManager.CloseSurface(iSurfaceId)); |
1253 TEST(KErrNone == iSurfaceManager.CloseSurface(iSurfaceId)); |
1367 { |
1370 { |
1368 TEST(aAttributes.iSize==iInfo.iSize); |
1371 TEST(aAttributes.iSize==iInfo.iSize); |
1369 TEST(aAttributes.iBuffers==iInfo.iBuffers); |
1372 TEST(aAttributes.iBuffers==iInfo.iBuffers); |
1370 TEST(aAttributes.iPixelFormat==iInfo.iPixelFormat); |
1373 TEST(aAttributes.iPixelFormat==iInfo.iPixelFormat); |
1371 TEST(aAttributes.iStride==iInfo.iStride); |
1374 TEST(aAttributes.iStride==iInfo.iStride); |
1372 TEST(aAttributes.iContiguous==iInfo.iContiguous); |
1375 if(aAttributes.iContiguous) |
|
1376 TEST(iInfo.iContiguous == aAttributes.iContiguous); |
|
1377 else |
|
1378 INFO_PRINTF1(_L("We didn't ask for contiguous memory so we don't care how it's going to be (can be contiguous or not)\n")); |
1373 TEST(aAttributes.iCacheAttrib==iInfo.iCacheAttrib); |
1379 TEST(aAttributes.iCacheAttrib==iInfo.iCacheAttrib); |
1374 |
1380 |
1375 //Test the chunk size is big enough to hold the surface when we create it |
1381 //Test the chunk size is big enough to hold the surface when we create it |
1376 //with the offset between buffers |
1382 //with the offset between buffers |
1377 if (aAttributes.iOffsetBetweenBuffers!=0) |
1383 if (aAttributes.iOffsetBetweenBuffers!=0) |
4431 |
4437 |
4432 testBooleanTrue(aCondition, aFile, aLine); |
4438 testBooleanTrue(aCondition, aFile, aLine); |
4433 if(!aCondition) |
4439 if(!aCondition) |
4434 User::Leave(TEST_ERROR_CODE); // leave with standard error code |
4440 User::Leave(TEST_ERROR_CODE); // leave with standard error code |
4435 } |
4441 } |
4436 |
|