sl@0: /*
sl@0: * Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
sl@0: * All rights reserved.
sl@0: * This component and the accompanying materials are made available
sl@0: * under the terms of the License "Eclipse Public License v1.0"
sl@0: * which accompanies this distribution, and is available
sl@0: * at the URL "http://www.eclipse.org/legal/epl-v10.html".
sl@0: *
sl@0: * Initial Contributors:
sl@0: * Nokia Corporation - initial contribution.
sl@0: *
sl@0: * Contributors:
sl@0: *
sl@0: * Description: 
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: #ifndef __T_HARDCODED_H__
sl@0: #define __T_HARDCODED_H__
sl@0: 
sl@0: #include <e32base.h>
sl@0: 
sl@0: class CTestAction;
sl@0: class RFs;
sl@0: class CConsoleBase;
sl@0: class Output;
sl@0: class TTestActionSpec;
sl@0: 
sl@0: struct THardcodedTests
sl@0: 	{	
sl@0: 	THardcodedTests(CTestAction* (*aAction)(class RFs &, class CConsoleBase &,
sl@0: 		class Output &, const class TTestActionSpec &),TPtrC8 aName, TInt aGrouping)
sl@0: 						{
sl@0: 						name.Set(aName);
sl@0: 						action = aAction;
sl@0: 						//Set the default groupings when reading tests
sl@0: 						groupings= aGrouping;
sl@0: 						};
sl@0: 	CTestAction* (*action)(class RFs &,class CConsoleBase &,class Output &,const class TTestActionSpec &);
sl@0: 	TInt groupings;
sl@0: 	TPtrC8 name;
sl@0: 	};
sl@0: 
sl@0: 
sl@0: #define START_HARDCODED_LIST static THardcodedTests theHardcodedTests[]={
sl@0: // x is the class to create eg. TActionValidate
sl@0: // y is the name we give to the class instance when displaying results
sl@0: // z is the grouping parameter eg. INOOM | SMOKE
sl@0: #define HARDCODED_ITEM(x,y,z) THardcodedTests(&x::NewL,y,z)
sl@0: #define END_HARDCODED_LIST ,THardcodedTests(NULL,_L8(""),0)};
sl@0: 
sl@0: 
sl@0: #endif
sl@0: