1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/security/cryptoservices/certificateandkeymgmt/twtlscert/twtlscert.cpp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,53 @@
1.4 +/*
1.5 +* Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
1.6 +* All rights reserved.
1.7 +* This component and the accompanying materials are made available
1.8 +* under the terms of the License "Eclipse Public License v1.0"
1.9 +* which accompanies this distribution, and is available
1.10 +* at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +*
1.12 +* Initial Contributors:
1.13 +* Nokia Corporation - initial contribution.
1.14 +*
1.15 +* Contributors:
1.16 +*
1.17 +* Description:
1.18 +* TX509MAIN.CPP
1.19 +* TX509 entry point code
1.20 +*
1.21 +*/
1.22 +
1.23 +
1.24 +#include <e32std.h>
1.25 +#include "tScriptSetup.h"
1.26 +#include "ValidateTest.h"
1.27 +#include "SyntaxTest.h"
1.28 +#include "CorruptionTest.h"
1.29 +#include <ecom/ecom.h>
1.30 +
1.31 +LOCAL_C void callSetupAndRunL() // initialize and call example code under cleanup stack
1.32 + {
1.33 + START_SCRIPT_LIST
1.34 + SCRIPT_ITEM(CSyntaxTest, _L8("Syntax")),
1.35 + SCRIPT_ITEM(CValidateTest, _L8("Validate")),
1.36 + SCRIPT_ITEM(CCorruptionTest, _L8("Corruption"))
1.37 + END_SCRIPT_LIST
1.38 +
1.39 + TDriveUnit sysDrive (RFs::GetSystemDrive());
1.40 + TDriveName driveName(sysDrive.Name());
1.41 + TBuf<64> scriptFile (driveName);
1.42 + scriptFile.Append(_L("\\twtlscert\\scripts\\twtlscert.txt"));
1.43 +
1.44 + User::After(9000000);
1.45 + CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, _L("twtlscert.log"));
1.46 + }
1.47 +
1.48 +GLDEF_C TInt E32Main() // main function called by E32
1.49 + {
1.50 + __UHEAP_MARK;
1.51 + CTrapCleanup* cleanup=CTrapCleanup::New(); // get clean-up stack
1.52 + TRAP_IGNORE(callSetupAndRunL());
1.53 + delete cleanup; // destroy clean-up stack
1.54 + __UHEAP_MARKEND;
1.55 + return 0; // and return
1.56 + }