phoneapp/phoneuistates/tsrc/ut_cphonesingleandwaiting/Src/ut_cphonesingleandwaiting.cpp
changeset 76 cfea66083b62
parent 74 d1c62c765e48
--- a/phoneapp/phoneuistates/tsrc/ut_cphonesingleandwaiting/Src/ut_cphonesingleandwaiting.cpp	Fri Sep 17 17:09:12 2010 +0300
+++ b/phoneapp/phoneuistates/tsrc/ut_cphonesingleandwaiting/Src/ut_cphonesingleandwaiting.cpp	Mon Oct 04 16:06:10 2010 +0300
@@ -166,9 +166,7 @@
 void ut_cphonesingleandwaiting::TestBubbleAndUICommandsAreUpdatedWhenCallIsPutToHoldL()
     {
     TInt callId( 1 );
-    iMockContext->ExpectCallL("CPhoneState::UpdateUiCommands");
-    iMockContext->ExpectCallL("CPhoneViewCommandHandleMock::ExecuteCommandL").
-        WithL<TPhoneViewCommandId,TInt>(EPhoneViewUpdateBubble, callId);
+    iMockContext->ExpectCallL("CPhoneState::UpdateCallHeaderAndUiCommandsL");
     
     iState->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageHeld, callId );
     EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() );
@@ -177,9 +175,7 @@
 void ut_cphonesingleandwaiting::TestBubbleAndUICommandsAreUpdatedWhenCallIsResumedL()
     {
     TInt callId( 0 );
-    iMockContext->ExpectCallL("CPhoneState::UpdateUiCommands");
-    iMockContext->ExpectCallL("CPhoneViewCommandHandleMock::ExecuteCommandL").
-        WithL<TPhoneViewCommandId,TInt>(EPhoneViewUpdateBubble, callId);
+    iMockContext->ExpectCallL("CPhoneState::UpdateCallHeaderAndUiCommandsL");
     
     iState->HandlePhoneEngineMessageL( MEngineMonitor::EPEMessageConnected, callId );
     EUNIT_ASSERT_EQUALS( KErrNone, iMockContext->VerifyExpectations() );