kerneltest/f32test/fileutils/inc/f32_test_utils.h
branchRCL_3
changeset 44 3e88ff8f41d5
parent 43 c1f20ce4abcf
equal deleted inserted replaced
43:c1f20ce4abcf 44:3e88ff8f41d5
    57 
    57 
    58 TInt  RemountFS(RFs& aFs, TInt aDrive, TTime* apTimeMountStart=NULL);
    58 TInt  RemountFS(RFs& aFs, TInt aDrive, TTime* apTimeMountStart=NULL);
    59 
    59 
    60 TInt FormatDrive(RFs &aFs, TInt aDrive, TBool aQuickFormat); 
    60 TInt FormatDrive(RFs &aFs, TInt aDrive, TBool aQuickFormat); 
    61 
    61 
    62 //-----------------------------------------------------------------------------
       
    63 
       
    64 TBool CompareBuffers(const TDesC8& aBuf1, const TDesC8& aBuf2);
       
    65 TBool CompareBuffers(const TAny* apBuf1, TUint aBuf1Len, const TAny* apBuf2, TUint aBuf2Len);
       
    66 
       
    67 void  HexDump(const TDesC8& aBuf);
       
    68 void  HexDump(const TAny* apBuf, TUint aBufLen);
       
    69 
    62 
    70 //-----------------------------------------------------------------------------
    63 //-----------------------------------------------------------------------------
    71 /** 
    64 /** 
    72     a file system descriptor. Contains the information about file system.
    65     a file system descriptor. Contains the information about file system.
    73     support for non-primary FS extensions is not implemented yet, it suports primary extensions only
    66     support for non-primary FS extensions is not implemented yet, it suports primary extensions only
   143 };
   136 };
   144 
   137 
   145 
   138 
   146 
   139 
   147 
   140 
   148 TBool Is_Lffs(RFs &aFs, TInt aDrive);	//-- returns ETrue if "lffs" FS is mounted on this drive 
   141 TBool Is_Lffs(RFs &aFs, TInt aDrive);   //-- returns ETrue if "lffs" FS is mounted on this drive 
   149 TBool Is_Win32(RFs &aFs, TInt aDrive);	//-- returns ETrue if "Win32" FS is mounted on this drive (i.e this is emulator's drive C:)										
   142 TBool Is_Win32(RFs &aFs, TInt aDrive);  //-- returns ETrue if "win32" FS is mounted on this drive (i.e this is emulator's drive c:)
   150 TBool Is_ExFat(RFs &aFs, TInt aDrive);	//-- returns ETrue if "exFAT" FS is mounted on this drive 
   143 TBool Is_ExFat(RFs &aFs, TInt aDrive);  //-- returns ETrue if "exFAT" FS is mounted on this drive 
   151 TBool Is_Automounter(RFs &aFs, TInt aDrive);	//-- returns ETrue if "Automounter" FS is mounted on this drive 
   144 TBool Is_Automounter(RFs &aFs, TInt aDrive);  //-- returns ETrue if "Automounter" FS is mounted on this drive 
   152 
   145 
   153 TBool Is_HVFS(RFs &aFs, TInt aDrive);			//-- returns ETrue if "HVFS" is mounted on this drive (i.e PlatSim's drive C:)
       
   154 TBool Is_SimulatedSystemDrive(RFs &aFs, TInt aDrive);	//-- returns ETrue if "HVFS" or "Win32" FS is mounted on this drive
       
   155 														//	 (i.e drive C: of PlatSim or the emulator)
       
   156 
   146 
   157 TBool Is_Fat(RFs &aFs, TInt aDrive);    //-- returns ETrue if "FAT" FS (FAT12/16/32) is mounted on this drive 
   147 TBool Is_Fat(RFs &aFs, TInt aDrive);    //-- returns ETrue if "FAT" FS (FAT12/16/32) is mounted on this drive 
   158 
   148 
   159 TBool Is_Fat32(RFs &aFs, TInt aDrive);  //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT32 type
   149 TBool Is_Fat32(RFs &aFs, TInt aDrive);  //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT32 type
   160 TBool Is_Fat16(RFs &aFs, TInt aDrive);  //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT16 type    
   150 TBool Is_Fat16(RFs &aFs, TInt aDrive);  //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT16 type    
   161 TBool Is_Fat12(RFs &aFs, TInt aDrive);  //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT12 type
   151 TBool Is_Fat12(RFs &aFs, TInt aDrive);  //-- returns ETrue if "FAT" FS is mounted on this drive and it is FAT12 type
   162 
   152 
   163 
   153 
   164 
   154 
   165 
       
   166 
       
   167 //#############################################################################
   155 //#############################################################################
   168 //#  some  private helper functions  
   156 //#  some  private helper functions  
   169 //#############################################################################
   157 //#############################################################################
   170 void DoPrintf(TRefByValue<const TDesC> aFmt,...);
   158 void DoPrintf(TRefByValue<const TDesC> aFmt,...);
   171 void DoMediaRawReadL(RFs &aFs, TInt aDrive, TInt64 aMediaPos, TUint32 aLen, TDes8& aData);
   159 void DoMediaRawReadL(RFs &aFs, TInt aDrive, TInt64 aMediaPos, TUint32 aLen, TDes8& aData);