telephonyserverplugins/common_tsy/test/integration/src/tcallcontroltsytesthelper.cpp
equal
deleted
inserted
replaced
1602 } |
1602 } |
1603 |
1603 |
1604 if(aCallInfo.iValid & RMobileCall::KCallDuration) |
1604 if(aCallInfo.iValid & RMobileCall::KCallDuration) |
1605 { |
1605 { |
1606 TTimeIntervalSeconds invalidTime = 0; |
1606 TTimeIntervalSeconds invalidTime = 0; |
1607 TTimeIntervalSeconds startTime(aCallInfo.iDuration); |
1607 TTimeIntervalSeconds callDuration(aCallInfo.iDuration); |
1608 if(aIsCallConnected) |
1608 if(aIsCallConnected) |
1609 { |
1609 { |
1610 ASSERT_TRUE( startTime > invalidTime, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number")); |
1610 ASSERT_TRUE( callDuration > invalidTime, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number")); |
1611 } |
1611 } |
1612 else |
1612 else |
1613 { |
1613 { |
1614 ASSERT_EQUALS( startTime.Int(), invalidTime.Int(), _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number")); |
1614 // Note: This value contains previous call duration since it is not connected, can be 0 or bigger than 0. |
|
1615 ASSERT_TRUE( callDuration >= invalidTime, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number")); |
1615 } |
1616 } |
1616 } |
1617 } |
1617 |
1618 |
1618 if(aCallInfo.iValid & RMobileCall::KCallId) |
1619 if(aCallInfo.iValid & RMobileCall::KCallId) |
1619 { |
1620 { |
1632 ASSERT_TRUE( aCallInfo.iRemoteParty.iRemoteNumber.iTelNumber.Length() > 0, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallRemoteParty to true, but set iRemoteParty.iRemoteNumber.iTelNumber.Length() to an invalid length")) |
1633 ASSERT_TRUE( aCallInfo.iRemoteParty.iRemoteNumber.iTelNumber.Length() > 0, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallRemoteParty to true, but set iRemoteParty.iRemoteNumber.iTelNumber.Length() to an invalid length")) |
1633 } |
1634 } |
1634 |
1635 |
1635 if(aCallInfo.iValid & RMobileCall::KCallExitCode) |
1636 if(aCallInfo.iValid & RMobileCall::KCallExitCode) |
1636 { |
1637 { |
|
1638 // Note: iExitCode contains previous call result if it is not connected. |
1637 ASSERT_EQUALS( aCallInfo.iExitCode, aRequiredExitCode, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallExitCode to true, but did not set iExitCode to that expected.")) |
1639 ASSERT_EQUALS( aCallInfo.iExitCode, aRequiredExitCode, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallExitCode to true, but did not set iExitCode to that expected.")) |
1638 } |
1640 } |
1639 |
1641 |
1640 if(aCallInfo.iValid & RMobileCall::KCallEmergency) |
1642 if(aCallInfo.iValid & RMobileCall::KCallEmergency) |
1641 { |
1643 { |