kerneltest/f32test/shostmassstorage/msman/test/t_msman.cpp
changeset 33 0173bcd7697c
parent 0 a41df078684a
child 297 b2826f67641f
--- a/kerneltest/f32test/shostmassstorage/msman/test/t_msman.cpp	Wed Dec 23 11:43:31 2009 +0000
+++ b/kerneltest/f32test/shostmassstorage/msman/test/t_msman.cpp	Thu Jan 07 13:38:45 2010 +0200
@@ -20,6 +20,7 @@
 #include <f32file.h>
 #include <e32cons.h>
 #include <e32debug.h>
+#define __E32TEST_EXTENSION__
 #include <e32test.h>
 
 #include "tmsprintdrive.h"
@@ -30,10 +31,20 @@
 RTest test(_L("T_MSMAN"));
 RFs fsSession;
 
-
+extern CMsDrive msDrive;
 
 void DriveTestL()
     {
+    test.Start(_L("Check USB drive attributes\n"));
+    TInt driveNumber = msDrive.DriveNumber();
+
+    // Check drive Info is USB Mass Storage
+    TDriveInfo driveInfo;
+    fsSession.Drive(driveInfo, driveNumber);
+
+    test_Equal(driveInfo.iConnectionBusType, EConnectionBusUsb);
+    test_Value(driveInfo.iDriveAtt & KDriveAttExternal, KDriveAttExternal);
+    test.End();
     }