smsprotocols/smsstack/smsprot/Test/TE_Smsprt/TE_SetDiskSpaceMonitorLimits.cpp
changeset 20 244d7c5f118e
parent 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
19:1f776524b15c 20:244d7c5f118e
    14 // Description:
    14 // Description:
    15 //
    15 //
    16 
    16 
    17 #include "TE_smsmondsk.h"
    17 #include "TE_smsmondsk.h"
    18 
    18 
       
    19 CSetDiskMonitorLimits::CSetDiskMonitorLimits()
       
    20 /** 
       
    21     Each test step initialises it's own name
       
    22 */
       
    23     {
       
    24     iPartOfMultiStepTestCase = ETrue;
       
    25     }
       
    26 
    19 enum TVerdict CSetDiskMonitorLimits::doTestStepL()
    27 enum TVerdict CSetDiskMonitorLimits::doTestStepL()
    20 /**
    28 /**
    21 	Creates smsu.rsc file which defines the upper and lower limits for the disk space monitor
    29 	Creates smsu.rsc file which defines the upper and lower limits for the disk space monitor
    22 */
    30 */
    23 
       
    24     {
    31     {
    25 #ifndef _DEBUG
    32 #ifndef _DEBUG
    26     INFO_PRINTF1(_L("This test can only be run when the SMS Stack is in debug mode."));
    33     INFO_PRINTF1(_L("This test can only be run when the SMS Stack is in debug mode."));
    27 #else    
    34 #else    
    28     TInt highDrop = 4;
    35     TInt highDrop = 3;
    29     TInt lowDrop = 10;
    36     TInt lowDrop  = 8;
    30     TInt freeDrop = 0;
    37     TInt freeDrop = 0;
    31    
    38    
    32     GetIntFromConfig(_L("DiskMonitorLimits"), _L("highDrop"), highDrop);
    39     GetIntFromConfig(_L("DiskMonitorLimits"), _L("highDrop"), highDrop);
    33     GetIntFromConfig(_L("DiskMonitorLimits"), _L("lowDrop"), lowDrop);
    40     GetIntFromConfig(_L("DiskMonitorLimits"), _L("lowDrop"), lowDrop);
    34    
    41