sl@0: /*
sl@0: * Copyright (c) 2001-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: * Implementation for test object factory
sl@0: *
sl@0: */
sl@0: 
sl@0: 
sl@0: #include "testfactory.h"
sl@0: #include "testnull.h"
sl@0: #include "testboolean.h"
sl@0: #include "testint.h"
sl@0: #include "testbigint.h"
sl@0: #include "testoctetstr.h"
sl@0: #include "testoid.h"
sl@0: #include "testgeneralizedtime.h"
sl@0: #include "testsequence.h"
sl@0: #include "testexplicittag.h"
sl@0: #include "testimplicittag.h"
sl@0: #include "testoutput.h"
sl@0: 
sl@0: 
sl@0: // Make different object for each index, else return 0
sl@0: CTestBase* TTestFactory::MakeTestLC(const TInt aIndex)
sl@0: 	{
sl@0: 	switch (aIndex)
sl@0: 		{
sl@0: 		case 0:
sl@0: 			return CTestNull::NewLC();
sl@0: 		case 1: 
sl@0: 			return CTestBoolean::NewLC();
sl@0: 		case 2:
sl@0: 			return CTestInt::NewLC();
sl@0: 		case 3:
sl@0: 			return CTestBigInt::NewLC();
sl@0: 		case 4:
sl@0: 			return CTestOctetString::NewLC();
sl@0: 		case 5:
sl@0: 			return CTestOID::NewLC();
sl@0: 		case 6:
sl@0: 			return CTestGeneralizedTime::NewLC();
sl@0: 		case 7:
sl@0: 			return CTestSequence::NewLC();
sl@0: 		case 8:
sl@0: 			return CTestExplicitTag::NewLC();
sl@0: 		case 9:
sl@0: 			return CTestImplicitTag::NewLC();
sl@0: 		case 10:
sl@0: 			return CTestOutput::NewLC();
sl@0: 		default:
sl@0: 			return 0;
sl@0: 		}
sl@0: 	}