coreapplicationuis/rfsplugins/tsrc/rfspluginstest/FormatterRFSPluginTestModule/inc/FormatterRFSPluginTestModule.h
changeset 69 dcd4152cfe55
equal deleted inserted replaced
65:8a530a83576a 69:dcd4152cfe55
       
     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 FORMATTERRFSPLUGINTESTMODULE_H
       
    19 #define FORMATTERRFSPLUGINTESTMODULE_H
       
    20 
       
    21 //  INCLUDES
       
    22 #include <StifLogger.h>
       
    23 #include <TestScripterInternal.h>
       
    24 #include <StifTestModule.h>
       
    25 #include <TestclassAssert.h>
       
    26 
       
    27 class CRFSPlugin;
       
    28 
       
    29 // CONSTANTS
       
    30 //const ?type ?constant_var = ?constant;
       
    31 
       
    32 // MACROS
       
    33 //#define ?macro ?macro_def
       
    34 #define TEST_CLASS_VERSION_MAJOR 0
       
    35 #define TEST_CLASS_VERSION_MINOR 0
       
    36 #define TEST_CLASS_VERSION_BUILD 0
       
    37 
       
    38 // Logging path
       
    39 _LIT( KFormatterRFSPluginTestModuleLogPath, "\\logs\\testframework\\FormatterRFSPluginTestModule\\" ); 
       
    40 // Log file
       
    41 _LIT( KFormatterRFSPluginTestModuleLogFile, "FormatterRFSPluginTestModule.txt" ); 
       
    42 _LIT( KFormatterRFSPluginTestModuleLogFileWithTitle, "FormatterRFSPluginTestModule_[%S].txt" );
       
    43 
       
    44 // FUNCTION PROTOTYPES
       
    45 //?type ?function_name(?arg_list);
       
    46 
       
    47 // FORWARD DECLARATIONS
       
    48 //class ?FORWARD_CLASSNAME;
       
    49 class CFormatterRFSPluginTestModule;
       
    50 
       
    51 // DATA TYPES
       
    52 //enum ?declaration
       
    53 //typedef ?declaration
       
    54 //extern ?data_type;
       
    55 
       
    56 // CLASS DECLARATION
       
    57 
       
    58 /**
       
    59 *  CFormatterRFSPluginTestModule test class for STIF Test Framework TestScripter.
       
    60 *  ?other_description_lines
       
    61 *
       
    62 *  @lib ?library
       
    63 *  @since ?Series60_version
       
    64 */
       
    65 NONSHARABLE_CLASS(CFormatterRFSPluginTestModule) : public CScriptBase
       
    66     {
       
    67     public:  // Constructors and destructor
       
    68 
       
    69         /**
       
    70         * Two-phased constructor.
       
    71         */
       
    72         static CFormatterRFSPluginTestModule* NewL( CTestModuleIf& aTestModuleIf );
       
    73 
       
    74         /**
       
    75         * Destructor.
       
    76         */
       
    77         virtual ~CFormatterRFSPluginTestModule();
       
    78 
       
    79     public: // New functions
       
    80 
       
    81         /**
       
    82         * ?member_description.
       
    83         * @since ?Series60_version
       
    84         * @param ?arg1 ?description
       
    85         * @return ?description
       
    86         */
       
    87         //?type ?member_function( ?type ?arg1 );
       
    88 
       
    89     public: // Functions from base classes
       
    90 
       
    91         /**
       
    92         * From CScriptBase Runs a script line.
       
    93         * @since ?Series60_version
       
    94         * @param aItem Script line containing method name and parameters
       
    95         * @return Symbian OS error code
       
    96         */
       
    97         virtual TInt RunMethodL( CStifItemParser& aItem );
       
    98 
       
    99     protected:  // New functions
       
   100 
       
   101         /**
       
   102         * ?member_description.
       
   103         * @since ?Series60_version
       
   104         * @param ?arg1 ?description
       
   105         * @return ?description
       
   106         */
       
   107         //?type ?member_function( ?type ?arg1 );
       
   108 
       
   109     protected:  // Functions from base classes
       
   110 
       
   111         /**
       
   112         * From ?base_class ?member_description
       
   113         */
       
   114         //?type ?member_function();
       
   115 
       
   116     private:
       
   117 
       
   118         /**
       
   119         * C++ default constructor.
       
   120         */
       
   121         CFormatterRFSPluginTestModule( CTestModuleIf& aTestModuleIf );
       
   122 
       
   123         /**
       
   124         * By default Symbian 2nd phase constructor is private.
       
   125         */
       
   126         void ConstructL();
       
   127 
       
   128         // Prohibit copy constructor if not deriving from CBase.
       
   129         // ?classname( const ?classname& );
       
   130         // Prohibit assigment operator if not deriving from CBase.
       
   131         // ?classname& operator=( const ?classname& );
       
   132 
       
   133         /**
       
   134         * Frees all resources allocated from test methods.
       
   135         * @since ?Series60_version
       
   136         */
       
   137         void Delete();
       
   138 
       
   139         /**
       
   140         * Test methods are listed below. 
       
   141         */
       
   142     private:    // New methods
       
   143 
       
   144         TInt SetupEmptyL(CStifItemParser& aItem);
       
   145         TInt SetupConditionalL(CStifItemParser& aItem);
       
   146         TInt SetupL(CStifItemParser& aItem);
       
   147         TInt SetupExcludeListOnlyL(CStifItemParser& aItem);
       
   148         TInt SetupAppSpecExcludeListOnlyL(CStifItemParser& aItem);
       
   149         TInt SetupExcludeListL(CStifItemParser& aItem);
       
   150         TInt SetupAppSpecExcludeListL(CStifItemParser& aItem);
       
   151         TInt Teardown(CStifItemParser& aItem);
       
   152         TInt TeardownExcludeList(CStifItemParser& aItem);
       
   153         TInt TeardownAppSpecExcludeList(CStifItemParser& aItem);
       
   154 
       
   155         TInt TestConstructorL(CStifItemParser& aItem);
       
   156         TInt TestConstructorNoMemoryL(CStifItemParser& aItem);
       
   157 
       
   158         TInt TestRestoreConditionalL(CStifItemParser& aItem);
       
   159         TInt TestRestoreL(CStifItemParser& aItem);
       
   160         TInt TestRestoreWithExcludeListL(CStifItemParser& aItem);
       
   161         TInt TestRestoreNoMemoryL(CStifItemParser& aItem);
       
   162         TInt TestGetScriptConditionalL(CStifItemParser& aItem);
       
   163         TInt TestGetScriptL(CStifItemParser& aItem);
       
   164         TInt TestGetScriptEmptyL(CStifItemParser& aItem);
       
   165         TInt TestCustomCommandL(CStifItemParser& aItem);
       
   166         
       
   167         void AppExcludeListsExistL();
       
   168 
       
   169         /**
       
   170         * Example test method.
       
   171         * @since ?Series60_version
       
   172         * @param aItem Script line containing parameters.
       
   173         * @return Symbian OS error code.
       
   174         */
       
   175         //virtual TInt ExampleL( CStifItemParser& aItem );
       
   176         
       
   177         /**
       
   178          * Method used to log version of test class
       
   179          */
       
   180         void SendTestClassVersion();
       
   181 
       
   182         //ADD NEW METHOD DEC HERE
       
   183         //[TestMethods] - Do not remove
       
   184 
       
   185     public:     // Data
       
   186         // ?one_line_short_description_of_data
       
   187         //?data_declaration;
       
   188 
       
   189     protected:  // Data
       
   190         // ?one_line_short_description_of_data
       
   191         //?data_declaration;
       
   192 
       
   193     private:    // Data
       
   194         
       
   195         /** Instance of the class that this test suite is testing. */
       
   196         CRFSPlugin* iTestObj;
       
   197         
       
   198         TBool iAppSpecificFilesExist;
       
   199 
       
   200     public:     // Friend classes
       
   201         //?friend_class_declaration;
       
   202     protected:  // Friend classes
       
   203         //?friend_class_declaration;
       
   204     private:    // Friend classes
       
   205         //?friend_class_declaration;
       
   206 
       
   207     };
       
   208 
       
   209 #endif      // FORMATTERRFSPLUGINTESTMODULE_H
       
   210 
       
   211 // End of File