appinstall_plat/sifui_api/tsrc/inc/sifuitest.h
changeset 42 d17dc5398051
parent 25 98b66e4fb0be
equal deleted inserted replaced
37:6e7b00453237 42:d17dc5398051
    36 #define ENTRY(str,func) {_S(str), GETPTR func,0,0,0}
    36 #define ENTRY(str,func) {_S(str), GETPTR func,0,0,0}
    37 #define FUNCENTRY(func) {_S(#func), GETPTR func,0,0,0}
    37 #define FUNCENTRY(func) {_S(#func), GETPTR func,0,0,0}
    38 #define OOM_ENTRY(str,func,a,b,c) {_S(str), GETPTR func,a,b,c}
    38 #define OOM_ENTRY(str,func,a,b,c) {_S(str), GETPTR func,a,b,c}
    39 #define OOM_FUNCENTRY(func,a,b,c) {_S(#func), GETPTR func,a,b,c}
    39 #define OOM_FUNCENTRY(func,a,b,c) {_S(#func), GETPTR func,a,b,c}
    40 
    40 
       
    41 class CX509Certificate;
    41 class CSifUiTest;
    42 class CSifUiTest;
    42 class CSifUi;
    43 class CSifUi;
    43 
    44 
    44 // Pointer to test function (that does the actual testing) type definition
    45 // Pointer to test function (that does the actual testing) type definition
    45 typedef TInt (CSifUiTest::* TestFunction)(TTestResult&);
    46 typedef TInt (CSifUiTest::* TestFunction)(TTestResult&);
   141          */
   142          */
   142         void AsyncWaitAndSendKeyEventL( TTimeIntervalMicroSeconds32 aDelay,
   143         void AsyncWaitAndSendKeyEventL( TTimeIntervalMicroSeconds32 aDelay,
   143                 const TKeyEvent& aKeyEvent ) const;
   144                 const TKeyEvent& aKeyEvent ) const;
   144 
   145 
   145         /**
   146         /**
   146          * Helper function to create new CSifUi object in iSifUi member.
   147          * Helper function to create Swi::CCertificateInfo objects.
   147          * @return TInt - result code for creating new CSifUi
   148          */
   148          */
   149         CX509Certificate* ReadCertificateL( const TDesC& aFileName );
   149         TInt CreateSifUi();
       
   150 
   150 
   151 
   151 
   152         // --- TEST CASE FUNCTIONS ---
   152         // --- TEST CASE FUNCTIONS ---
   153 
   153 
   154         /**
   154         /**
   157          * @return Symbian OS error code (other than test result)
   157          * @return Symbian OS error code (other than test result)
   158          */
   158          */
   159         TInt CreateLowMemTest( TTestResult& aResult );
   159         TInt CreateLowMemTest( TTestResult& aResult );
   160 
   160 
   161         /**
   161         /**
   162          * Run information note test case.
   162          * Run drive selection test case.
   163          * @param aResult - test case result (PASS/FAIL)
   163          * @param aResult - test case result (PASS/FAIL)
   164          * @return Symbian OS error code (other than test result)
   164          * @return Symbian OS error code (other than test result)
   165          */
   165          */
   166         TInt InformationNoteTest( TTestResult& aResult );
   166         TInt MemorySelectionTest( TTestResult& aResult );
   167 
   167 
   168         /**
   168         /**
   169          * Run warning note test case.
   169          * Helper function for MemorySelectionTest()
   170          * @param aResult - test case result (PASS/FAIL)
   170          */
   171          * @return Symbian OS error code (other than test result)
   171         void DoMemorySelectionTestL( TTestResult& aResult );
   172          */
   172 
   173         TInt WarningNoteTest( TTestResult& aResult );
   173         /**
   174 
   174          * Run certificate info test case.
   175         /**
   175          * @param aResult - test case result (PASS/FAIL)
   176          * Run error note test case.
   176          * @return Symbian OS error code (other than test result)
   177          * @param aResult - test case result (PASS/FAIL)
   177          */
   178          * @return Symbian OS error code (other than test result)
   178         TInt CertificateInfoTest( TTestResult& aResult );
   179          */
   179 
   180         TInt ErrorNoteTest( TTestResult& aResult );
   180         /**
   181 
   181          * Helper function for CertificateInfoTest()
   182         /**
   182          */
   183          * Run permanent note test case.
   183         void DoCertificateInfoTestL( TTestResult& aResult );
   184          * @param aResult - test case result (PASS/FAIL)
   184 
   185          * @return Symbian OS error code (other than test result)
   185         /**
   186          */
   186          * Run application info test case.
   187         TInt PermanentNoteTest( TTestResult& aResult );
   187          * @param aResult - test case result (PASS/FAIL)
   188 
   188          * @return Symbian OS error code (other than test result)
   189         /**
   189          */
   190          * Run progress note test case.
   190         TInt AppInfoTest( TTestResult& aResult );
   191          * @param aResult - test case result (PASS/FAIL)
   191 
   192          * @return Symbian OS error code (other than test result)
   192         /**
   193          */
   193          * Helper function for AppInfoTest()
   194         TInt ProgressNoteTest( TTestResult& aResult );
   194          */
   195 
   195         void DoAppInfoTestL( TTestResult& aResult );
   196         /**
   196         
   197          * Run wait note test case.
   197         /**
   198          * @param aResult - test case result (PASS/FAIL)
   198          * Run progress dialogs test case.
   199          * @return Symbian OS error code (other than test result)
   199          * @param aResult - test case result (PASS/FAIL)
   200          */
   200          * @return Symbian OS error code (other than test result)
   201         TInt WaitNoteTest( TTestResult& aResult );
   201          */
   202 
   202         TInt ProgressDialogsTest( TTestResult& aResult );
   203         /**
   203 
   204          * Run launch help test case.
   204         /**
   205          * @param aResult - test case result (PASS/FAIL)
   205          * Helper function for ProgressDialogsTest()
   206          * @return Symbian OS error code (other than test result)
   206          */
   207          */
   207         void DoProgressDialogsTestL( TTestResult& aResult );
   208         TInt LaunchHelpTest( TTestResult& aResult );
       
   209 
   208 
   210     private:        // data
   209     private:        // data
   211         TestFunction iMethod;
   210         TestFunction iMethod;
   212         CStifLogger* iLog;
   211         CStifLogger* iLog;
   213         CStifLogger* iStdLog;
   212         CStifLogger* iStdLog;
   214         CStifLogger* iTCLog;
   213         CStifLogger* iTCLog;
   215         TBool iAddTestCaseTitleToLogName;
   214         TBool iAddTestCaseTitleToLogName;
   216         TBool iVersionLogged;
   215         TBool iVersionLogged;
   217         RFs iFs;
   216         RFs iFs;
   218         CActiveScheduler* iScheduler;
   217         CActiveScheduler* iScheduler;
   219 
       
   220         CSifUi* iSifUi;
       
   221     };
   218     };
   222 
   219 
   223 #endif      // SIFUITEST_H
   220 #endif      // SIFUITEST_H
   224 
   221