idlefw/tsrc/wsplugin/ut_modifierkeytracker/inc/ut_modifierkeytracker.h
branchRCL_3
changeset 28 053c6c7c14f3
equal deleted inserted replaced
27:2c7f27287390 28:053c6c7c14f3
       
     1 /*
       
     2 * Copyright (c) 2004 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:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef _UT_MODIFIERKEYTRACKER_H
       
    20 #define _UT_MODIFIERKEYTRACKER_H
       
    21 
       
    22 // System includes
       
    23 #include <e32base.h>
       
    24 #include <digia/eunit/ceunittestsuiteclass.h>
       
    25 
       
    26 // User includes
       
    27 #include "modifierkeytracker.h"
       
    28 
       
    29 // Forward declarations
       
    30 
       
    31 // Class declaration
       
    32 NONSHARABLE_CLASS( UT_MofifierKeyTracker ) : public CEUnitTestSuiteClass    
       
    33     {
       
    34 public:     
       
    35     // Constructors and destructors
       
    36 
       
    37     /**
       
    38      * Two phase construction
       
    39      */
       
    40     static UT_MofifierKeyTracker* NewL();
       
    41     static UT_MofifierKeyTracker* NewLC();
       
    42     /**
       
    43      * Destructor
       
    44      */
       
    45     ~UT_MofifierKeyTracker();
       
    46 
       
    47 private:    
       
    48     // Constructors and destructors
       
    49 
       
    50     UT_MofifierKeyTracker();
       
    51     void ConstructL();
       
    52 
       
    53 private:    
       
    54     // New methods
       
    55 
       
    56      void SetupL();
       
    57     
       
    58      void Teardown();
       
    59     
       
    60     void T_TModifierKeyTracker_ConstructL( );
       
    61     
       
    62     void T_TModifierKeyTracker_NonModiferUpdateL( );
       
    63     
       
    64     void T_TModifierKeyTracker_TestModifierKeyDownL
       
    65             ( TInt aScanCode, TUint aExcpectedStatus  );
       
    66             
       
    67     void T_TModifierKeyTracker_TestModifierKeyUpL
       
    68             ( TInt aScanCode, TUint aExcpectedStatus  );
       
    69             
       
    70     void T_TModifierKeyTracker_SingleModiferUpdateL
       
    71             ( TInt aScanCode, TUint aExcpectedStatus  );
       
    72             
       
    73     void T_TModifierKeyTracker_SingleModiferUpdateL( );
       
    74     
       
    75     void T_TModifierKeyTracker_MultiModiferUpdateL( );
       
    76     
       
    77     void T_TModifierKeyTracker_MixedModiferNonModiferUpdateL( );
       
    78 
       
    79 private:    
       
    80     // Data
       
    81         
       
    82     EUNIT_DECLARE_TEST_TABLE;
       
    83     AiWsPlugin::TModifierKeyTracker* iTModifierKeyTracker;
       
    84     };
       
    85 
       
    86 #endif      //  _UT_MODIFIERKEYTRACKER_H
       
    87 
       
    88 // End of file