contentctrl_plat/ds_contact_adapter_customization_api/tsrc/ContactsAdapter/cnsmldummydataprovider_test.h
branchRCL_3
changeset 24 8e7494275d3a
equal deleted inserted replaced
23:2bb96f4ecad8 24:8e7494275d3a
       
     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:  Header file for contact adapter's dataprovider unit tests.
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CNSMLDUMMYDATAPROVIDER_TEST_H__
       
    19 #define __CNSMLDUMMYDATAPROVIDER_TEST_H__
       
    20 
       
    21 // INCLUDES
       
    22 #include <ceunittestsuiteclass.h>
       
    23 #include <eunitdecorators.h>
       
    24 
       
    25 #include "nsmldummydataprovider.h"
       
    26 
       
    27 // CLASS DEFINITION
       
    28 /**
       
    29  * Generated EUnit test suite class.
       
    30  */
       
    31 NONSHARABLE_CLASS( CNSmlDummyDataProvider_Test )
       
    32 	: public CEUnitTestSuiteClass
       
    33     {
       
    34     public:  // Constructors and destructor
       
    35 
       
    36         static CNSmlDummyDataProvider_Test* NewL();
       
    37         static CNSmlDummyDataProvider_Test* NewLC();
       
    38         ~CNSmlDummyDataProvider_Test();
       
    39 
       
    40     private: // Constructors
       
    41 
       
    42         CNSmlDummyDataProvider_Test();
       
    43         void ConstructL();
       
    44 
       
    45     private: // New methods
       
    46 
       
    47         void Empty() {};
       
    48 
       
    49         void SetupL();
       
    50 
       
    51         void Teardown();
       
    52 
       
    53         void NewLL();
       
    54         
       
    55         void CreateAdapterL();
       
    56 
       
    57         void GetStoreFormatResourceFileLL();
       
    58 
       
    59         void DoStoreFormatLL();
       
    60 
       
    61         void TestStoreSupportForPartialSyncL();
       
    62 
       
    63         void TestStoreSupportMimeTypeL();
       
    64 
       
    65         void DoListStoresLCL();
       
    66         
       
    67         void DoOnFrameworkEvent();
       
    68         
       
    69         void DoSupportedServerFiltersL();
       
    70         
       
    71         void DoCheckSupportedServerFiltersL();
       
    72         
       
    73         void DoCheckServerFiltersL();
       
    74         
       
    75         void DoGenerateRecordFilterQueryL();
       
    76         
       
    77         void DoGenerateFieldFilterQueryL();
       
    78 
       
    79     private: // Data
       
    80 
       
    81         CNSmlDummyDataProvider* iCNSmlDummyDataProvider;
       
    82 
       
    83         EUNIT_DECLARE_TEST_TABLE;
       
    84 
       
    85     };
       
    86 
       
    87 #endif      //  __CNSMLDUMMYDATAPROVIDER_TEST_H__