datacommsserver/esockserver/test/TE_EsockTestSteps/inc/SubConnections.TestSteps.h
changeset 0 dfb7c4ff071f
equal deleted inserted replaced
-1:000000000000 0:dfb7c4ff071f
       
     1 /**
       
     2 * Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 /**
       
    21  @file SubConnections.TestSteps.h
       
    22 */
       
    23 
       
    24 #if (!defined SUBCONNECTIONS_TESTSTEPS_H)
       
    25 #define SUBCONNECTIONS_TESTSTEPS_H
       
    26 
       
    27 #include <test/testexecutestepbase.h>
       
    28 #include "Te_EsockStepBase.h"
       
    29 
       
    30 //subconnection generic
       
    31 _LIT(KTe_SubConnectionName,"SubConnName");
       
    32 _LIT(KTe_SubConnectionParamsName,"SubConnParamsName");
       
    33 _LIT(KTe_SubConnectionTypeName,"SubConnType");
       
    34 
       
    35 _LIT(KTe_SubConnectionTypeAttach,"EAttachToDefault");
       
    36 _LIT(KTe_SubConnectionTypeNew,"ECreateNew");
       
    37 
       
    38 //subcon parameters
       
    39 
       
    40 
       
    41 _LIT(KTe_ParamsTypeIdUidName,"Type_UID");
       
    42 _LIT(KTe_ParamsTypeIdIntName,"Type_INT");
       
    43 _LIT(KTe_ParamsTypeRequested,"Requested");
       
    44 _LIT(KTe_ParamsTypeAcceptable,"Acceptable");
       
    45 _LIT(KTe_ParamsTypeGranted,"Granted");
       
    46 
       
    47 _LIT(KTe_HeaderMode,"HeaderMode");
       
    48 _LIT(KTe_DownlinkBandwidth,"DownlinkBandwidth");
       
    49 _LIT(KTe_UplinkBandwidth,"UplinkBandwidth");
       
    50 _LIT(KTe_DownLinkMaximumBurstSize,"DownLinkMaxBurstSize");
       
    51 _LIT(KTe_UpLinkMaximumBurstSize,"UpLinkMaxBurstSize");
       
    52 _LIT(KTe_DownLinkAveragePacketSize,"DownLinkAvPacketSize");
       
    53 _LIT(KTe_UpLinkAveragePacketSize,"UpLinkAvPacketSize");
       
    54 _LIT(KTe_DownLinkMaximumPacketSize,"DownLinkMaxPacketSize");
       
    55 _LIT(KTe_UpLinkMaximumPacketSize,"UpLinkMaxPacketSize");
       
    56 _LIT(KTe_DownLinkDelay,"DownLinkDelay");
       
    57 _LIT(KTe_UpLinkDelay,"UpLinkDelay");
       
    58 _LIT(KTe_DownLinkDelayVariation,"DownLinkDelayVariation");
       
    59 _LIT(KTe_UpLinkDelayVariation,"UpLinkDelayVariation");
       
    60 _LIT(KTe_DownLinkPriority,"DownLinkPriority");
       
    61 _LIT(KTe_UpLinkPriority,"UpLinkPriority");
       
    62 _LIT(KTe_AccessBearer,"AccessBearer");
       
    63 _LIT(KTe_ServiceMode,"ServiceMode");
       
    64 _LIT(KTe_MultiClient,"MultiClients");
       
    65 _LIT(KTe_MultiConnection,"MultiConnection");
       
    66 _LIT(KTe_NumOfTmgis,"NumOfTMGIs");
       
    67 _LIT(KTe_MCC,"MCCID");
       
    68 _LIT(KTe_MNC,"MNCID");
       
    69 _LIT(KTe_ServiceId,"ServiceId");
       
    70 _LIT(KTe_ServicePrty,"ServicePriority");
       
    71 _LIT(KTe_SessionId,"SessionId");
       
    72 _LIT(KTe_SessionId2,"SessionId2");
       
    73 _LIT(KTe_DeactivationReqd,"DeactivationReqd");
       
    74 _LIT(KTe_ActivationSuccess,"ActivationSuccess");
       
    75 _LIT(KTe_SessionOperationType,"OperationType");
       
    76 
       
    77 _LIT(KTe_ParamsTypeInvite,"Invite");
       
    78 _LIT(KTe_ParamsTypeSubscribe,"Subscribe");
       
    79 //subcon events
       
    80 _LIT(KTe_SubConnectionEventsName,"SubConnEventsName");
       
    81 _LIT(KTe_EventTypeParamsGranted,"ParamsGranted");
       
    82 _LIT(KTe_EventTypeDataClientJoined,"DataClientJoined");
       
    83 _LIT(KTe_EventTypeDataClientLeft,"DataClientLeft");
       
    84 _LIT(KTe_EventTypeSubConDown,"SubConDown");
       
    85 _LIT(KTe_EventTypeParamsChanged,"ParamsChanged");
       
    86 _LIT(KTe_EventTypeParamsRejected,"ParamsRejected");
       
    87 
       
    88 
       
    89 _LIT(KTe_SubConGenericParamsSetName,"GSet");
       
    90 _LIT(KTe_SubConParamsSetName,"Set");
       
    91 
       
    92 _LIT(KTe_CompareFamily1Type,"FamilyType1");
       
    93 _LIT(KTe_CompareFamily2Type,"FamilyType2");
       
    94 _LIT(KTe_SubConnectionParams1Name,"SubConnParamsName1");
       
    95 _LIT(KTe_SubConnectionParams2Name,"SubConnParamsName2");
       
    96 _LIT(KTe_SubConnectionParams1Type,"SubConnParamsType1");
       
    97 _LIT(KTe_SubConnectionParams2Type,"SubConnParamsType2");
       
    98 
       
    99 
       
   100 /**
       
   101 Class implementing CreateRSubConnectionStep
       
   102 
       
   103 @internalComponent
       
   104 */
       
   105 class CCreateRSubConnectionStep : public CTe_EsockStepBase
       
   106 	{
       
   107 public:
       
   108 	CCreateRSubConnectionStep(CCEsockTestBase*& aEsockTest);
       
   109 	TVerdict doTestStepPreambleL();
       
   110 	TVerdict doSingleTestStep();
       
   111 	TInt ConfigureFromIni();
       
   112 
       
   113 private:
       
   114     TRSubConnectionParams iParams; //current params
       
   115 	};
       
   116 
       
   117 _LIT(KCreateRSubConnectionStep,"CreateRSubConnectionStep");
       
   118 
       
   119 
       
   120 /**
       
   121 Class implementing OpenRSubConnectionOOMStep
       
   122 
       
   123 @internalComponent
       
   124 */
       
   125 class COpenRSubConnectionOOMStep : public CTe_EsockStepBase
       
   126 	{
       
   127 public:
       
   128 	COpenRSubConnectionOOMStep(CCEsockTestBase*& aEsockTest);
       
   129 	TVerdict doSingleTestStep();
       
   130 	TInt ConfigureFromIni();
       
   131 private:
       
   132     TInt OpenSubConnectionOOM();
       
   133 
       
   134 private:
       
   135 	TRSubConnectionParams iParams; //current params (.ini)
       
   136 	};
       
   137 
       
   138 _LIT(KOpenRSubConnectionOOMStep,"OpenRSubConnectionOOMStep");
       
   139 
       
   140 
       
   141 /**
       
   142 Class implementing OpenRSubConnectionStep
       
   143 
       
   144 @internalComponent
       
   145 */
       
   146 class COpenRSubConnectionStep : public CTe_EsockStepBase
       
   147 	{
       
   148 public:
       
   149 	COpenRSubConnectionStep(CCEsockTestBase*& aEsockTest);
       
   150 	TVerdict doSingleTestStep();
       
   151 	TInt ConfigureFromIni();
       
   152 
       
   153 private:
       
   154 	TRSubConnectionParams iParams; //current params (.ini)
       
   155 	};
       
   156 
       
   157 _LIT(KOpenRSubConnectionStep,"OpenRSubConnectionStep");
       
   158 
       
   159 
       
   160 /**
       
   161 Class implementing CloseRSubConnectionStep
       
   162 
       
   163 @internalComponent
       
   164 */
       
   165 class CCloseRSubConnectionStep : public CTe_EsockStepBase
       
   166 	{
       
   167 public:
       
   168 	CCloseRSubConnectionStep(CCEsockTestBase*& aEsockTest);
       
   169 	TVerdict doSingleTestStep();
       
   170 	TInt ConfigureFromIni();
       
   171 
       
   172 private:
       
   173     TRSubConnectionParams iParams; //current params
       
   174 	};
       
   175 
       
   176 _LIT(KCloseRSubConnectionStep,"CloseRSubConnectionStep");
       
   177 
       
   178 
       
   179 /**
       
   180 Class implementing checkrsubconnectioneventsStep
       
   181 
       
   182 @internalComponent
       
   183 */
       
   184 class CCheckRSubConnectionEventsStep : public CTe_EsockStepBase
       
   185 	{
       
   186 public:
       
   187 	CCheckRSubConnectionEventsStep(CCEsockTestBase*& aEsockTest);
       
   188 	TVerdict doSingleTestStep();
       
   189 	TInt ConfigureFromIni();
       
   190 
       
   191 private:
       
   192     TEventContainerParams iParams; //current params (.ini)
       
   193 	};
       
   194 
       
   195 _LIT(KCheckRSubConnectionEventsStep,"CheckRSubConnectionEventsStep");
       
   196 
       
   197 
       
   198 /**
       
   199 Class implementing controlrsubconnectionStep
       
   200 
       
   201 @internalComponent
       
   202 */
       
   203 class CControlRSubConnectionStep : public CTe_EsockStepBase
       
   204 	{
       
   205 public:
       
   206 	CControlRSubConnectionStep(CCEsockTestBase*& aEsockTest);
       
   207 	TVerdict doSingleTestStep();
       
   208 	TInt ConfigureFromIni();
       
   209 
       
   210 private:
       
   211     TRSubConnectionParams iParams; //current params
       
   212 	};
       
   213 
       
   214 _LIT(KControlRSubConnectionStep,"ControlRSubConnectionStep");
       
   215 
       
   216 
       
   217 /**
       
   218 Class implementing multipleopenrsubconnectionStep
       
   219 
       
   220 @internalComponent
       
   221 */
       
   222 class CMultipleOpenRSubConnectionStep : public CTe_EsockStepBase
       
   223 	{
       
   224 public:
       
   225 	CMultipleOpenRSubConnectionStep(CCEsockTestBase*& aEsockTest);
       
   226 	TVerdict doSingleTestStep();
       
   227 	TInt ConfigureFromIni();
       
   228 
       
   229 private:
       
   230 	TRSubConnectionParams iParams; //current params (.ini)
       
   231 	};
       
   232 
       
   233 _LIT(KMultipleOpenRSubConnectionStep,"MultipleOpenRSubConnectionStep");
       
   234 
       
   235 
       
   236 /**
       
   237 Class implementing MultipleRemoveRSubConnectionStep
       
   238 
       
   239 @internalComponent
       
   240 */
       
   241 class CMultipleRemoveRSubConnectionStep : public CTe_EsockStepBase
       
   242 	{
       
   243 public:
       
   244 	CMultipleRemoveRSubConnectionStep(CCEsockTestBase*& aEsockTest);
       
   245 	TVerdict doSingleTestStep();
       
   246 	TInt ConfigureFromIni();
       
   247 
       
   248 private:
       
   249 	TRSubConnectionParams iParams; //current params (.ini)
       
   250 	};
       
   251 
       
   252 _LIT(KMultipleRemoveRSubConnectionStep,"MultipleRemoveRSubConnectionStep");
       
   253 
       
   254 
       
   255 /**
       
   256 Class implementing RegisterForRSubConnectionEventsStep
       
   257 
       
   258 @internalComponent
       
   259 */
       
   260 class CRegisterForRSubConnectionEventsStep : public CTe_EsockStepBase
       
   261 	{
       
   262 public:
       
   263 	CRegisterForRSubConnectionEventsStep(CCEsockTestBase*& aEsockTest);
       
   264 	TVerdict doSingleTestStep();
       
   265 	TInt ConfigureFromIni();
       
   266 
       
   267 private:
       
   268 	TEventContainerParams iParams; //current params (.ini)
       
   269 	};
       
   270 
       
   271 _LIT(KRegisterForRSubConnectionEventsStep,"RegisterForRSubConnectionEventsStep");
       
   272 
       
   273 
       
   274 // Enumerate subconnections
       
   275 //-------------------------
       
   276 
       
   277 class TEnumerateSubConnectionsParams
       
   278 	{
       
   279 public:
       
   280 	TPtrC iConnectionName;
       
   281 	TInt iExpectedSubConnCount;
       
   282 	};
       
   283 
       
   284 
       
   285 class CEnumerateSubConnectionsStep : public CTe_EsockStepBase
       
   286 	{
       
   287 public:
       
   288 	CEnumerateSubConnectionsStep(CCEsockTestBase*& aEsockTest);
       
   289 	TInt ConfigureFromIni();
       
   290 	TVerdict doSingleTestStep();
       
   291 
       
   292 private:
       
   293     TEnumerateSubConnectionsParams iParams;
       
   294 	};
       
   295 
       
   296 _LIT(KEnumerateSubConnectionsStep,"EnumerateSubConnectionsStep");
       
   297 
       
   298 
       
   299 _LIT(KExpectedConnectionCount, "ExpectedConnCount");
       
   300 _LIT(KExpectedSubConnectionCount, "ExpectedSubConnCount");
       
   301 
       
   302 
       
   303 
       
   304 #endif // SUBCONNECTIONS_TESTSTEPS_H
       
   305