contentctrl_plat/ds_contact_adapter_customization_api/tsrc/ContactsAdapter/dllmain.cpp
changeset 53 875f413e6ce9
equal deleted inserted replaced
49:392bf116d9ed 53:875f413e6ce9
       
     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:  DllMain file for contact adapter unit tests.
       
    15 *
       
    16 */
       
    17 
       
    18 //  EXTERNAL INCLUDES
       
    19 #include <ceunittestsuite.h>
       
    20 #include "cnsmldummydataprovider_test.h"
       
    21 #include "cnsmldummydatastore_test.h"
       
    22 
       
    23 /**
       
    24 * UT_nsmldscontactsdataprovider.dll test suite factory function.
       
    25 */
       
    26 EXPORT_C MEUnitTest* CreateTestSuiteL()
       
    27     {
       
    28     CEUnitTestSuite* rootSuite = 
       
    29         CEUnitTestSuite::NewLC( _L( "Unit test for Contact adapter" ) );
       
    30 
       
    31     // Unit tests for dataprovider class (CNSmlDummyDataProvider)
       
    32     MEUnitTest* providerSuite = CNSmlDummyDataProvider_Test::NewL();
       
    33     CleanupStack::PushL( providerSuite );
       
    34     rootSuite->AddL( providerSuite );
       
    35     CleanupStack::Pop( providerSuite );
       
    36 
       
    37     // Unit tests for datastore class (CNSmlDummyDataStore)
       
    38     MEUnitTest* storeSuite = CNSmlDummyDataStore_Test::NewL();
       
    39     CleanupStack::PushL( storeSuite );
       
    40     rootSuite->AddL( storeSuite );
       
    41     CleanupStack::Pop( storeSuite );
       
    42 
       
    43     CleanupStack::Pop( rootSuite );
       
    44 
       
    45     return rootSuite;
       
    46     }