telephonyserverplugins/common_tsy/test/component/src/cctsynetworkcontrolfu.cpp
changeset 19 1f776524b15c
parent 0 3553901f7fa8
child 15 fc69e1e37771
equal deleted inserted replaced
0:3553901f7fa8 19:1f776524b15c
  5270 void CCTsyNetworkControlFU::TestGetNetworkRegistrationStatus0001L()
  5270 void CCTsyNetworkControlFU::TestGetNetworkRegistrationStatus0001L()
  5271 	{
  5271 	{
  5272 
  5272 
  5273 	OpenEtelServerL(EUseExtendedError);
  5273 	OpenEtelServerL(EUseExtendedError);
  5274 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
  5274 	CleanupStack::PushL(TCleanupItem(Cleanup,this));
  5275 	OpenPhoneL();
  5275 
  5276 
  5276 	TRequestStatus requestStatus;
       
  5277     RMobilePhone::TMobilePhoneRegistrationStatus status;
       
  5278     
       
  5279     // Initial test to verify that GetNetworkRegistrationStatus completes 
       
  5280     // with an error if the modem is not ready (i.e., before the LTSY sends
       
  5281     // a EMmTsyBootNotifyModemStatusReadyIPC notification to CTSY)
       
  5282     TInt err = iPhone.Open(iTelServer,KMmTsyPhoneName);
       
  5283     ASSERT_EQUALS(KErrNone, err);
       
  5284 
       
  5285     iPhone.GetNetworkRegistrationStatus(requestStatus, status);
       
  5286     User::WaitForRequest(requestStatus);
       
  5287     ASSERT_EQUALS(KErrNotReady, requestStatus.Int());
       
  5288 
       
  5289 	iPhone.Close();
       
  5290 	
       
  5291 	OpenPhoneL(); // whole phone bootup procedure for rest of tests
       
  5292 	
  5277 	RBuf8 data;
  5293 	RBuf8 data;
  5278 	CleanupClosePushL(data);
  5294 	CleanupClosePushL(data);
  5279 
       
  5280 	TRequestStatus requestStatus;
       
  5281 	RMobilePhone::TMobilePhoneRegistrationStatus status;
       
  5282 
  5295 
  5283  	//-------------------------------------------------------------------------
  5296  	//-------------------------------------------------------------------------
  5284 	// TEST A: failure to dispatch request to LTSY
  5297 	// TEST A: failure to dispatch request to LTSY
  5285  	//-------------------------------------------------------------------------
  5298  	//-------------------------------------------------------------------------
  5286 
  5299