phoneapp/phoneuistates/tsrc/ut_cphoneincoming/Src/ut_cphoneincoming.cpp
changeset 78 baacf668fe89
parent 74 d1c62c765e48
equal deleted inserted replaced
76:cfea66083b62 78:baacf668fe89
   159 // -check commands
   159 // -check commands
   160 // -----------------------------------------------------------------------------
   160 // -----------------------------------------------------------------------------
   161 //  
   161 //  
   162 void ut_cphoneincoming::T_HandleWaiting()
   162 void ut_cphoneincoming::T_HandleWaiting()
   163     {     
   163     {     
   164     iMockContext->ExpectCallL( "TPhoneCmdParamCallStateData::CallId" ).
   164     iMockContext->ExpectCallL( "PhoneCallUtil::CallIdByState" ).
   165         ReturnsL( 1 );
   165         ReturnsL( 1 );
   166     iMockContext->ExpectCallL( "CPhoneStateMachine::ChangeState" ).
   166     iMockContext->ExpectCallL( "CPhoneStateMachine::ChangeState" ).
   167         WithL( EPhoneStateWaitingInSingle );
   167         WithL( EPhoneStateWaitingInSingle );
   168 
   168 
   169     iStateIncoming->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageIncoming, 2 ); 
   169     iStateIncoming->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageIncoming, 2 );