phoneapp/phoneuistates/tsrc/ut_cphoneconferenceandwaiting/Src/ut_cphoneconferenceandwaiting.cpp
changeset 76 cfea66083b62
parent 74 d1c62c765e48
child 78 baacf668fe89
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
   153 // Use case: User answer waiting call, waiting call connected
   153 // Use case: User answer waiting call, waiting call connected
   154 // -----------------------------------------------------------------------------
   154 // -----------------------------------------------------------------------------
   155 //  
   155 //  
   156 void ut_cphoneconferenceandwaiting::T_HandleConnected_1L(  )
   156 void ut_cphoneconferenceandwaiting::T_HandleConnected_1L(  )
   157     {           
   157     {           
   158     iMockContext->ExpectCallL( "CPhoneViewCommandHandleMock::ExecuteCommandL" ).
   158     iMockContext->ExpectCallL( "CPhoneState::UpdateCallHeaderAndUiCommandsL" ).
   159         WithL<TPhoneViewCommandId, TInt> ( EPhoneViewUpdateBubble, 2 );
   159         WithL<TInt> ( 2 );
   160     
   160     
   161     iMockContext->ExpectCallL( "CPhoneStateMachine::ChangeState" ).
   161     iMockContext->ExpectCallL( "CPhoneStateMachine::ChangeState" ).
   162         WithL<TInt> ( EPhoneStateConferenceAndSingle );
   162         WithL<TInt> ( EPhoneStateConferenceAndSingle );
   163 
   163 
   164     iStateConferenceAndWaiting->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageConnected, 2 );
   164     iStateConferenceAndWaiting->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageConnected, 2 );
   171 // Use case: Go one to one with conference member
   171 // Use case: Go one to one with conference member
   172 // -----------------------------------------------------------------------------
   172 // -----------------------------------------------------------------------------
   173 //  
   173 //  
   174 void ut_cphoneconferenceandwaiting::T_HandleConnected_2L(  )
   174 void ut_cphoneconferenceandwaiting::T_HandleConnected_2L(  )
   175     {
   175     {
   176     iMockContext->ExpectCallL( "CPhoneViewCommandHandleMock::ExecuteCommandL" ).
   176     iMockContext->ExpectCallL( "CPhoneState::UpdateCallHeader" ).
   177         WithL<TPhoneViewCommandId, TInt> ( EPhoneViewUpdateBubble, 0 );
   177         WithL<TInt> ( 0 );
   178 
   178 
   179     iStateConferenceAndWaiting->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageConnected, 0 );
   179     iStateConferenceAndWaiting->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageConnected, 0 );
   180 
   180 
   181     EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() );
   181     EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() );
   182     }
   182     }