testdev/ite/src/com.nokia.testfw.codegen/src/templates/SymbianUnitTest/inc/ut_${class_name}.h
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 
       
    19 #ifndef UT_${class_object.NameUpperCase}_H
       
    20 #define UT_${class_object.NameUpperCase}_H
       
    21 
       
    22 // INCLUDES
       
    23 #include <symbianunittest.h>
       
    24 
       
    25 // FORWARD DECLARATIONS
       
    26 class ${class_name};
       
    27 
       
    28 // CLASS DECLARATION
       
    29 class UT_${class_name}: public CSymbianUnitTest
       
    30 {
       
    31 public: // Constructors and destructor
       
    32 
       
    33 	static UT_${class_name}* NewL();
       
    34 	static UT_${class_name}* NewLC();
       
    35 	~UT_${class_name}();
       
    36 
       
    37 protected: // From CSymbianUnitTest
       
    38 
       
    39 	void SetupL();
       
    40 	void Teardown();
       
    41 
       
    42 protected: // Test functions
       
    43 
       
    44 	// [Test Case Declarations] Begin - Do not remove
       
    45 //!!//!![Repeat Section Begin]::// [Test Case Declarations]
       
    46 //!!foreach( $method_object in $class_object.Children)
       
    47 	void UT_${method_object.NormalisedName}${RepeatCounter}();
       
    48 //!!end
       
    49 //!!//!![Repeat Section End]::// [Test Case Declarations]
       
    50 	// [Test Case Declarations] End - Do not remove
       
    51 private: // Constructors
       
    52 
       
    53 	UT_${class_name}();
       
    54 	void ConstructL();
       
    55 
       
    56 private: // Data
       
    57 
       
    58 	// The object to be tested as a member variable:
       
    59 	${class_name} *i${class_name};
       
    60 };
       
    61 
       
    62 #endif // UT_${class_object.NameUpperCase}_H