|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 /** |
|
17 @SYMTestCaseID MSG-SMSCLIENTMTM-0243-6 |
|
18 @SYMTestType UT |
|
19 @SYMTestPriority High |
|
20 @SYMPREQ 234, other |
|
21 @SYMTestCaseDesc Creates a SMS with locale UTC offset 0, sets UTC offset to -8, reply the SMS |
|
22 @SYMTestActions Checks the timestamps of original and replied SMS. (also check original test actions of T_SMCM1) |
|
23 @SYMTestExpectedResults The timestamp of the original SMS should be smaller than the timestamp of the replied SMS. |
|
24 */ |
|
25 |
|
26 |
|
27 #include "smcmstepreply.h" |
|
28 |
|
29 #include <msvuids.h> |
|
30 #include <smutset.h> |
|
31 #include <smuthdr.h> |
|
32 |
|
33 #include <csmsaccount.h> |
|
34 |
|
35 CSMCMStepReply::~CSMCMStepReply( ) |
|
36 { |
|
37 |
|
38 } |
|
39 |
|
40 CSMCMStepReply::CSMCMStepReply( ) |
|
41 { |
|
42 SetTestStepName( KSMCMStepReply ); |
|
43 } |
|
44 |
|
45 // @return - TVerdict code |
|
46 // Override of base class pure virtual |
|
47 TVerdict CSMCMStepReply::doTestStepL( ) |
|
48 { |
|
49 INFO_PRINTF1( _L( "CSMCMStepReply::doTestStepL( )" ) ); |
|
50 |
|
51 SetTestStepResult( EFail ); |
|
52 |
|
53 ChangeLocale( KUTC0 ); |
|
54 |
|
55 SetSettingsL( ); |
|
56 |
|
57 TMessageSettings settings; |
|
58 settings.iOperation = EOperationReply; |
|
59 settings.iOriginalBoxId = KMsvGlobalInBoxIndexEntryId; |
|
60 settings.iOriginalSmsPDUType = CSmsPDU::ESmsDeliver; |
|
61 settings.iOriginalBioType = 0; |
|
62 |
|
63 TMsvId entryId = CreateMessageAndEntryL( KUserDataOriginal, settings ); |
|
64 |
|
65 ChangeLocale( KUTCMin8 ); |
|
66 |
|
67 SetTestStepResult( PerformTestL( entryId, KUserDataReply, settings ) ); |
|
68 |
|
69 ChangeLocale( KUTC0 ); |
|
70 |
|
71 return TestStepResult( ); |
|
72 |
|
73 } |
|
74 |