telephonyserverplugins/multimodetsy/test/Te_Gprs/Te_Gprs.h
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2000-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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @internalComponent 
       
    19 */
       
    20 
       
    21 
       
    22 #ifndef _TE_GPRS_H_
       
    23 #define _TE_GPRS_H_
       
    24 
       
    25 #include "Te_GprsTestStepBase.h"
       
    26 #include <e32base.h>
       
    27 #include <e32test.h>
       
    28 #include <c32comm.h>
       
    29 #include "f32file.h"
       
    30 #include <etel.h>
       
    31 //#include <autotest.h>
       
    32 #include <es_sock.h>
       
    33 #include <in_sock.h>
       
    34 #include <etelqos.h>
       
    35 #include <pcktcs.h>
       
    36 #include "Te_Gprscfgfile.h"
       
    37 
       
    38 
       
    39 //Test Checking Macros
       
    40 #define CHECKPOINT(code,expected,msg){\
       
    41 	TEST((code)==(expected));\
       
    42 	if (code != expected ) INFO_PRINTF1(msg);\
       
    43 	}
       
    44 
       
    45 #define CHECKPOINT_EXPR(boolexpr,msg) {\
       
    46 	TEST((boolexpr));\
       
    47 	if (EFalse == (boolexpr)) INFO_PRINTF1(msg);\
       
    48 	}
       
    49 
       
    50 
       
    51 // LITs used for ini file.
       
    52 _LIT(KTestCfgHTTPServerIpAddress,"TestCfgHTTPServerIpAddress");
       
    53 _LIT(KTestCfgHTTPPageAddress,"TestCfgHTTPPageAddress");
       
    54 _LIT(KTestCfgPhoneMake, "TestCfgPhoneMake");
       
    55 _LIT(KTestCfgPhoneMotorola, "Motorola");
       
    56 _LIT(KTestCfgPhoneEricsson, "Ericsson");
       
    57 
       
    58 const TInt KOneSecond = 1000000;
       
    59 const TInt KFiveSeconds = KOneSecond * 5;
       
    60 
       
    61 class CInitGlobals : public CGprsTestStep
       
    62 	{
       
    63 public:
       
    64 	CInitGlobals() ;
       
    65 	~CInitGlobals(){} ;
       
    66 	virtual enum TVerdict doTestStepL();
       
    67 	};
       
    68 
       
    69 class CTestGprsDefaultContextParams : public CGprsTestStep
       
    70 	{
       
    71 public:
       
    72 	CTestGprsDefaultContextParams() ;
       
    73 	~CTestGprsDefaultContextParams(){} ;
       
    74 	virtual enum TVerdict doTestStepL();
       
    75 	};
       
    76 
       
    77 class CTestGprsUnSupported : public CGprsTestStep
       
    78 	{
       
    79 public:
       
    80 	CTestGprsUnSupported() ;
       
    81 	~CTestGprsUnSupported(){} ;
       
    82 	virtual enum TVerdict doTestStepL();
       
    83 	};
       
    84 
       
    85 class CTestGprsContextAttach : public CGprsTestStep
       
    86 	{
       
    87 public:
       
    88 	CTestGprsContextAttach() ;
       
    89 	~CTestGprsContextAttach(){} ;
       
    90 	virtual enum TVerdict doTestStepL();
       
    91 	};
       
    92 
       
    93 class CTestGprsContextDelete : public CGprsTestStep
       
    94 	{
       
    95 public:
       
    96 	CTestGprsContextDelete() ;
       
    97 	~CTestGprsContextDelete(){} ;
       
    98 	virtual enum TVerdict doTestStepL();
       
    99 	};
       
   100 
       
   101 class CTestGprsContextLoanComport : public CGprsTestStep
       
   102 	{
       
   103 public:
       
   104 	CTestGprsContextLoanComport() ;
       
   105 	~CTestGprsContextLoanComport(){} ;
       
   106 	virtual enum TVerdict doTestStepL();
       
   107 	};
       
   108 
       
   109 class CTestGprsContextUnSupported : public CGprsTestStep
       
   110 	{
       
   111 public:
       
   112 	CTestGprsContextUnSupported() ;
       
   113 	~CTestGprsContextUnSupported(){} ;
       
   114 	virtual enum TVerdict doTestStepL();
       
   115 	};
       
   116 
       
   117 class CTestGprsAttach : public CGprsTestStep
       
   118 	{
       
   119 public:
       
   120 	CTestGprsAttach() ;
       
   121 	~CTestGprsAttach(){} ;
       
   122 	virtual enum TVerdict doTestStepL();
       
   123 	};
       
   124 
       
   125 class CTestGprsNotification : public CGprsTestStep
       
   126 	{
       
   127 public:
       
   128 	CTestGprsNotification() ;
       
   129 	~CTestGprsNotification(){} ;
       
   130 	virtual enum TVerdict doTestStepL();
       
   131 	};
       
   132 
       
   133 class CTestGprsMsClass : public CGprsTestStep
       
   134 	{
       
   135 public:
       
   136 	CTestGprsMsClass() ;
       
   137 	~CTestGprsMsClass(){} ;
       
   138 	virtual enum TVerdict doTestStepL();
       
   139 	};
       
   140 
       
   141 class CTestGprsContextConfig : public CGprsTestStep
       
   142 	{
       
   143 public:
       
   144 	CTestGprsContextConfig() ;
       
   145 	~CTestGprsContextConfig(){} ;
       
   146 	virtual enum TVerdict doTestStepL();
       
   147 	};
       
   148 
       
   149 class CTestGprsContextConfigNotifications : public CGprsTestStep
       
   150 	{
       
   151 public:
       
   152 	CTestGprsContextConfigNotifications() ;
       
   153 	~CTestGprsContextConfigNotifications(){} ;
       
   154 	virtual enum TVerdict doTestStepL();
       
   155 	};
       
   156 
       
   157 class CTestOpenGprsMaxContexts : public CGprsTestStep
       
   158 	{
       
   159 public:
       
   160 	CTestOpenGprsMaxContexts() ;
       
   161 	~CTestOpenGprsMaxContexts(){} ;
       
   162 	virtual enum TVerdict doTestStepL();
       
   163 	};
       
   164 
       
   165 class CTestGprsCancel : public CGprsTestStep
       
   166 	{
       
   167 public:
       
   168 	CTestGprsCancel() ;
       
   169 	~CTestGprsCancel(){} ;
       
   170 	virtual enum TVerdict doTestStepL();
       
   171 	};
       
   172 
       
   173 class CTestGprsfaxCancel : public CGprsTestStep
       
   174 	{
       
   175 public:
       
   176 	CTestGprsfaxCancel() ;
       
   177 	~CTestGprsfaxCancel(){} ;
       
   178 	virtual enum TVerdict doTestStepL();
       
   179 	};
       
   180 
       
   181 class CTestOpenContextByName : public CGprsTestStep
       
   182 	{
       
   183 public:
       
   184 	CTestOpenContextByName() ;
       
   185 	~CTestOpenContextByName(){} ;
       
   186 	virtual enum TVerdict doTestStepL();
       
   187 	};
       
   188 
       
   189 class CTestNetworkRegStatus : public CGprsTestStep
       
   190 	{
       
   191 public:
       
   192 	CTestNetworkRegStatus() ;
       
   193 	~CTestNetworkRegStatus(){} ;
       
   194 	virtual enum TVerdict doTestStepL();
       
   195 	};
       
   196 
       
   197 class CTestGetStaticCaps : public CGprsTestStep
       
   198 	{
       
   199 public:
       
   200 	CTestGetStaticCaps() ;
       
   201 	~CTestGetStaticCaps(){} ;
       
   202 	virtual enum TVerdict doTestStepL();
       
   203 	};
       
   204 
       
   205 class CTestOpenExistingContext : public CGprsTestStep
       
   206 	{
       
   207 public:
       
   208 	CTestOpenExistingContext() ;
       
   209 	~CTestOpenExistingContext(){} ;
       
   210 	virtual enum TVerdict doTestStepL();
       
   211 	};
       
   212 
       
   213 class CTestGprsDownloadWebPage : public CGprsTestStep
       
   214 	{
       
   215 public:
       
   216 	CTestGprsDownloadWebPage() ;
       
   217 	~CTestGprsDownloadWebPage(){} ;
       
   218 	virtual enum TVerdict doTestStepL();
       
   219 private:
       
   220 	TInt ListRoutes(RSocket& aSocket);
       
   221 	void WaitWithTimeout(TRequestStatus& aStatus);
       
   222 	};
       
   223 
       
   224 class CTest2GprsConnection : public CGprsTestStep
       
   225 	{
       
   226 public:
       
   227 	CTest2GprsConnection() ;
       
   228 	~CTest2GprsConnection(){} ;
       
   229 	virtual enum TVerdict doTestStepL();
       
   230 	};
       
   231 
       
   232 #endif