|
1 // Copyright (c) 2007-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 // Test step declarations for the SMSPStore functional unit. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @internalTechnology |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef __CCTSYINTEGRATIONTESTSMSPSTORE_H__ |
|
24 #define __CCTSYINTEGRATIONTESTSMSPSTORE_H__ |
|
25 |
|
26 |
|
27 #include <test/testexecutestepbase.h> |
|
28 #include "cctsyintegrationtestsuitebase.h" |
|
29 #include "tsmsmessagingtsytesthelper.h" |
|
30 #include "ttsytesthelperbase.h" |
|
31 |
|
32 class CEtelSessionMgr; |
|
33 |
|
34 |
|
35 class CCTSYIntegrationTestSMSPStoreBase : public CCTSYIntegrationTestSuiteStepBase |
|
36 { |
|
37 public: |
|
38 |
|
39 CCTSYIntegrationTestSMSPStoreBase(CEtelSessionMgr& aEtelSessionMgr); |
|
40 virtual ~CCTSYIntegrationTestSMSPStoreBase(); |
|
41 |
|
42 protected: |
|
43 |
|
44 // Declare a TSY test helper here if required |
|
45 TSmsMessagingTsyTestHelper iSmsMessagingTestHelper; |
|
46 TBool CompareEntries(const RMobileSmsMessaging::TMobileSmspEntryV1 &aEntry1, |
|
47 const RMobileSmsMessaging::TMobileSmspEntryV1 &aEntry2); |
|
48 // TInt GetListEntriesL(RMobileSmsMessaging& aSmsMessaging, RArray<RMobileSmsMessaging::TMobileSmspEntryV1> &aEntryArray); |
|
49 // void RestoreSMSPListL(RMobileSmsMessaging& aSmsMessagingStore,TInt &aListCountAtStart, RArray<RMobileSmsMessaging::TMobileSmspEntryV1> &aEntryArray); |
|
50 }; // class CCTSYIntegrationTestSMSPStoreBase |
|
51 |
|
52 |
|
53 class CCTSYIntegrationTestSMSPStore0001 : public CCTSYIntegrationTestSMSPStoreBase |
|
54 { |
|
55 public: |
|
56 |
|
57 CCTSYIntegrationTestSMSPStore0001(CEtelSessionMgr& aEtelSessionMgr); |
|
58 ~CCTSYIntegrationTestSMSPStore0001(); |
|
59 virtual TVerdict doTestStepL(); |
|
60 static TPtrC GetTestStepName(); |
|
61 |
|
62 private: |
|
63 |
|
64 }; // class CCTSYIntegrationTestSMSPStore0001 |
|
65 |
|
66 |
|
67 class CCTSYIntegrationTestSMSPStore0002 : public CCTSYIntegrationTestSMSPStoreBase |
|
68 { |
|
69 public: |
|
70 |
|
71 CCTSYIntegrationTestSMSPStore0002(CEtelSessionMgr& aEtelSessionMgr); |
|
72 ~CCTSYIntegrationTestSMSPStore0002(); |
|
73 virtual TVerdict doTestStepL(); |
|
74 static TPtrC GetTestStepName(); |
|
75 |
|
76 private: |
|
77 |
|
78 }; // class CCTSYIntegrationTestSMSPStore0002 |
|
79 |
|
80 |
|
81 class CCTSYIntegrationTestSMSPStore0003 : public CCTSYIntegrationTestSMSPStoreBase |
|
82 { |
|
83 public: |
|
84 |
|
85 CCTSYIntegrationTestSMSPStore0003(CEtelSessionMgr& aEtelSessionMgr); |
|
86 ~CCTSYIntegrationTestSMSPStore0003(); |
|
87 virtual TVerdict doTestStepL(); |
|
88 static TPtrC GetTestStepName(); |
|
89 |
|
90 private: |
|
91 |
|
92 }; // class CCTSYIntegrationTestSMSPStore0003 |
|
93 |
|
94 |
|
95 class CCTSYIntegrationTestSMSPStore0004 : public CCTSYIntegrationTestSMSPStoreBase |
|
96 { |
|
97 public: |
|
98 |
|
99 CCTSYIntegrationTestSMSPStore0004(CEtelSessionMgr& aEtelSessionMgr); |
|
100 ~CCTSYIntegrationTestSMSPStore0004(); |
|
101 virtual TVerdict doTestStepL(); |
|
102 static TPtrC GetTestStepName(); |
|
103 |
|
104 private: |
|
105 |
|
106 }; // class CCTSYIntegrationTestSMSPStore0004 |
|
107 |
|
108 |
|
109 class CCTSYIntegrationTestSMSPStore0005 : public CCTSYIntegrationTestSMSPStoreBase |
|
110 { |
|
111 public: |
|
112 |
|
113 CCTSYIntegrationTestSMSPStore0005(CEtelSessionMgr& aEtelSessionMgr); |
|
114 ~CCTSYIntegrationTestSMSPStore0005(); |
|
115 virtual TVerdict doTestStepL(); |
|
116 static TPtrC GetTestStepName(); |
|
117 |
|
118 private: |
|
119 |
|
120 }; // class CCTSYIntegrationTestSMSPStore0005 |
|
121 |
|
122 |
|
123 class CCTSYIntegrationTestSMSPStore0006 : public CCTSYIntegrationTestSMSPStoreBase |
|
124 { |
|
125 public: |
|
126 |
|
127 CCTSYIntegrationTestSMSPStore0006(CEtelSessionMgr& aEtelSessionMgr); |
|
128 ~CCTSYIntegrationTestSMSPStore0006(); |
|
129 virtual TVerdict doTestStepL(); |
|
130 static TPtrC GetTestStepName(); |
|
131 |
|
132 private: |
|
133 |
|
134 }; // class CCTSYIntegrationTestSMSPStore0006 |
|
135 |
|
136 |
|
137 class CCTSYIntegrationTestSMSPStore0007 : public CCTSYIntegrationTestSMSPStoreBase |
|
138 { |
|
139 public: |
|
140 |
|
141 CCTSYIntegrationTestSMSPStore0007(CEtelSessionMgr& aEtelSessionMgr); |
|
142 ~CCTSYIntegrationTestSMSPStore0007(); |
|
143 virtual TVerdict doTestStepL(); |
|
144 static TPtrC GetTestStepName(); |
|
145 |
|
146 private: |
|
147 |
|
148 }; // class CCTSYIntegrationTestSMSPStore0007 |
|
149 class TBackupList: public TTsyTestHelperBase |
|
150 { |
|
151 public: |
|
152 TBackupList(CCTSYIntegrationTestSuiteStepBase &aTestStep, |
|
153 RMobileSmsMessaging &aSmspStore); |
|
154 TBool BackupL(TInt &aListCount); |
|
155 operator TCleanupItem(); |
|
156 |
|
157 private: |
|
158 TBool iValid; |
|
159 TInt iListCount; |
|
160 RMobileSmsMessaging &iSmsMessaging; |
|
161 RArray<RMobileSmsMessaging::TMobileSmspEntryV1> iEntryArray; |
|
162 static void DoCleanupL(TAny* aPtr); |
|
163 void CleanupL(); |
|
164 }; |
|
165 |
|
166 |
|
167 #endif // __CCTSYINTEGRATIONTESTSMSPSTORE_H__ |