mmappfw_plat/harvester_collection_mediator_api/tsrc/HarvesterCollectionMediatorTest/src/HarvesterCollectionMediatorTestBlocks.cpp
equal
deleted
inserted
replaced
223 TInt CHarvesterCollectionMediatorTest::CMPXCollectionMediatorDestruction( CStifItemParser&/* aItem*/ ) |
223 TInt CHarvesterCollectionMediatorTest::CMPXCollectionMediatorDestruction( CStifItemParser&/* aItem*/ ) |
224 { |
224 { |
225 TInt err = KErrNone; |
225 TInt err = KErrNone; |
226 delete iMediator; |
226 delete iMediator; |
227 iMediator = NULL; |
227 iMediator = NULL; |
|
228 if(iCollectionUtility) |
|
229 { |
|
230 iCollectionUtility->Close(); |
|
231 iCollectionUtility = NULL; |
|
232 } |
228 iLog->Log(_L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorDestruction testing ~CMPXCollectionMediator end err=%d"), err); |
233 iLog->Log(_L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorDestruction testing ~CMPXCollectionMediator end err=%d"), err); |
229 return err; |
234 return err; |
230 } |
235 } |
231 |
236 |
232 |
237 |
251 } |
256 } |
252 else |
257 else |
253 { |
258 { |
254 iLog->Log( _L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLWithMPXCollection testing CMPXCollectionMediator::NewL() End") ); |
259 iLog->Log( _L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLWithMPXCollection testing CMPXCollectionMediator::NewL() End") ); |
255 } |
260 } |
256 iCollectionUtility->Close(); |
|
257 return err; |
261 return err; |
258 } |
262 } |
259 |
263 |
260 // ----------------------------------------------------------------------------- |
264 // ----------------------------------------------------------------------------- |
261 // CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLC |
265 // CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLC |
269 TInt err = KErrNone; |
273 TInt err = KErrNone; |
270 iCollectionUtility = MMPXCollectionUtility::NewL( ); |
274 iCollectionUtility = MMPXCollectionUtility::NewL( ); |
271 iMediator = CMPXCollectionMediator::NewLC( iCollectionUtility->Collection() ); |
275 iMediator = CMPXCollectionMediator::NewLC( iCollectionUtility->Collection() ); |
272 CleanupStack::Pop( iMediator ); |
276 CleanupStack::Pop( iMediator ); |
273 iCollectionUtility->Close(); |
277 iCollectionUtility->Close(); |
|
278 iCollectionUtility = NULL; |
274 iLog->Log( _L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLC testing CMPXCollectionMediator::NewLC() End") ); |
279 iLog->Log( _L("CHarvesterCollectionMediatorTest::CMPXCollectionMediatorNewLC testing CMPXCollectionMediator::NewLC() End") ); |
275 return err; |
280 return err; |
276 } |
281 } |
277 |
282 |
278 |
283 |