telephonyserverplugins/common_tsy/test/component/src/cctsysmsmessagingfu.cpp
branchRCL_3
changeset 7 fe8b59ab9fa0
parent 5 7ef16719d8cb
child 8 3f227a47ad75
equal deleted inserted replaced
6:fc69e1e37771 7:fe8b59ab9fa0
   195     //-------------------------------------------------------------------------
   195     //-------------------------------------------------------------------------
   196     // TEST E2: Unsolicited completion of RMobileSmsMessaging::NotifyReceiveModeChange
   196     // TEST E2: Unsolicited completion of RMobileSmsMessaging::NotifyReceiveModeChange
   197     // from LTSY.
   197     // from LTSY.
   198     //-------------------------------------------------------------------------
   198     //-------------------------------------------------------------------------
   199 
   199 
   200     ERR_PRINTF2(_L("<font color=Orange>$CTSYKnownFailure: defect id = %d</font>"), 360201); 
       
   201     ASSERT_TRUE(EFalse);
       
   202 
       
   203     //Request for EMobileSmsMessagingNotifyReceiveModeChange is self reposting. 
   200     //Request for EMobileSmsMessagingNotifyReceiveModeChange is self reposting. 
   204     //If it was completed somehow and then SetReceiveMode() was called without call of NotifyReceiveModeChange() - 
   201     //If it was completed somehow and then SetReceiveMode() was called without call of NotifyReceiveModeChange() - 
   205     //this result in getting wrong request handle for completion in CTelObject::ReqCompleted() 
   202     //this result in getting wrong request handle for completion in CTelObject::ReqCompleted() 
   206     //{updatedReqEntry=PhoneOwner()->FindByTsyHandleAndPlacedRequest(aTsyReqHandle);
   203     //{updatedReqEntry=PhoneOwner()->FindByTsyHandleAndPlacedRequest(aTsyReqHandle);
   207     //__ASSERT_ALWAYS(updatedReqEntry!=NULL, Fault(EEtelFaultCompletionReceivedWithNoReqPackage));}
   204     //__ASSERT_ALWAYS(updatedReqEntry!=NULL, Fault(EEtelFaultCompletionReceivedWithNoReqPackage));}
  1009     //-------------------------------------------------------------------------
  1006     //-------------------------------------------------------------------------
  1010     // TEST B1, test AckSmsStored() when there are sms received
  1007     // TEST B1, test AckSmsStored() when there are sms received
  1011     // that have iDeleteAfterClientAck = true
  1008     // that have iDeleteAfterClientAck = true
  1012     //-------------------------------------------------------------------------
  1009     //-------------------------------------------------------------------------
  1013 
  1010 
       
  1011     // Since Ack failed, the CTSY needs to ask to activate the sms routing again
       
  1012     data.Close();
       
  1013     compSmsRoutingTsyData.SerialiseL(data);
       
  1014     iMockLTSY.ExpectL(EMmTsyActivateSmsRouting);    
       
  1015     iMockLTSY.CompleteL(EMmTsyActivateSmsRouting, KErrNone, data);
       
  1016 
  1014     // make the server expect an acknowledgement
  1017     // make the server expect an acknowledgement
  1015     messaging.ReceiveMessage(reqReceiveStatus, forMsg, receiveAttrPckg);
  1018     messaging.ReceiveMessage(reqReceiveStatus, forMsg, receiveAttrPckg);
  1016 
  1019 
  1017     data.Close();
  1020     data.Close();
  1018     compTsyData.SerialiseL(data);
  1021     compTsyData.SerialiseL(data);
  1477     
  1480     
  1478     //-------------------------------------------------------------------------
  1481     //-------------------------------------------------------------------------
  1479     // TEST B1, test NackSmsStored() when there are sms received
  1482     // TEST B1, test NackSmsStored() when there are sms received
  1480     // that have iDeleteAfterClientAck = true
  1483     // that have iDeleteAfterClientAck = true
  1481     //-------------------------------------------------------------------------
  1484     //-------------------------------------------------------------------------
  1482     
  1485   
       
  1486     // Since Nack failed, the CTSY needs to ask to activate the sms routing again  
       
  1487     data.Close();
       
  1488     compSmsRoutingTsyData.SerialiseL(data);
       
  1489     iMockLTSY.ExpectL(EMmTsyActivateSmsRouting);    
       
  1490     iMockLTSY.CompleteL(EMmTsyActivateSmsRouting, KErrNone, data);
       
  1491 
  1483     // make the server expect an acknowledgement
  1492     // make the server expect an acknowledgement
  1484     messaging.ReceiveMessage(reqReceiveStatus, forMsg, receiveAttrPckg);
  1493     messaging.ReceiveMessage(reqReceiveStatus, forMsg, receiveAttrPckg);
  1485 
  1494 
  1486     smsMsg.iSmsClass2 = ETrue;
  1495     smsMsg.iSmsClass2 = ETrue;
  1487     smsMsg.iDeleteAfterClientAck = ETrue;
  1496     smsMsg.iDeleteAfterClientAck = ETrue;