telephonyprotocols/pdplayer/umts/test/te_spudRSubConn/src/te_spudRSubConnSteps.cpp
branchRCL_3
changeset 6 fc69e1e37771
parent 0 3553901f7fa8
equal deleted inserted replaced
5:7ef16719d8cb 6:fc69e1e37771
   352 
   352 
   353 
   353 
   354 TBool CSpudRSubConnTestStepBase::ApplyQoSParametersL(RSubConnection& aPdpContext)
   354 TBool CSpudRSubConnTestStepBase::ApplyQoSParametersL(RSubConnection& aPdpContext)
   355 	{
   355 	{
   356 	TInt qosParamSet = 0;
   356 	TInt qosParamSet = 0;
   357 	ASSERT(GetIntFromConfig(ConfigSection(), _L("QoSParamSet"), qosParamSet));
   357     if (!GetIntFromConfig(ConfigSection(), _L("QoSParamSet"), qosParamSet))
       
   358         {
       
   359         User::Leave(KErrNotFound);
       
   360         }
       
   361 		
   358 	ASSERT(qosParamSet >= 0);
   362 	ASSERT(qosParamSet >= 0);
   359 
   363 
   360 	switch(qosParamSet)
   364 	switch(qosParamSet)
   361 		{
   365 		{
   362 		case 0:
   366 		case 0:
   772 	
   776 	
   773 	WaitForCompletionL(spudStartReq, KErrNone, _L(">>>>>Starting SPUD NIF"));
   777 	WaitForCompletionL(spudStartReq, KErrNone, _L(">>>>>Starting SPUD NIF"));
   774 	WaitForCompletionL(peerStartReq, KErrNone, _L(">>>>>Starting PPP Peer for SPUD primary context"));
   778 	WaitForCompletionL(peerStartReq, KErrNone, _L(">>>>>Starting PPP Peer for SPUD primary context"));
   775 
   779 
   776 	TInt stopTypeInt = -1;  
   780 	TInt stopTypeInt = -1;  
   777 	ASSERT(GetIntFromConfig(ConfigSection(), _L("StopType"), stopTypeInt));
   781 	if(!GetIntFromConfig(ConfigSection(), _L("StopType"), stopTypeInt))
       
   782 	    {
       
   783         User::Leave(KErrNotFound);
       
   784 	    }
       
   785 		
   778 	RConnection::TConnStopType stopType = static_cast<RConnection::TConnStopType>(stopTypeInt);
   786 	RConnection::TConnStopType stopType = static_cast<RConnection::TConnStopType>(stopTypeInt);
   779 	INFO_PRINTF2(_L("Stopping Spud with stop type= %d (0 = EStopNormal, 1 = EStopAuthoritative)"), stopType);
   787 	INFO_PRINTF2(_L("Stopping Spud with stop type= %d (0 = EStopNormal, 1 = EStopAuthoritative)"), stopType);
   780 	ASSERT(RConnection::EStopNormal == stopType || RConnection::EStopAuthoritative == stopType);
   788 	ASSERT(RConnection::EStopNormal == stopType || RConnection::EStopAuthoritative == stopType);
   781 	TInt stopErr = iSpud.Stop(stopType);
   789 	TInt stopErr = iSpud.Stop(stopType);
   782 	INFO_PRINTF2(_L("Stopped Spud with error = %d"), stopErr);
   790 	INFO_PRINTF2(_L("Stopped Spud with error = %d"), stopErr);