locationtriggering/tsrc/lbtengine_test/LbtUnitTestModule/inc/LbtUnitTestModule.h
changeset 50 4c28d569e1fe
equal deleted inserted replaced
43:24e118dfbea1 50:4c28d569e1fe
       
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 * 
       
    14 * Description: STIF testclass declaration
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef LBTUNITTESTMODULE_H
       
    19 #define LBTUNITTESTMODULE_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <StifLogger.h>
       
    23 #include <TestScripterInternal.h>
       
    24 #include <StifTestModule.h>
       
    25 #include <TestclassAssert.h>
       
    26 #include "lbtdiskspaceobserver.h"
       
    27 
       
    28 // Logging path
       
    29 _LIT( KLbtUnitTestModuleLogPath, "\\logs\\testframework\\LbtUnitTestModule\\" ); 
       
    30 // Log file
       
    31 _LIT( KLbtUnitTestModuleLogFile, "LbtUnitTestModule.txt" ); 
       
    32 _LIT( KLbtUnitTestModuleLogFileWithTitle, "LbtUnitTestModule_[%S].txt" );
       
    33 
       
    34 class CLbtUnitTestModule;
       
    35 class MLbtDiskSpaceObserver;
       
    36 
       
    37 
       
    38 /**
       
    39  *  CLbtUnitTestModule test class for STIF Test Framework TestScripter.
       
    40  */
       
    41 NONSHARABLE_CLASS(CLbtUnitTestModule) : public CScriptBase,
       
    42                                         public MLbtDiskSpaceObserver
       
    43     {
       
    44     public:  // Constructors and destructor
       
    45 
       
    46         /**
       
    47         * Two-phased constructor.
       
    48         */
       
    49         static CLbtUnitTestModule* NewL( CTestModuleIf& aTestModuleIf );
       
    50 
       
    51         /**
       
    52         * Destructor.
       
    53         */
       
    54         virtual ~CLbtUnitTestModule();
       
    55 
       
    56     public: // Functions from base classes
       
    57 
       
    58         /**
       
    59         * From CScriptBase Runs a script line.
       
    60         * @since ?Series60_version
       
    61         * @param aItem Script line containing method name and parameters
       
    62         * @return Symbian OS error code
       
    63         */
       
    64         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    65     
       
    66     public:
       
    67         virtual void HandleDiskSpaceChange();
       
    68 
       
    69     private:
       
    70 
       
    71         /**
       
    72         * C++ default constructor.
       
    73         */
       
    74         CLbtUnitTestModule( CTestModuleIf& aTestModuleIf );
       
    75 
       
    76         /**
       
    77         * By default Symbian 2nd phase constructor is private.
       
    78         */
       
    79         void ConstructL();
       
    80 
       
    81         /**
       
    82         * Frees all resources allocated from test methods.
       
    83         */
       
    84         void Delete();
       
    85 
       
    86         /**
       
    87         * Test methods are listed below. 
       
    88         */
       
    89         TInt TestCLbtGeoGsmCellNewL( CStifItemParser& aItem );
       
    90         
       
    91         TInt TestCLbtGeoGsmCellNewLC( CStifItemParser& aItem );
       
    92         
       
    93         TInt TestCLbtGeoGsmCellNew1L( CStifItemParser& aItem );
       
    94         
       
    95         TInt TestCLbtGeoGsmCellNew1LC( CStifItemParser& aItem );
       
    96         
       
    97         TInt TestSetAndGetBsicL( CStifItemParser& aItem );
       
    98         
       
    99         TInt TestGsmCGISpecifiedDuringCreationL( CStifItemParser& aItem );
       
   100         
       
   101         TInt TestGsmCellInternalizeExternalizeL( CStifItemParser& aItem );
       
   102         
       
   103         TInt TestCLbtGeoWcdmaCellL( CStifItemParser& aItem );
       
   104         
       
   105         TInt TestCLbtGeoWcdmaCellLC( CStifItemParser& aItem );
       
   106         
       
   107         TInt TestCLbtGeoWcdmaCell1L( CStifItemParser& aItem );
       
   108         
       
   109         TInt TestCLbtGeoWcdmaCell1LC( CStifItemParser& aItem );
       
   110         
       
   111         TInt TestSetAndGetWcdmaInfoL( CStifItemParser& aItem );
       
   112         
       
   113         TInt TestWcdmaCGISpecifiedDuringCreationL( CStifItemParser& aItem );
       
   114         
       
   115         TInt TestWcdmaCellInternalizeExternalizeL( CStifItemParser& aItem );
       
   116         
       
   117         TInt TestSetAndGetOptimisationLevelL( CStifItemParser& aItem );
       
   118         
       
   119         TInt TestSetAndGetModuleIdL( CStifItemParser& aItem );
       
   120         
       
   121         TInt TestSetAndGetNppModuleIdL( CStifItemParser& aItem );
       
   122         
       
   123         TInt TestSetAndGetMinUpdateIntOnGpsFailureL( CStifItemParser& aItem );
       
   124         
       
   125         TInt TestSetAndGetMaximumUserSpeedL( CStifItemParser& aItem  );
       
   126         
       
   127         TInt TestSetAndGetTrigMechStateL( CStifItemParser& aItem  );
       
   128         
       
   129         TInt TestTriggerConfigParamsL( CStifItemParser& aItem );
       
   130         
       
   131         TInt TestCLbtDiskSpaceListnerStartToListenL( CStifItemParser& aItem );
       
   132         
       
   133         TInt TestCLbtDiskSpaceListnerCancelL( CStifItemParser& aItem );
       
   134         
       
   135         TInt TestTriggerNodeMethodsL( CStifItemParser& aItem );
       
   136         
       
   137         TInt TestGsmCellInfoMethodsL( CStifItemParser& aItem );
       
   138         
       
   139         TInt TestWcdmaCellInfoMethodsL( CStifItemParser& aItem );
       
   140         
       
   141         TInt TestLbtOperationsMethodL( CStifItemParser& aItem );
       
   142 
       
   143 private:
       
   144     CActiveSchedulerWait* iWait;
       
   145         
       
   146     };
       
   147 
       
   148 #endif      // LBTUNITTESTMODULE_H
       
   149 
       
   150 // End of File