equal
deleted
inserted
replaced
23 void CExifCreateTest::ExifCreate001L() |
23 void CExifCreateTest::ExifCreate001L() |
24 { |
24 { |
25 HBufC8* jpeg = TUtils::ReadFileL(iFs, KValidJpeg); |
25 HBufC8* jpeg = TUtils::ReadFileL(iFs, KValidJpeg); |
26 CleanupStack::PushL(jpeg); |
26 CleanupStack::PushL(jpeg); |
27 CExifModify* modify = CExifModify::NewL(*jpeg, CExifModify::ECreate); |
27 CExifModify* modify = CExifModify::NewL(*jpeg, CExifModify::ECreate); |
|
28 CleanupStack::PushL(modify); |
28 if(!modify) |
29 if(!modify) |
29 User::Leave(KErrGeneral); |
30 User::Leave(KErrGeneral); |
30 delete modify; |
31 CleanupStack::PopAndDestroy(modify); |
31 CleanupStack::PopAndDestroy(jpeg); |
32 CleanupStack::PopAndDestroy(jpeg); |
32 } |
33 } |
33 |
34 |
34 // Exif.Create.002 |
35 // Exif.Create.002 |
35 // Try to instantiate an Exif modifier with invalid/ corrupted Jpeg image |
36 // Try to instantiate an Exif modifier with invalid/ corrupted Jpeg image |