mpengine/tsrc/unittest_mpmpxisolatedcollectionhelper/src/unittest_mpmpxisolatedcollectionhelper.cpp
changeset 58 ed94e1e8390e
parent 54 c5b304f4d89b
equal deleted inserted replaced
54:c5b304f4d89b 58:ed94e1e8390e
   110     mTest->OpenCollectionL(*path);
   110     mTest->OpenCollectionL(*path);
   111     QCOMPARE(mTest->iIncrementalOpenUtil->iDelay, KIncrementalDelay);
   111     QCOMPARE(mTest->iIncrementalOpenUtil->iDelay, KIncrementalDelay);
   112     QCOMPARE(mTest->iIncrementalOpenUtil->iStop,TBool(ETrue));
   112     QCOMPARE(mTest->iIncrementalOpenUtil->iStop,TBool(ETrue));
   113     QCOMPARE(mTest->iIncrementalOpenUtil->iStart,TBool(ETrue));
   113     QCOMPARE(mTest->iIncrementalOpenUtil->iStart,TBool(ETrue));
   114     QCOMPARE(mTest->iFirstIncrementalOpen,TBool(ETrue));
   114     QCOMPARE(mTest->iFirstIncrementalOpen,TBool(ETrue));
   115     QCOMPARE(mTest->iIncrementalOpenUtil->iDirection,CMPXCollectionOpenUtility::EFetchNormal);
   115     QCOMPARE(mTest->iIncrementalOpenUtil->iDirection,CMPXCollectionOpenUtility::EFetchDown);
   116     QCOMPARE(mTest->iIncrementalOpenUtil->iChunkSize, KIncrementalFetchBlockSize);
   116     QCOMPARE(mTest->iIncrementalOpenUtil->iChunkSize, KIncrementalFetchBlockSize);
   117     QCOMPARE((int)mTest->iIncrementalOpenUtil->iPath, (int)path);
   117     QCOMPARE((int)mTest->iIncrementalOpenUtil->iPath, (int)path);
   118     QCOMPARE(mTest->iOpenMode, CMpMpxIsolatedCollectionHelper::DefaultMode );
   118     QCOMPARE(mTest->iOpenMode, CMpMpxIsolatedCollectionHelper::DefaultMode );
   119     
   119     
   120     mTest->OpenCollectionL(*path,0,CMpMpxIsolatedCollectionHelper::RestorePathMode);
   120     mTest->OpenCollectionL(*path,0,CMpMpxIsolatedCollectionHelper::RestorePathMode);
   121     QCOMPARE(mTest->iIncrementalOpenUtil->iDelay, KIncrementalDelay);
   121     QCOMPARE(mTest->iIncrementalOpenUtil->iDelay, KIncrementalDelay);
   122     QCOMPARE(mTest->iIncrementalOpenUtil->iStop,TBool(ETrue));
   122     QCOMPARE(mTest->iIncrementalOpenUtil->iStop,TBool(ETrue));
   123     QCOMPARE(mTest->iIncrementalOpenUtil->iStart,TBool(ETrue));
   123     QCOMPARE(mTest->iIncrementalOpenUtil->iStart,TBool(ETrue));
   124     QCOMPARE(mTest->iFirstIncrementalOpen,TBool(ETrue));
   124     QCOMPARE(mTest->iFirstIncrementalOpen,TBool(ETrue));
   125     QCOMPARE(mTest->iIncrementalOpenUtil->iDirection,CMPXCollectionOpenUtility::EFetchNormal);
   125     QCOMPARE(mTest->iIncrementalOpenUtil->iDirection,CMPXCollectionOpenUtility::EFetchDown);
   126     QCOMPARE(mTest->iIncrementalOpenUtil->iChunkSize, KIncrementalFetchBlockSize);
   126     QCOMPARE(mTest->iIncrementalOpenUtil->iChunkSize, KIncrementalFetchBlockSize);
   127     QCOMPARE((int)mTest->iIncrementalOpenUtil->iPath, (int)path);
   127     QCOMPARE((int)mTest->iIncrementalOpenUtil->iPath, (int)path);
   128     QCOMPARE(mTest->iOpenMode, CMpMpxIsolatedCollectionHelper::RestorePathMode );
   128     QCOMPARE(mTest->iOpenMode, CMpMpxIsolatedCollectionHelper::RestorePathMode );
   129     
   129     
   130     delete path;
   130     delete path;