equal
deleted
inserted
replaced
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2005-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
900 CleanupStack::PushL(smsMessage); |
900 CleanupStack::PushL(smsMessage); |
901 |
901 |
902 //Get the operations |
902 //Get the operations |
903 CSmsReplyAddressOperations& corruptReplyOperations = static_cast<CSmsReplyAddressOperations&>(smsMessage->GetOperationsForIEL(CSmsInformationElement::ESmsReplyAddressFormat)); |
903 CSmsReplyAddressOperations& corruptReplyOperations = static_cast<CSmsReplyAddressOperations&>(smsMessage->GetOperationsForIEL(CSmsInformationElement::ESmsReplyAddressFormat)); |
904 //Check has reply address |
904 //Check has reply address |
905 result=deliverMultipleReplyOperations.ContainsReplyAddressIEL(); |
905 result=corruptReplyOperations.ContainsReplyAddressIEL(); |
906 TEST(result==1); |
906 TEST(result==1); |
907 //Get address |
907 //Get address |
908 TRAP(err,replyAddressHBuf=corruptReplyOperations.GetReplyAddressL()); |
908 TRAP(err,replyAddressHBuf=corruptReplyOperations.GetReplyAddressL()); |
909 TEST(err==KErrCorrupt); |
909 TEST(err==KErrCorrupt); |
910 CleanupStack::PopAndDestroy(smsMessage); |
910 CleanupStack::PopAndDestroy(smsMessage); |