phoneapp/phoneuistates/tsrc/ut_cphoneerrormessageshandler/Src/ut_cphoneerrormessageshandler_DllMain.cpp
changeset 77 2be0b271d017
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
       
     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: 
       
    15 *
       
    16 */
       
    17 //  EXTERNAL INCLUDES
       
    18 #include <CEUnitTestSuite.h>
       
    19 #include "ut_cphoneerrormessageshandler.h"
       
    20 
       
    21 /**
       
    22 * T_HelloWorld.dll test suite factory function.
       
    23 */
       
    24 EXPORT_C MEUnitTest* CreateTestSuiteL()
       
    25     {
       
    26     // In this example, a root suite is needed for holding the two suites
       
    27     //with test cases. If there was only one suite with tests, that suite
       
    28     //instance could be returned directly. (see the other examples)
       
    29     CEUnitTestSuite* rootSuite = CEUnitTestSuite::NewLC(_L("HelloWorld Unit Tests"));
       
    30 
       
    31     // Note that NewLC leaves the object in the cleanupstack.
       
    32     rootSuite->AddL( ut_cphoneerrormessageshandler::NewLC() );
       
    33     CleanupStack::Pop();
       
    34 
       
    35     CleanupStack::Pop( rootSuite );
       
    36 
       
    37     return rootSuite;
       
    38     }