phonebookengines/contactsmodel/tsrc/cntplsql/src/t_cqwertykeymap.h
changeset 46 efe85016a067
equal deleted inserted replaced
40:b46a585f6909 46:efe85016a067
       
     1 /*
       
     2 * Copyright (c) 2010 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: Unit test class for character to key mappings
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __UT_CQWERTYKEYMAP_H__
       
    19 #define __UT_CQWERTYKEYMAP_H__
       
    20 
       
    21 //  EXTERNAL INCLUDES
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 #include <digia/eunit/eunitmacros.h>
       
    24 
       
    25 //  FORWARD DECLARATIONS
       
    26 class CQwertyKeyMap;
       
    27 
       
    28 //  CONSTANTS
       
    29 
       
    30 //  CLASS DEFINITION
       
    31 /**
       
    32  * Tester class for CQwertyKeyMap.
       
    33  */
       
    34 NONSHARABLE_CLASS(UT_CQwertyKeyMap): public CEUnitTestSuiteClass
       
    35     {
       
    36     public: // Constructors and destructors
       
    37 
       
    38         /**
       
    39          * Two phase construction
       
    40          */
       
    41         static UT_CQwertyKeyMap* NewL();
       
    42         static UT_CQwertyKeyMap* NewLC();
       
    43         
       
    44         /**
       
    45          * Destructor
       
    46          */
       
    47         ~UT_CQwertyKeyMap();
       
    48 
       
    49     private: // Constructors
       
    50 
       
    51         UT_CQwertyKeyMap();
       
    52         void ConstructL();
       
    53         
       
    54     private: // Test case setup and teardown
       
    55 
       
    56         void SetupL();
       
    57         void Teardown();
       
    58 
       
    59     private: // Test methods
       
    60     
       
    61         void UT_NewLL();
       
    62         void UT_GetMappedStringL();
       
    63 		void UT_GetNumericLimitsL();
       
    64 		void UT_GetNumericLimitsBeginsByFirstKeyL();
       
    65 		void UT_GetNumericLimitsLongValueL();
       
    66 
       
    67     private:    // Data
       
    68 
       
    69         CQwertyKeyMap* iKeyMap;
       
    70 
       
    71         EUNIT_DECLARE_TEST_TABLE;
       
    72     };
       
    73 
       
    74 #endif      //  __UT_CQWERTYKEYMAP_H__
       
    75 
       
    76 // End of file