phoneengine/loghandling/tsrc/ut_cpelogevent/src/ut_cpelogevent.cpp
changeset 60 1eef62f5c541
parent 21 92ab7f8d0eab
equal deleted inserted replaced
53:22cc52eade9b 60:1eef62f5c541
   264     TLogString test;
   264     TLogString test;
   265     _LIT( KMyAddress, "myaddress@domain.com" );
   265     _LIT( KMyAddress, "myaddress@domain.com" );
   266     _LIT( KVoipAddress, "remotecontact@domain.com" );
   266     _LIT( KVoipAddress, "remotecontact@domain.com" );
   267 
   267 
   268     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   268     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   269         ReturnsL( EPEStateIdle ).
   269         ReturnsL<TPEState>( EPEStateIdle ).
   270         TimesL( 2 );
   270         TimesL( 2 );
   271     
   271     
   272     iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ).
   272     iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ).
   273         ReturnsL( test );
   273         ReturnsL( test );
   274     
   274     
   369     {
   369     {
   370     TLogString test;
   370     TLogString test;
   371     _LIT( KVoipAddress, "remotecontact@domain.com" );
   371     _LIT( KVoipAddress, "remotecontact@domain.com" );
   372 
   372 
   373     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   373     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   374         ReturnsL( EPEStateIdle );
   374         ReturnsL<TPEState>( EPEStateIdle );
   375     
   375     
   376     iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ).
   376     iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ).
   377         ReturnsL( test );
   377         ReturnsL( test );
   378     
   378     
   379     iMockContext->ExpectCallL( "CPELogHandling::LogStringMissed" ).
   379     iMockContext->ExpectCallL( "CPELogHandling::LogStringMissed" ).
   411     iMockContext->ExpectCallL( "CPELogInfo::ContactLink").
   411     iMockContext->ExpectCallL( "CPELogInfo::ContactLink").
   412         ReturnsL( KNullDesC() ).
   412         ReturnsL( KNullDesC() ).
   413         TimesL( 4 );
   413         TimesL( 4 );
   414     
   414     
   415     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   415     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   416         ReturnsL( EPEStateIdle ).
   416         ReturnsL<TPEState>( EPEStateIdle ).
   417         TimesL( 2 );
   417         TimesL( 2 );
   418     
   418     
   419     iMockContext->ExpectCallL( "CPELogInfo::MissedCall" ).
   419     iMockContext->ExpectCallL( "CPELogInfo::MissedCall" ).
   420         ReturnsL( ETrue );
   420         ReturnsL( ETrue );
   421     
   421     
   432 
   432 
   433     _LIT( KMyNumber, "040665544" );
   433     _LIT( KMyNumber, "040665544" );
   434     _LIT( KMyName, "Tester" );
   434     _LIT( KMyName, "Tester" );
   435 
   435 
   436     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   436     iMockContext->ExpectCallL( "CPELogInfo::CallState" ).
   437         ReturnsL( EPEStateIdle );
   437         ReturnsL<TPEState>( EPEStateIdle );
   438     
   438     
   439     iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ).
   439     iMockContext->ExpectCallL( "CPELogHandling::LogStringDelivery" ).
   440         ReturnsL( test );
   440         ReturnsL( test );
   441     
   441     
   442     iMockContext->ExpectCallL( "CPELogHandling::LogStringInAlt" ).
   442     iMockContext->ExpectCallL( "CPELogHandling::LogStringInAlt" ).