kerneltest/f32test/shostmassstorage/msman/test/t_msman.cpp
changeset 6 0173bcd7697c
parent 0 a41df078684a
equal deleted inserted replaced
4:56f325a607ea 6:0173bcd7697c
    18 #include <e32cmn.h>
    18 #include <e32cmn.h>
    19 #include <e32base.h>
    19 #include <e32base.h>
    20 #include <f32file.h>
    20 #include <f32file.h>
    21 #include <e32cons.h>
    21 #include <e32cons.h>
    22 #include <e32debug.h>
    22 #include <e32debug.h>
       
    23 #define __E32TEST_EXTENSION__
    23 #include <e32test.h>
    24 #include <e32test.h>
    24 
    25 
    25 #include "tmsprintdrive.h"
    26 #include "tmsprintdrive.h"
    26 #include "tmslog.h"
    27 #include "tmslog.h"
    27 #include "cmsdrive.h"
    28 #include "cmsdrive.h"
    28 
    29 
    29 
    30 
    30 RTest test(_L("T_MSMAN"));
    31 RTest test(_L("T_MSMAN"));
    31 RFs fsSession;
    32 RFs fsSession;
    32 
    33 
    33 
    34 extern CMsDrive msDrive;
    34 
    35 
    35 void DriveTestL()
    36 void DriveTestL()
    36     {
    37     {
       
    38     test.Start(_L("Check USB drive attributes\n"));
       
    39     TInt driveNumber = msDrive.DriveNumber();
       
    40 
       
    41     // Check drive Info is USB Mass Storage
       
    42     TDriveInfo driveInfo;
       
    43     fsSession.Drive(driveInfo, driveNumber);
       
    44 
       
    45     test_Equal(driveInfo.iConnectionBusType, EConnectionBusUsb);
       
    46     test_Value(driveInfo.iDriveAtt & KDriveAttExternal, KDriveAttExternal);
       
    47     test.End();
    37     }
    48     }
    38 
    49 
    39 
    50 
    40 void CallTestsL()
    51 void CallTestsL()
    41     {
    52     {