applayerprotocols/httptransportfw/Test/T_HttpOnline/t_httponline.cpp
branchRCL_3
changeset 19 c0c2f28ace9c
parent 0 b16258d2340f
child 20 a0da872af3fa
equal deleted inserted replaced
18:5f1cd966e0d9 19:c0c2f28ace9c
    66 #include "CINC110203.h"
    66 #include "CINC110203.h"
    67 #include "T_UAProf.h"
    67 #include "T_UAProf.h"
    68 #include "T_SocketShutdownMode.h"
    68 #include "T_SocketShutdownMode.h"
    69 #include "cinc112633.h"
    69 #include "cinc112633.h"
    70 #include "cinc112633_2.h"
    70 #include "cinc112633_2.h"
       
    71 #include "CPDEF143929.h"
    71 
    72 
    72 #include "csrvaddrval.h"
    73 #include "csrvaddrval.h"
    73 #include "CINC082448.h"
    74 #include "CINC082448.h"
    74 #include "cinc105767.h"
    75 #include "cinc105767.h"
    75 #include "CR1130.h"
    76 #include "CR1130.h"
   153 _LIT(KTestCINC120672_2,						"INC120672_2");
   154 _LIT(KTestCINC120672_2,						"INC120672_2");
   154 _LIT(KSettingsIniCompName,					"settings");
   155 _LIT(KSettingsIniCompName,					"settings");
   155 _LIT(KSettingsIniName,						"settings.ini");
   156 _LIT(KSettingsIniName,						"settings.ini");
   156 _LIT(KRecvBufSizeTest1,						"RecvBufSizeTest1");
   157 _LIT(KRecvBufSizeTest1,						"RecvBufSizeTest1");
   157 _LIT(KRecvBufSizeTest2,						"RecvBufSizeTest2");
   158 _LIT(KRecvBufSizeTest2,						"RecvBufSizeTest2");
       
   159 _LIT(KTestCPDEF143929,						"PDEF143929");
   158 
   160 
   159 
   161 
   160 const TInt KMaxHeapSize = 0x100000;
   162 const TInt KMaxHeapSize = 0x100000;
   161 const TInt KMaxIntDesLen = 10;				// Des length required for displaying max 32 bit int
   163 const TInt KMaxIntDesLen = 10;				// Des length required for displaying max 32 bit int
   162 _LIT(KTestThreadName,						"TestThread");
   164 _LIT(KTestThreadName,						"TestThread");
   971 					onlineTests.Append(incTest);
   973 					onlineTests.Append(incTest);
   972 					}
   974 					}
   973 				CleanupStack::Pop(index);
   975 				CleanupStack::Pop(index);
   974 				}
   976 				}
   975 			}
   977 			}
       
   978 			
       
   979 		// CPDEF143929   test
       
   980 		if ( section->SectionName().CompareF(KTestCPDEF143929) == 0)
       
   981 			{
       
   982 			TBool runTest = iniFile->Section(i).ItemValue(KRunTestItemName(), runTestDefault);
       
   983 			if (runTest)
       
   984 				{
       
   985 				const TInt numSubTests = iniFile->ItemValue(KTestCPDEF143929(), KResNumSubTests(), 1); 
       
   986 				TInt index;
       
   987 				for(index = 0; index < numSubTests; ++index)
       
   988 					{
       
   989 					CPDEF143929* incTest = CPDEF143929::NewL(index + 1, iniSettingsFile); 
       
   990 					CleanupStack::PushL(incTest);
       
   991 					onlineTests.Append(incTest);
       
   992 					}
       
   993 				CleanupStack::Pop(index);
       
   994 				}
       
   995 			}
   976 			// 100-Continue tests
   996 			// 100-Continue tests
   977 		if ( section->SectionName().CompareF(KTest100Continue) == 0)
   997 		if ( section->SectionName().CompareF(KTest100Continue) == 0)
   978 			{
   998 			{
   979 			TBool runTest = iniFile->Section(i).ItemValue(KRunTestItemName(), runTestDefault);
   999 			TBool runTest = iniFile->Section(i).ItemValue(KRunTestItemName(), runTestDefault);
   980  			if (runTest)
  1000  			if (runTest)