featuremgmt/featuremgr/test/rtest/src/t_fmgroom.cpp
branchRCL_3
changeset 9 667e88a979d7
parent 8 fa9941cf3867
child 10 31a8f755b7fe
equal deleted inserted replaced
8:fa9941cf3867 9:667e88a979d7
    37 const TUid KInvalidFeatureUid   = {KInvalidFeatureId};
    37 const TUid KInvalidFeatureUid   = {KInvalidFeatureId};
    38 
    38 
    39 static TInt TheProcessHandleCount = 0;
    39 static TInt TheProcessHandleCount = 0;
    40 static TInt TheThreadHandleCount = 0;
    40 static TInt TheThreadHandleCount = 0;
    41 static TInt TheAllocatedCellsCount = 0;
    41 static TInt TheAllocatedCellsCount = 0;
    42 
       
    43 #ifdef EXTENDED_FEATURE_MANAGER_TEST
       
    44 static const TInt KBurstRate = 20;
    42 static const TInt KBurstRate = 20;
    45 #endif
    43 
    46 
    44 
    47 enum TFeatMgrOomTestMode
    45 enum TFeatMgrOomTestMode
    48     {
    46     {
    49     EFeatMgrOomServerTestMode,
    47     EFeatMgrOomServerTestMode,
    50     EFeatMgrOomClientTestMode,
    48     EFeatMgrOomClientTestMode,
   558     RFs fsSession;
   556     RFs fsSession;
   559     User::LeaveIfError(fsSession.Connect()); 
   557     User::LeaveIfError(fsSession.Connect()); 
   560     
   558     
   561     TEntry entry;
   559     TEntry entry;
   562     TInt err = fsSession.Entry(KZFeaturesDir, entry);
   560     TInt err = fsSession.Entry(KZFeaturesDir, entry);
       
   561     TEST2 (err, KErrNone);
   563     if (err == KErrNone)
   562     if (err == KErrNone)
   564         {
   563         {
       
   564         //if not extended this is attempting to delte from the Z drive
       
   565 #ifdef EXTENDED_FEATURE_MANAGER_TEST
   565         err = BaflUtils::DeleteFile(fsSession,KZFeaturesFile);
   566         err = BaflUtils::DeleteFile(fsSession,KZFeaturesFile);
   566         TEST2 (err, KErrNone);
   567         TEST2 (err, KErrNone);
   567         
   568 #endif        
   568         }
   569         }
   569     TEST2 (err, KErrNone);
       
   570     
       
   571     // close file server session
   570     // close file server session
   572     fsSession.Close();
   571     fsSession.Close();
   573     }
   572     }
   574 
   573 
   575 void DoTestsL()
   574 void DoTestsL()