diff -r 675a964f4eb5 -r 35751d3474b7 cryptoservices/filebasedcertificateandkeystores/test/tcertapps/t_certapps.cpp --- a/cryptoservices/filebasedcertificateandkeystores/test/tcertapps/t_certapps.cpp Tue Jul 21 01:04:32 2009 +0100 +++ b/cryptoservices/filebasedcertificateandkeystores/test/tcertapps/t_certapps.cpp Thu Sep 10 14:01:51 2009 +0300 @@ -1,65 +1,63 @@ -/* -* 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 - } +/* +* 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 + }