--- a/telephonyserverplugins/simatktsy/tests/src/ccsatsendssfu.cpp Fri Feb 19 23:59:33 2010 +0200
+++ b/telephonyserverplugins/simatktsy/tests/src/ccsatsendssfu.cpp Fri Mar 12 15:49:38 2010 +0200
@@ -277,11 +277,22 @@
rsp.iAdditionalInfo.Zero();
rsp.iAdditionalInfo.Append(KSSOpCodeAndParameters);
- // defect, first byte from additional info is deleted in CSatNotifySendSs::TerminalResponseL()
+// first byte from additional info is deleted in CSatNotifySendSs::TerminalResponseL()
+// Let MockLTsy expect this behaviour
+ rsp.iAdditionalInfo.Delete( 0, 1 );
- GenerateTerminalResponseL(KCmdId, KSendSs, KCmdDetails,
- RSat::ESendSs, rspPckg, rsp.iAdditionalInfo,
- rsp.iGeneralResult);
+ PrepareTerminalResponseMockDataL(
+ KCmdId,
+ KSendSs,
+ KCmdDetails,
+ rsp.iAdditionalInfo,
+ rsp.iGeneralResult,
+ KNullDesC8);
+
+ rsp.iAdditionalInfo.Zero();
+ rsp.iAdditionalInfo.Append( KSSOpCodeAndParameters );
+
+ TerminalResponseL( RSat::ESendSs, rspPckg);
AssertMockLtsyStatusL();
@@ -885,15 +896,43 @@
if ( rsp->iInfoType == RSat::KSendSsInfo )
{
rsp->iAdditionalInfo.Append( KSSOpCodeAndParameters );
+
+// first byte from additional info is deleted in CSatNotifySendSs::TerminalResponseL()
+// Let MockLTsy expect this behaviour
+ if( rsp->iGeneralResult == RSat::KSuccess ||
+ rsp->iGeneralResult == RSat::KPartialComprehension ||
+ rsp->iGeneralResult == RSat::KMissingInformation ||
+ rsp->iGeneralResult == RSat::KSuccessRequestedIconNotDisplayed )
+ {
+ rsp->iAdditionalInfo.Delete( 0, 1 );
+ }
}
else
{
rsp->iAdditionalInfo.Append( KResponsesToTest[i].iAdditionalInfo );
}
}
- GenerateTerminalResponseL(KCmdId, KSendSs, KCmdDetails,
- RSat::ESendSs, *rspPckg, rsp->iAdditionalInfo,
- rsp->iGeneralResult, KNullDesC8, KResponsesToTest[i].iExpectedResult);
+ PrepareTerminalResponseMockDataL(
+ KCmdId,
+ KSendSs,
+ KCmdDetails,
+ rsp->iAdditionalInfo,
+ rsp->iGeneralResult,
+ KNullDesC8,
+ KResponsesToTest[i].iExpectedResult);
+
+ if ( (!KResponsesToTest[i].iIntentionallyOmmitAdditionalInfo && rsp->iInfoType == RSat::KSendSsInfo )
+ &&
+ (rsp->iGeneralResult == RSat::KSuccess ||
+ rsp->iGeneralResult == RSat::KPartialComprehension ||
+ rsp->iGeneralResult == RSat::KMissingInformation ||
+ rsp->iGeneralResult == RSat::KSuccessRequestedIconNotDisplayed) )
+ {
+ rsp->iAdditionalInfo.Zero();
+ rsp->iAdditionalInfo.Append( KSSOpCodeAndParameters );
+ }
+
+ TerminalResponseL( RSat::ESendSs, *rspPckg, KResponsesToTest[i].iExpectedResult);
}
else
{
@@ -901,10 +940,18 @@
rsp->iGeneralResult = RSat::KSuccess;
rsp->iInfoType = RSat::KSendSsInfo;
rsp->iAdditionalInfo.Append(KSSOpCodeAndParameters);
+
+// first byte from additional info is deleted in CSatNotifySendSs::TerminalResponseL()
+// Let MockLTsy expect this behaviour
+
+ rsp->iAdditionalInfo.Delete( 0, 1 );
PrepareTerminalResponseMockDataL( KCmdId, KSendSs, KCmdDetails,
rsp->iAdditionalInfo, rsp->iGeneralResult, KNullDesC8, KErrUnknown);
+ rsp->iAdditionalInfo.Zero();
+ rsp->iAdditionalInfo.Append( KSSOpCodeAndParameters );
+
TerminalResponseL( RSat::ESendSs, *rspPckg, KErrUnknown);
}