lowlevellibsandfws/pluginfw/Framework/EcomTestUtils/EcomTestUtils.cpp
changeset 44 97b0fb8a2cc2
parent 0 e4d67989cc36
child 57 2efc27d87e1c
equal deleted inserted replaced
22:ddc455616bd6 44:97b0fb8a2cc2
   206 		{	
   206 		{	
   207 		return EPlatformUnknown;
   207 		return EPlatformUnknown;
   208 		}
   208 		}
   209 
   209 
   210 	//determine the ROM confguration (NAND or non-NAND)
   210 	//determine the ROM confguration (NAND or non-NAND)
       
   211 	TInt r = KErrNone;
   211 	RFs fs;
   212 	RFs fs;
   212 	fs.Connect();
   213 	r = fs.Connect();
       
   214 	if (r != KErrNone)
       
   215 		{
       
   216 			return r;
       
   217 		}
   213 	TBool nandBuild = (EComTestUtils::RomBuildType(fs)==ENandRomBuild);
   218 	TBool nandBuild = (EComTestUtils::RomBuildType(fs)==ENandRomBuild);
   214 	fs.Close();
   219 	fs.Close();
   215 	
   220 	
   216 	//determine whether this ROM is Demand-Paging enabled
   221 	//determine whether this ROM is Demand-Paging enabled
   217 	TBool DP_rom = false;	
   222 	TBool DP_rom = false;	
   249 			//Under WDP enabled configuration, the C drive is of type 'Hard Disk'
   254 			//Under WDP enabled configuration, the C drive is of type 'Hard Disk'
   250 			//This is done since the function EComTestUtils::RomBuildType, above, used for a similar purpose,
   255 			//This is done since the function EComTestUtils::RomBuildType, above, used for a similar purpose,
   251 			//is also checking the media type of C drive to determine the same.
   256 			//is also checking the media type of C drive to determine the same.
   252 			//Currently added this check for WDP enabled in case of H4 'muid == HAL::EMachineUid_OmapH4' only
   257 			//Currently added this check for WDP enabled in case of H4 'muid == HAL::EMachineUid_OmapH4' only
   253 			TDriveInfo driveInfo;
   258 			TDriveInfo driveInfo;
   254 			
   259 			TInt rf = KErrNone;
   255 			fs.Connect();
   260 			rf = fs.Connect();
       
   261 			if (rf != KErrNone)
       
   262 		  		{
       
   263 			  return rf;
       
   264 		  		}
   256 			fs.Drive(driveInfo, EDriveC);
   265 			fs.Drive(driveInfo, EDriveC);
   257 			fs.Close();
   266 			fs.Close();
   258 
   267 
   259 			if (EMediaHardDisk == driveInfo.iType)
   268 			if (EMediaHardDisk == driveInfo.iType)
   260 				{
   269 				{