telephonyprotocols/pdplayer/umts/test/te_spudNetworkSide/src/te_spudNetworkSideSteps.cpp
branchRCL_3
changeset 15 8b9e023e329f
parent 12 cca59d85ca31
child 18 17af172ffa5f
equal deleted inserted replaced
13:b836c4d4fce7 15:8b9e023e329f
  1979 	TInt oppositeSecondaryIapId;
  1979 	TInt oppositeSecondaryIapId;
  1980 	TestBooleanTrueL(GetIntFromConfig(ConfigSection(), _L("IapId"), oppositeSecondaryIapId), _L("Get Iap ID for the rawipnif instance opposite the secondary context"));
  1980 	TestBooleanTrueL(GetIntFromConfig(ConfigSection(), _L("IapId"), oppositeSecondaryIapId), _L("Get Iap ID for the rawipnif instance opposite the secondary context"));
  1981 
  1981 
  1982 	// start rawipnif instance opposite the SPUD's secondary context, and open a socket on it
  1982 	// start rawipnif instance opposite the SPUD's secondary context, and open a socket on it
  1983 	CConnectionStart *secondaryIfStart = CConnectionStart::NewLC(iEsock, *this, oppositeSecondaryIapId);
  1983 	CConnectionStart *secondaryIfStart = CConnectionStart::NewLC(iEsock, *this, oppositeSecondaryIapId);
       
  1984 
       
  1985     TRequestStatus progressReqSt;   
       
  1986     
       
  1987 	secondaryIfStart->iInterface.ProgressNotification(iProgressBuf, progressReqSt, 7000);
       
  1988 	WaitForProgressNotificationL(progressReqSt, 7000, 0); // We can wait here forever. Set timeout on test step.
       
  1989 
  1984 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
  1990 #ifndef SYMBIAN_NON_SEAMLESS_NETWORK_BEARER_MOBILITY
  1985 	WaitForQoSEventL(_L("SecondaryActivationEvent2"), _L("SecondaryActivationEvent2Reason"));
  1991 	WaitForQoSEventL(_L("SecondaryActivationEvent2"), _L("SecondaryActivationEvent2Reason"));
  1986 #else
  1992 #else
  1987 	User::After(KTimeToStartSecondary);
  1993 	User::After(KTimeToStartSecondary);
  1988 	VerifySubconnectionCountL(_L("SubConnectionCount2"), defaultIapID);
  1994 	VerifySubconnectionCountL(_L("SubConnectionCount2"), defaultIapID);
  2234         
  2240         
  2235     	INFO_PRINTF2(_L("Test starting Interface IAP ID == %d"), primaryIapId);	
  2241     	INFO_PRINTF2(_L("Test starting Interface IAP ID == %d"), primaryIapId);	
  2236     	
  2242     	
  2237     	TestL(p->Open(iEsock), _L("RConnection::Open the interface"));
  2243     	TestL(p->Open(iEsock), _L("RConnection::Open the interface"));
  2238     	TestL(p->Start(iap1prefs),primaryCreationErr, _L("RConnection::Start the interface"));
  2244     	TestL(p->Start(iap1prefs),primaryCreationErr, _L("RConnection::Start the interface"));
       
  2245 	    }
       
  2246 
       
  2247 	//check if all contexts are still there
       
  2248 	for (TInt i = 0; i < maximumConnections; i++)
       
  2249 	    {
       
  2250         TBuf<32> primaryIap;
       
  2251         primaryIap.Format(KPrimaryIapFormatLit, i + 1);
       
  2252     	if (!GetIntFromConfig(ConfigSection(), primaryIap, primaryIapId))
       
  2253     		{
       
  2254     		User::Leave(KErrNotFound);
       
  2255     		}
       
  2256 		INFO_PRINTF2(_L("Verify context #%d is still there"), i);
       
  2257 		VerifySubconnectionCountL(2, primaryIapId);
       
  2258 		INFO_PRINTF2(_L("Context #%d is still there"), i);
  2239 	    }
  2259 	    }
  2240 
  2260 
  2241 	
  2261 	
  2242 	for (TInt i = (interfaces.Count() - 1); i >= 0; i--)
  2262 	for (TInt i = (interfaces.Count() - 1); i >= 0; i--)
  2243 	    {
  2263 	    {