diff -r 000000000000 -r 2c201484c85f cryptoservices/filebasedcertificateandkeystores/test/tcertapps/t_certapps.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/cryptoservices/filebasedcertificateandkeystores/test/tcertapps/t_certapps.cpp Wed Jul 08 11:25:26 2009 +0100 @@ -0,0 +1,65 @@ +/* +* Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of the License "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* +*/ + + + + +/** + @file +*/ + +#include +#include +#include "t_testhandler.h" +#include "tscriptandhardcoded.h" +#include "t_certapps_defs.h" + +#include "t_certapps_actions.h" + + +LOCAL_D void DoTests() + { + START_SCRIPT_LIST + SCRIPT_ITEM(CTestWrapper, KInitManager), + SCRIPT_ITEM(CTestWrapper, KDestroyManager), + SCRIPT_ITEM(CTestWrapper, KClearAllApps), + SCRIPT_ITEM(CTestWrapper, KAddApp), + SCRIPT_ITEM(CTestWrapper, KRemoveApp), + SCRIPT_ITEM(CTestWrapper, KAppCount), + SCRIPT_ITEM(CTestWrapper, KGetApplications), + SCRIPT_ITEM(CTestWrapper, KGetApp) + END_SCRIPT_LIST + + + TDriveUnit sysDrive (RFs::GetSystemDrive()); + TBuf<64> scriptFile (sysDrive.Name()); + scriptFile.Append(_L("\\tcertapps\\scripts\\script1.txt")); + + _LIT(KLog, "tcertapps.log"); + CScriptSetup::CreateAndRunTestsL(theTestTypes, scriptFile, KLog); + } + +GLDEF_C TInt E32Main() // main function called by E32 + { + RProcess().DataCaging(RProcess::EDataCagingOn); + __UHEAP_MARK; + CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack + TRAP_IGNORE(DoTests()); + delete cleanup; // destroy clean-up stack + __UHEAP_MARKEND; + return 0; // and return + }