equal
deleted
inserted
replaced
256 test(n==gTestSessionPath); |
256 test(n==gTestSessionPath); |
257 TVolumeInfo w; |
257 TVolumeInfo w; |
258 r=iFs.Volume(w,EDriveO); |
258 r=iFs.Volume(w,EDriveO); |
259 test_KErrNone(r); |
259 test_KErrNone(r); |
260 test(w.iDrive.iType==v.iDrive.iType); |
260 test(w.iDrive.iType==v.iDrive.iType); |
261 test(w.iDrive.iBattery==v.iDrive.iBattery); |
261 test(w.iDrive.iConnectionBusType==v.iDrive.iConnectionBusType); |
262 test(w.iDrive.iDriveAtt==KDriveAttSubsted); |
262 test(w.iDrive.iDriveAtt==KDriveAttSubsted); |
263 test(w.iDrive.iMediaAtt==v.iDrive.iMediaAtt); |
263 test(w.iDrive.iMediaAtt==v.iDrive.iMediaAtt); |
264 test(w.iUniqueID==v.iUniqueID); |
264 test(w.iUniqueID==v.iUniqueID); |
265 test(w.iSize==v.iSize); |
265 test(w.iSize==v.iSize); |
266 |
266 |
285 r=iFs.Drive(d,EDriveO); |
285 r=iFs.Drive(d,EDriveO); |
286 test_KErrNone(r); |
286 test_KErrNone(r); |
287 test(d.iDriveAtt==KDriveAttSubsted); |
287 test(d.iDriveAtt==KDriveAttSubsted); |
288 test(d.iMediaAtt==origDI.iMediaAtt); |
288 test(d.iMediaAtt==origDI.iMediaAtt); |
289 test(d.iType==origDI.iType); |
289 test(d.iType==origDI.iType); |
290 test(d.iBattery==origDI.iBattery); |
290 test(d.iConnectionBusType==origDI.iConnectionBusType); |
291 |
291 |
292 |
292 |
293 test.Next(_L("Test real name")); |
293 test.Next(_L("Test real name")); |
294 r=iFs.RealName(_L("O:\\FILE.XXX"),n); |
294 r=iFs.RealName(_L("O:\\FILE.XXX"),n); |
295 test_KErrNone(r); |
295 test_KErrNone(r); |
705 test.Printf(_L("DualDensity ")); |
705 test.Printf(_L("DualDensity ")); |
706 if (anInfo.iMediaAtt&KMediaAttFormattable) |
706 if (anInfo.iMediaAtt&KMediaAttFormattable) |
707 test.Printf(_L("Formattable ")); |
707 test.Printf(_L("Formattable ")); |
708 if (anInfo.iMediaAtt&KMediaAttWriteProtected) |
708 if (anInfo.iMediaAtt&KMediaAttWriteProtected) |
709 test.Printf(_L("WProtected ")); |
709 test.Printf(_L("WProtected ")); |
710 test.Printf(_L("\n BATTERY=")); |
710 test.Printf(_L("\n CONNECTION BUS=")); |
711 switch(anInfo.iBattery) |
711 switch(anInfo.iConnectionBusType) |
712 { |
712 { |
713 case EBatNotSupported: test.Printf(_L("Not supported\n")); break; |
713 case EConnectionBusInternal: test.Printf(_L("Internal\n")); break; |
714 case EBatGood: test.Printf(_L("Good\n")); break; |
714 case EConnectionBusUsb: test.Printf(_L("USB\n")); break; |
715 case EBatLow: test.Printf(_L("Low\n")); break; |
|
716 default: |
715 default: |
717 test.Printf(_L("Unknown value\n")); |
716 test.Printf(_L("Unknown value\n")); |
718 } |
717 } |
719 test.Printf(_L(" MEDIA=")); |
718 test.Printf(_L(" MEDIA=")); |
720 switch(anInfo.iType) |
719 switch(anInfo.iType) |
737 // |
736 // |
738 // Test the drive info is reasonable |
737 // Test the drive info is reasonable |
739 // |
738 // |
740 { |
739 { |
741 |
740 |
742 test(anInfo.iBattery==EBatLow || anInfo.iBattery==EBatGood || anInfo.iBattery==EBatNotSupported); |
741 test(anInfo.iConnectionBusType==EConnectionBusInternal || anInfo.iConnectionBusType==EConnectionBusUsb); |
743 |
742 |
744 if (aDrive==EDriveZ) |
743 if (aDrive==EDriveZ) |
745 { |
744 { |
746 if (anInfo.iType==EMediaNotPresent) |
745 if (anInfo.iType==EMediaNotPresent) |
747 return; |
746 return; |