cryptoservices/certificateandkeymgmt/tpkixcert/tpkixcertmain.cpp
changeset 8 35751d3474b7
parent 0 2c201484c85f
child 15 da2ae96f639b
--- a/cryptoservices/certificateandkeymgmt/tpkixcert/tpkixcertmain.cpp	Tue Jul 21 01:04:32 2009 +0100
+++ b/cryptoservices/certificateandkeymgmt/tpkixcert/tpkixcertmain.cpp	Thu Sep 10 14:01:51 2009 +0300
@@ -1,54 +1,54 @@
-/*
-* Copyright (c) 1998-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: 
-*
-*/
-
-
-#include <e32base.h>
-#include <t_testhandler.h>
-#include <f32file.h>
-#include "tactionvalidate.h"
-#include "taction_build.h"
-#include <tscriptandhardcoded.h>
-
-LOCAL_D void callExampleL() // initialize and call example code under cleanup stack
-    {
-	START_SCRIPT_LIST
-	SCRIPT_ITEM(CTestActionBuild,_L8("Build")),
-	SCRIPT_ITEM(CActionValidateWithStore,_L8("ValidateWithStore")),
-	SCRIPT_ITEM(CActionValidateWithSuppliedCerts,_L8("ValidateWithSuppliedCerts"))
-	END_SCRIPT_LIST
-	
-	TDriveUnit sysDrive (RFs::GetSystemDrive());
-	TDriveName sysDriveName (sysDrive.Name());
-	TBuf<128> scriptFile (sysDriveName);
-	scriptFile.Append(_L("\\tpkixcert\\scripts\\tpkixtest_part1.txt"));
-	
-	TBuf<64> logFile (sysDriveName);
-	logFile.Append(_L("\\TPKIXCERT_log1.txt"));
-	
-	CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, logFile);
-    }
-
-GLDEF_C TInt E32Main() // main function called by E32
-    {
-	__UHEAP_MARK;
-	CTrapCleanup* cleanup = CTrapCleanup::New(); // get clean-up stack
-	TRAPD(error, callExampleL());
-	__ASSERT_ALWAYS(!error,User::Panic(_L("CERT"),error));
-	delete cleanup; // destroy clean-up stack
-	__UHEAP_MARKEND;
-	return 0;
-    }
+/*
+* Copyright (c) 1998-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: 
+*
+*/
+
+
+#include <e32base.h>
+#include <testhandler2/t_testhandler.h>
+#include <f32file.h>
+#include "tactionvalidate.h"
+#include "taction_build.h"
+#include <testhandler2/tscriptandhardcoded.h>
+
+LOCAL_D void callExampleL() // initialize and call example code under cleanup stack
+    {
+	START_SCRIPT_LIST
+	SCRIPT_ITEM(CTestActionBuild,_L8("Build")),
+	SCRIPT_ITEM(CActionValidateWithStore,_L8("ValidateWithStore")),
+	SCRIPT_ITEM(CActionValidateWithSuppliedCerts,_L8("ValidateWithSuppliedCerts"))
+	END_SCRIPT_LIST
+	
+	TDriveUnit sysDrive (RFs::GetSystemDrive());
+	TDriveName sysDriveName (sysDrive.Name());
+	TBuf<128> scriptFile (sysDriveName);
+	scriptFile.Append(_L("\\tpkixcert\\scripts\\tpkixtest_part1.txt"));
+	
+	TBuf<64> logFile (sysDriveName);
+	logFile.Append(_L("\\TPKIXCERT_log1.txt"));
+	
+	CTestSetup::CreateAndRunTestsL(theTestTypes, scriptFile, logFile);
+    }
+
+GLDEF_C TInt E32Main() // main function called by E32
+    {
+	__UHEAP_MARK;
+	CTrapCleanup* cleanup = CTrapCleanup::New(); // get clean-up stack
+	TRAPD(error, callExampleL());
+	__ASSERT_ALWAYS(!error,User::Panic(_L("CERT"),error));
+	delete cleanup; // destroy clean-up stack
+	__UHEAP_MARKEND;
+	return 0;
+    }