phoneapp/phoneuicontrol/tsrc/ut_cphoneuicommandmanager/Src/ut_cphoneuicommandmanager.cpp
changeset 78 baacf668fe89
parent 74 d1c62c765e48
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
   166  *  Use case: Client calls UpdateUiCommands check that SetButtonFlags/SetTouchButtons/SetToolBarButtons gets called. 
   166  *  Use case: Client calls UpdateUiCommands check that SetButtonFlags/SetTouchButtons/SetToolBarButtons gets called. 
   167  *  Motivation: 
   167  *  Motivation: 
   168  */
   168  */
   169 void ut_cphoneuicommandmanager::T_UpdateUiCommands(  )
   169 void ut_cphoneuicommandmanager::T_UpdateUiCommands(  )
   170     {
   170     {
   171     /*expect call from SetButtonFlags*/
   171     /*expect call from SetButtonFlags*/   
       
   172     iMockContext->ExpectCallL( "PhoneCallUtil::CallIdByState" ).ReturnsL(KErrNotFound);
   172     TPhoneCmdParamBoolean muteParam;
   173     TPhoneCmdParamBoolean muteParam;
   173     iMockContext->ExpectCallL( "CPhoneViewCommandHandleMock::ExecuteCommand" ).
   174     iMockContext->ExpectCallL( "CPhoneViewCommandHandleMock::ExecuteCommand" ).
   174             WithL<TPhoneViewCommandId, TPhoneCommandParam&> ( EPhoneViewSetMuteFlag, muteParam ); 
   175             WithL<TPhoneViewCommandId, TPhoneCommandParam&> ( EPhoneViewSetMuteFlag, muteParam ); 
   175     
   176     
   176     /*expect call from SetTouchButtons*/
   177     /*expect call from SetTouchButtons*/