testdev/ite/src/com.nokia.testfw.codegen/src/templates/SymbianUnitTest/src/dllentry.cpp
changeset 1 96906a986c3b
equal deleted inserted replaced
0:f1112f777ce9 1:96906a986c3b
       
     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 
       
    18 // [Test Class Headers] Begin - Do not remove
       
    19 //!!//!![Repeat Section Begin]::// [Test Class Headers]
       
    20 //!!foreach( $class_object in ${project_object.Children})
       
    21 #include "ut_${class_object.Name}.h"
       
    22 //!!end
       
    23 //!!//!![Repeat Section End]::// [Test Class Headers]
       
    24 // [Test Class Headers] End - Do not remove
       
    25 #include <symbianunittestsuite.h>
       
    26 
       
    27 // Exactly one exported function returning
       
    28 // the pointer to the suite of tests for the SymbianUnit framework.
       
    29 //
       
    30 EXPORT_C MSymbianUnitTestInterface* CreateTestL()
       
    31 {
       
    32 	CSymbianUnitTestSuite* testSuite =
       
    33 	CSymbianUnitTestSuite::NewLC( _L("ut_${project_name}") );
       
    34 
       
    35 	// [Test Class Entries] Begin - Do not remove
       
    36 //!!//!![Repeat Section Begin]::// [Test Class Entries]
       
    37 //!!foreach( $class_object in ${project_object.Children})
       
    38     testSuite->AddL( UT_${class_object.Name}::NewLC() );
       
    39     CleanupStack::Pop();//UT_${class_object.Name}::NewLC()
       
    40 
       
    41 //!!end
       
    42 //!!//!![Repeat Section End]::// [Test Class Entries]
       
    43     // [Test Class Entries] End - Do not remove
       
    44 
       
    45     CleanupStack::Pop( testSuite );
       
    46 	return testSuite;
       
    47 }
       
    48