Update contrib.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
15 // Main test harness for t_tinternetdate
21 // MEMORY LEAK TESTING - Change and recompile to enable memory leak testing
22 // #define __MEMORY_LEAK_TESTING_ENABLED
27 #include "IpuTestUtils.h"
29 #include "cconverttorfc1123formtest.h"
31 _LIT(KTestPanic, "TInetDate");
32 _LIT(KTestTitle, "T_TInternetDate");
34 GLDEF_C void Panic(TInt aPanic);
37 GLDEF_C void Panic(TInt aPanic)
39 User::Panic(KTestPanic,aPanic);
44 CIpuTestHarness* testHarness = CIpuTestHarness::NewL(KTestTitle);
45 CleanupStack::PushL(testHarness);
46 testHarness->DoResourceLeakTest(ETrue);
48 testHarness->LogIt(_L ("@SYMTestCaseID IWS-APPPROTOCOLS-INETPROTUTIL-T_TINTERNETDATE-0001 "));
50 CConvertToRfc1123FormTest* convertToRfc1123FormTest = CConvertToRfc1123FormTest::NewLC(testHarness);
51 #ifdef __MEMORY_LEAK_TESTING_ENABLED
52 CTestBase::MemoryLeakTestL(*convertToRfc1123FormTest,*testHarness);
54 convertToRfc1123FormTest->DoTestsL();
56 CleanupStack::PopAndDestroy(2, testHarness);
59 GLDEF_C TInt E32Main()
64 CTrapCleanup* tc=CTrapCleanup::New();
67 User::Panic(_L("Test Fail"),err);