phonebookengines/contactsmodel/tsrc/cntplsql/src/t_cpcskeymap.h
changeset 24 0ba2181d7c28
child 46 efe85016a067
equal deleted inserted replaced
0:e686773b3f54 24:0ba2181d7c28
       
     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: Unit test class for character to key mappings
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __UT_CPCSKEYMAP_H__
       
    19 #define __UT_CPCSKEYMAP_H__
       
    20 
       
    21 //  EXTERNAL INCLUDES
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 #include <digia/eunit/eunitmacros.h>
       
    24 
       
    25 //  FORWARD DECLARATIONS
       
    26 class CPcsKeyMap;
       
    27 
       
    28 //  CONSTANTS
       
    29 
       
    30 //  CLASS DEFINITION
       
    31 /**
       
    32  * Tester class for CPcsKeyMap.
       
    33  */
       
    34 NONSHARABLE_CLASS( UT_CPcsKeyMap ): public CEUnitTestSuiteClass
       
    35     {
       
    36     public: // Constructors and destructors
       
    37 
       
    38         /**
       
    39          * Two phase construction
       
    40          */
       
    41         static UT_CPcsKeyMap* NewL();
       
    42         static UT_CPcsKeyMap* NewLC();
       
    43         
       
    44         /**
       
    45          * Destructor
       
    46          */
       
    47         ~UT_CPcsKeyMap();
       
    48 
       
    49     private: // Constructors
       
    50 
       
    51         UT_CPcsKeyMap();
       
    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_GetNumericKeyStringL();
       
    63         void UT_GetNumericKeyStringSeparatorL();
       
    64         void UT_GetNumericKeyStringWithNumbersL();
       
    65         void UT_GetNumericKeyStringWithSpecialCharactersL();
       
    66 
       
    67     private:    // Data
       
    68 
       
    69         CPcsKeyMap* iKeyMap;
       
    70 
       
    71         EUNIT_DECLARE_TEST_TABLE;
       
    72     };
       
    73 
       
    74 #endif      //  __UT_CPCSKEYMAP_H__
       
    75 
       
    76 // End of file