uiacceltk/hitchcock/tsrc/alfperfapp/inc/alfperfapptexttestcase.h
changeset 0 15bf7259bb7c
equal deleted inserted replaced
-1:000000000000 0:15bf7259bb7c
       
     1 /*
       
     2 * Copyright (c) 2008 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:  alfperfapp text test case class definition.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_ALFPERFAPPTEXTTESTCASE_H
       
    20 #define C_ALFPERFAPPTEXTTESTCASE_H
       
    21 
       
    22 #include <e32base.h>
       
    23 #include "alfperfapptestcase.h"
       
    24 
       
    25 class CAlfPerfAppBaseTestCaseControl;
       
    26 
       
    27 /**
       
    28  *  CAlfPerfAppTextTestCase class.
       
    29  */
       
    30 class CAlfPerfAppTextTestCase : public CAlfPerfAppTestCase
       
    31     {
       
    32 public:
       
    33     /**
       
    34      * Returns ETrue if test case is supported.
       
    35      * @param aCaseId test case id.
       
    36      * @return ETrue if supported.
       
    37      */
       
    38     static TBool IsSupported( TInt aCaseId );
       
    39 
       
    40     static CAlfPerfAppTextTestCase* NewL( TInt aCaseId, TInt aSequenceIndex );
       
    41     ~CAlfPerfAppTextTestCase();
       
    42 
       
    43     // From base class CAlfPerfAppTestCase:
       
    44     virtual void SetupL( 
       
    45         CAlfEnv& aEnv, 
       
    46         const TRect& aVisibleArea, 
       
    47         TRequestStatus& aStatus );
       
    48     virtual void ExecuteL( TRequestStatus& aStatus );
       
    49     virtual void TearDown();   
       
    50     virtual void HandleVisibleAreaChange( const TRect& aRect );
       
    51     virtual TInt CaseID();
       
    52     //To write pointer event lag results
       
    53     virtual TTestCaseSpecificResultText getCaseSpecificResultL();
       
    54 private:
       
    55     
       
    56     CAlfPerfAppTextTestCase( TInt aCaseId, TInt aSequenceIndex );
       
    57     void ConstructL();
       
    58 
       
    59 private:
       
    60     /**
       
    61      * Test case of which execution this instance was created.
       
    62      */ 
       
    63     TInt iCaseId;
       
    64     
       
    65     /**
       
    66      * Alf environment.
       
    67      * Not owned.
       
    68      */
       
    69     CAlfEnv* iEnv;
       
    70 
       
    71     /**
       
    72      * Test case control.
       
    73      * Not owned.
       
    74      */
       
    75     CAlfPerfAppBaseTestCaseControl* iControl;
       
    76     
       
    77     /*
       
    78      *  Total Visual Count, used only with sequence cases
       
    79      */
       
    80     TInt iTotalVisualCount;
       
    81     TInt iAnimationDivider;
       
    82     };
       
    83 
       
    84 
       
    85 #endif // C_ALFPERFAPPTEXTTESTCASE_H
       
    86