os/security/cryptoservices/filebasedcertificateandkeystores/test/tcertapps/t_certapps.cpp
First public contribution.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
25 #include "t_testhandler.h"
26 #include "tscriptandhardcoded.h"
27 #include "t_certapps_defs.h"
29 #include "t_certapps_actions.h"
32 LOCAL_D void DoTests()
35 SCRIPT_ITEM(CTestWrapper<CInitManager>, KInitManager),
36 SCRIPT_ITEM(CTestWrapper<CDestroyManager>, KDestroyManager),
37 SCRIPT_ITEM(CTestWrapper<CClearAllApps>, KClearAllApps),
38 SCRIPT_ITEM(CTestWrapper<CAddApp>, KAddApp),
39 SCRIPT_ITEM(CTestWrapper<CRemoveApp>, KRemoveApp),
40 SCRIPT_ITEM(CTestWrapper<CAppCount>, KAppCount),
41 SCRIPT_ITEM(CTestWrapper<CGetApplications>, KGetApplications),
42 SCRIPT_ITEM(CTestWrapper<CGetApp>, KGetApp)
46 TDriveUnit sysDrive (RFs::GetSystemDrive());
47 TBuf<64> scriptFile (sysDrive.Name());
48 scriptFile.Append(_L("\\tcertapps\\scripts\\script1.txt"));
50 _LIT(KLog, "tcertapps.log");
51 CScriptSetup::CreateAndRunTestsL(theTestTypes, scriptFile, KLog);
54 GLDEF_C TInt E32Main() // main function called by E32
56 RProcess().DataCaging(RProcess::EDataCagingOn);
58 CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
59 TRAP_IGNORE(DoTests());
60 delete cleanup; // destroy clean-up stack
62 return 0; // and return