kerneltest/f32test/fsstress/t_remses.cpp
changeset 33 0173bcd7697c
parent 0 a41df078684a
equal deleted inserted replaced
31:56f325a607ea 33:0173bcd7697c
   306 	aTest(n==iSessionPath);
   306 	aTest(n==iSessionPath);
   307 	TVolumeInfo w;
   307 	TVolumeInfo w;
   308 	r=iFs.Volume(w,EDriveO);
   308 	r=iFs.Volume(w,EDriveO);
   309 	aTest(r==KErrNone);
   309 	aTest(r==KErrNone);
   310 	aTest(w.iDrive.iType==v.iDrive.iType);
   310 	aTest(w.iDrive.iType==v.iDrive.iType);
   311 	aTest(w.iDrive.iBattery==v.iDrive.iBattery);
   311 	aTest(w.iDrive.iConnectionBusType==v.iDrive.iConnectionBusType);
   312 	aTest(w.iDrive.iDriveAtt==v.iDrive.iDriveAtt);
   312 	aTest(w.iDrive.iDriveAtt==v.iDrive.iDriveAtt);
   313 	aTest(w.iDrive.iMediaAtt==v.iDrive.iMediaAtt);
   313 	aTest(w.iDrive.iMediaAtt==v.iDrive.iMediaAtt);
   314 	aTest(w.iUniqueID==v.iUniqueID);
   314 	aTest(w.iUniqueID==v.iUniqueID);
   315 	aTest(w.iSize==v.iSize);
   315 	aTest(w.iSize==v.iSize);
   316 	aTest(w.iFree==v.iFree);
   316 	aTest(w.iFree==v.iFree);
   599 		aTest.Printf(_L("DualDensity "));
   599 		aTest.Printf(_L("DualDensity "));
   600 	if (anInfo.iMediaAtt&KMediaAttFormattable)
   600 	if (anInfo.iMediaAtt&KMediaAttFormattable)
   601 		aTest.Printf(_L("Formattable "));
   601 		aTest.Printf(_L("Formattable "));
   602 	if (anInfo.iMediaAtt&KMediaAttWriteProtected)
   602 	if (anInfo.iMediaAtt&KMediaAttWriteProtected)
   603 		aTest.Printf(_L("WProtected "));
   603 		aTest.Printf(_L("WProtected "));
   604 	aTest.Printf(_L("\n   BATTERY="));
   604 	aTest.Printf(_L("\n   CONNECTION BUS TYPE="));
   605 	switch(anInfo.iBattery)
   605 	switch(anInfo.iConnectionBusType)
   606 		{
   606 		{
   607 	case EBatNotSupported: aTest.Printf(_L("Not supported\n")); break;
   607 	case EConnectionBusInternal: aTest.Printf(_L("Internal\n")); break;
   608 	case EBatGood: aTest.Printf(_L("Good\n")); break;
   608 	case EConnectionBusUsb: aTest.Printf(_L("USB\n")); break;
   609 	case EBatLow: aTest.Printf(_L("Low\n")); break;
       
   610 	default:
   609 	default:
   611 		aTest.Printf(_L("Unknown value\n"));
   610 		aTest.Printf(_L("Unknown value\n"));
   612 		}
   611 		}
   613 	aTest.Printf(_L("   MEDIA="));
   612 	aTest.Printf(_L("   MEDIA="));
   614 	switch(anInfo.iType)
   613 	switch(anInfo.iType)
   631 //
   630 //
   632 //	Test the drive info is reasonable
   631 //	Test the drive info is reasonable
   633 //
   632 //
   634 	{
   633 	{
   635 
   634 
   636 	aTest(anInfo.iBattery==EBatLow || anInfo.iBattery==EBatGood || anInfo.iBattery==EBatNotSupported);
   635 	aTest(anInfo.iConnectionBusType==EConnectionBusInternal || anInfo.iConnectionBusType==EConnectionBusUsb);
   637 	
   636 	
   638 	if (aDrive==EDriveZ)
   637 	if (aDrive==EDriveZ)
   639 		{
   638 		{
   640 		if (anInfo.iType==EMediaNotPresent)
   639 		if (anInfo.iType==EMediaNotPresent)
   641 			return;
   640 			return;