telephonyserverplugins/common_tsy/test/integration/src/tcallcontroltsytesthelper.cpp
branchRCL_3
changeset 8 3f227a47ad75
parent 0 3553901f7fa8
--- a/telephonyserverplugins/common_tsy/test/integration/src/tcallcontroltsytesthelper.cpp	Wed Mar 31 23:24:02 2010 +0300
+++ b/telephonyserverplugins/common_tsy/test/integration/src/tcallcontroltsytesthelper.cpp	Wed Apr 14 17:11:46 2010 +0300
@@ -1604,14 +1604,15 @@
 	if(aCallInfo.iValid & RMobileCall::KCallDuration)
 		{
 		TTimeIntervalSeconds invalidTime = 0;
-		TTimeIntervalSeconds startTime(aCallInfo.iDuration);
+		TTimeIntervalSeconds callDuration(aCallInfo.iDuration);
 		if(aIsCallConnected)
 		    {
-		    ASSERT_TRUE( startTime > invalidTime, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number"));
+		    ASSERT_TRUE( callDuration > invalidTime, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number"));
 		    }
 		else
 		    {
-		    ASSERT_EQUALS( startTime.Int(), invalidTime.Int(), _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number"));
+		    // Note: This value contains previous call duration since it is not connected, can be 0 or bigger than 0. 
+            ASSERT_TRUE( callDuration >= invalidTime, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallDuration to true, but set iDuration to an invalid number"));
 		    }
 		}
 
@@ -1634,6 +1635,7 @@
 
 	if(aCallInfo.iValid & RMobileCall::KCallExitCode)
 		{
+        // Note: iExitCode contains previous call result if it is not connected. 
 		ASSERT_EQUALS( aCallInfo.iExitCode, aRequiredExitCode, _L("RMobileCall::GetMobileCallInfo set bitmask for KCallExitCode to true, but did not set iExitCode to that expected."))
 		}