phonebookengines/contactsmodel/tsrc/cntplsql/src/t_cpredictivesearchsettingstable.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 QWERTY tables
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __UT_CPREDICTIVESEARCHSETTINGSTABLE_H__
       
    19 #define __UT_CPREDICTIVESEARCHSETTINGSTABLE_H__
       
    20 
       
    21 //  EXTERNAL INCLUDES
       
    22 #include <digia/eunit/ceunittestsuiteclass.h>
       
    23 #include <digia/eunit/eunitmacros.h>
       
    24 #include <sqldb.h>
       
    25 
       
    26 //  FORWARD DECLARATIONS
       
    27 class CPredictiveSearchSettingsTable;
       
    28 
       
    29 //  CONSTANTS
       
    30 
       
    31 //  CLASS DEFINITION
       
    32 /**
       
    33  * Tester class for CPredictiveSearchSettingsTable.
       
    34  */
       
    35 NONSHARABLE_CLASS( UT_CPredictiveSearchSettingsTable ): public CEUnitTestSuiteClass
       
    36     {
       
    37     public: // Constructors and destructors
       
    38 
       
    39         /**
       
    40          * Two phase construction
       
    41          */
       
    42         static UT_CPredictiveSearchSettingsTable* NewL();
       
    43         static UT_CPredictiveSearchSettingsTable* NewLC();
       
    44         
       
    45         /**
       
    46          * Destructor
       
    47          */
       
    48         ~UT_CPredictiveSearchSettingsTable();
       
    49 
       
    50     private: // Constructors
       
    51 
       
    52         UT_CPredictiveSearchSettingsTable();
       
    53         void ConstructL();
       
    54         
       
    55     private: // Test case setup and teardown
       
    56 
       
    57         void SetupL();
       
    58         void Teardown();
       
    59 
       
    60     private: // Test functions
       
    61 
       
    62         void UT_CreateTableLL();
       
    63 
       
    64     private:    // Data
       
    65 
       
    66 		CPredictiveSearchSettingsTable* iTable;
       
    67         
       
    68         RSqlDatabase iDB;
       
    69 
       
    70         EUNIT_DECLARE_TEST_TABLE;
       
    71     };
       
    72 
       
    73 #endif      //  __UT_CPREDICTIVESEARCHSETTINGSTABLE_H__
       
    74 
       
    75 // End of file