24
|
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 |
// The TEFUnit header file which tests the PhoneBookStore
|
|
15 |
// functional unit of the Common TSY.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
#ifndef CCTSYPHONEBOOKSTOREFU_H
|
|
20 |
#define CCTSYPHONEBOOKSTOREFU_H
|
|
21 |
|
|
22 |
#include <test/tefunit.h>
|
|
23 |
|
|
24 |
#include <etelmm.h>
|
|
25 |
#include <etelmmcs.h>
|
|
26 |
#include <mpbutil.h>
|
|
27 |
#include <ctsy/serviceapi/cmmgsmphonestorageutility.h>
|
|
28 |
#include "cctsycomponenttestbase.h"
|
|
29 |
|
|
30 |
class CCTsyPhoneBookStoreFU : public CCtsyComponentTestBase
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
// Create a suite of all the tests
|
|
34 |
static CTestSuite* CreateSuiteL(const TDesC& aName);
|
|
35 |
|
|
36 |
public:
|
|
37 |
// Individual test steps
|
|
38 |
|
|
39 |
void TestRead0001L();
|
|
40 |
void TestRead0001bL();
|
|
41 |
void TestRead0001cL();
|
|
42 |
void TestRead0002L();
|
|
43 |
void TestRead0003L();
|
|
44 |
void TestRead0004L();
|
|
45 |
void TestRead0004bL();
|
|
46 |
void TestRead0005L();
|
|
47 |
void TestRead0006L();
|
|
48 |
void TestRead0007L();
|
|
49 |
void TestRead0008L();
|
|
50 |
void TestRead0009L();
|
|
51 |
void TestRead00010L();
|
|
52 |
void TestRead00011L();
|
|
53 |
void TestRead00012L();
|
|
54 |
void TestRead00013L();
|
|
55 |
void TestRead00014L();
|
|
56 |
void TestRead00015L();
|
|
57 |
void TestRead00016L();
|
|
58 |
void TestRead00017L();
|
|
59 |
void TestRead00018L();
|
|
60 |
void TestRead00019L();
|
|
61 |
void TestRead00020L();
|
|
62 |
void TestRead00021L();
|
|
63 |
void TestRead00022L();
|
|
64 |
void TestRead00023L();
|
|
65 |
void TestRead00024L();
|
|
66 |
void TestRead00025L();
|
|
67 |
void TestRead00026L();
|
|
68 |
void TestRead00027L();
|
|
69 |
void TestRead00028L();
|
|
70 |
void TestRead00029L();
|
|
71 |
void TestRead00030L();
|
|
72 |
void TestWrite0001L();
|
|
73 |
void TestWrite0002L();
|
|
74 |
void TestWrite0003L();
|
|
75 |
void TestWrite0004L();
|
|
76 |
void TestWrite0005L();
|
|
77 |
void TestWrite0006L();
|
|
78 |
void TestWrite0007L();
|
|
79 |
void TestWrite0008L();
|
|
80 |
void TestWrite0009L();
|
|
81 |
void TestWrite00010L();
|
|
82 |
void TestWrite00011L();
|
|
83 |
void TestWrite00016L();
|
|
84 |
void TestWrite00017L();
|
|
85 |
void TestWrite00018L();
|
|
86 |
void TestWrite00019L();
|
|
87 |
void TestWrite00020L();
|
|
88 |
void TestWrite00021L();
|
|
89 |
void TestWrite00022L();
|
|
90 |
void TestWrite00023L();
|
|
91 |
void TestWrite00024L();
|
|
92 |
void TestWrite00025L();
|
|
93 |
void TestWrite00026L();
|
|
94 |
void TestWrite00027L();
|
|
95 |
void TestWrite00028L();
|
|
96 |
void TestWrite00029L();
|
|
97 |
void TestWrite00030L();
|
|
98 |
void TestNotifyStoreEvent0001L();
|
|
99 |
void TestNotifyStoreEvent0002L();
|
|
100 |
void TestNotifyStoreEvent0004L();
|
|
101 |
void TestNotifyStoreEvent0006L();
|
|
102 |
void TestNotifyStoreEvent0007L();
|
|
103 |
void TestNotifyStoreEvent0009L();
|
|
104 |
void TestNotifyStoreEvent00011L();
|
|
105 |
void TestNotifyStoreEvent00012L();
|
|
106 |
void TestNotifyStoreEvent00016L();
|
|
107 |
void TestNotifyStoreEvent00017L();
|
|
108 |
void TestNotifyStoreEvent00019L();
|
|
109 |
void TestNotifyStoreEvent00021L();
|
|
110 |
void TestNotifyStoreEvent00022L();
|
|
111 |
void TestNotifyStoreEvent00024L();
|
|
112 |
void TestNotifyStoreEvent00026L();
|
|
113 |
void TestNotifyStoreEvent00027L();
|
|
114 |
void TestNotifyStoreEvent00029L();
|
|
115 |
void TestDelete0001L();
|
|
116 |
void TestDelete0002L();
|
|
117 |
void TestDelete0003L();
|
|
118 |
void TestDelete0004L();
|
|
119 |
void TestDelete0005L();
|
|
120 |
void TestDelete0006L();
|
|
121 |
void TestDelete0007L();
|
|
122 |
void TestDelete0008L();
|
|
123 |
void TestDelete0009L();
|
|
124 |
void TestDelete00010L();
|
|
125 |
void TestDelete00011L();
|
|
126 |
void TestDelete00016L();
|
|
127 |
void TestDelete00017L();
|
|
128 |
void TestDelete00018L();
|
|
129 |
void TestDelete00019L();
|
|
130 |
void TestDelete00020L();
|
|
131 |
void TestDelete00021L();
|
|
132 |
void TestDelete00022L();
|
|
133 |
void TestDelete00023L();
|
|
134 |
void TestDelete00024L();
|
|
135 |
void TestDelete00025L();
|
|
136 |
void TestDelete00026L();
|
|
137 |
void TestDelete00027L();
|
|
138 |
void TestDelete00028L();
|
|
139 |
void TestDelete00029L();
|
|
140 |
void TestDelete00030L();
|
|
141 |
void TestGetInfo0001L();
|
|
142 |
void TestGetInfo0001bL();
|
|
143 |
//void TestGetInfo0002L();
|
|
144 |
void TestGetInfo0003L();
|
|
145 |
void TestGetInfo0004L();
|
|
146 |
//void TestGetInfo0005L();
|
|
147 |
void TestGetInfo0006L();
|
|
148 |
void TestGetInfo0006bL();
|
|
149 |
void TestGetInfo0006cL();
|
|
150 |
//void TestGetInfo0007L();
|
|
151 |
void TestGetInfo0008L();
|
|
152 |
void TestGetInfo0009L();
|
|
153 |
//void TestGetInfo00010L();
|
|
154 |
void TestGetInfo00011L();
|
|
155 |
void TestGetInfo00011bL();
|
|
156 |
void TestGetInfo00011cL();
|
|
157 |
void TestGetInfo00012L();
|
|
158 |
void TestGetInfo00013L();
|
|
159 |
void TestGetInfo00014L();
|
|
160 |
void TestGetInfo00015L();
|
|
161 |
void TestGetInfo00016L();
|
|
162 |
void TestGetInfo00016bL();
|
|
163 |
void TestGetInfo00017L();
|
|
164 |
void TestGetInfo00018L();
|
|
165 |
void TestGetInfo00019L();
|
|
166 |
void TestGetInfo00020L();
|
|
167 |
void TestGetInfo00021L();
|
|
168 |
void TestGetInfo00021bL();
|
|
169 |
//void TestGetInfo00022L();
|
|
170 |
void TestGetInfo00023L();
|
|
171 |
void TestGetInfo00024L();
|
|
172 |
//void TestGetInfo00025L();
|
|
173 |
void TestGetInfo00026L();
|
|
174 |
void TestGetInfo00026bL();
|
|
175 |
//void TestGetInfo00027L();
|
|
176 |
void TestGetInfo00028L();
|
|
177 |
void TestGetInfo00029L();
|
|
178 |
//void TestGetInfo00030L();
|
|
179 |
void TestDeleteAll0001L();
|
|
180 |
void TestDeleteAll0002L();
|
|
181 |
//void TestDeleteAll0003L();
|
|
182 |
void TestDeleteAll0004L();
|
|
183 |
void TestDeleteAll0005L();
|
|
184 |
void TestDeleteAll0006L();
|
|
185 |
void TestDeleteAll0007L();
|
|
186 |
//void TestDeleteAll0008L();
|
|
187 |
void TestDeleteAll0009L();
|
|
188 |
void TestDeleteAll00010L();
|
|
189 |
void TestDeleteAll00011L();
|
|
190 |
void TestDeleteAll00016L();
|
|
191 |
void TestDeleteAll00017L();
|
|
192 |
//void TestDeleteAll00018L();
|
|
193 |
void TestDeleteAll00019L();
|
|
194 |
void TestDeleteAll00020L();
|
|
195 |
void TestDeleteAll00021L();
|
|
196 |
void TestDeleteAll00022L();
|
|
197 |
//void TestDeleteAll00023L();
|
|
198 |
void TestDeleteAll00024L();
|
|
199 |
void TestDeleteAll00025L();
|
|
200 |
void TestDeleteAll00026L();
|
|
201 |
void TestDeleteAll00027L();
|
|
202 |
//void TestDeleteAll00028L();
|
|
203 |
void TestDeleteAll00029L();
|
|
204 |
void TestDeleteAll00030L();
|
|
205 |
//void TestGetInfo0002();
|
|
206 |
//void TestGetInfo0005();
|
|
207 |
//void TestGetInfo0007();
|
|
208 |
//void TestGetInfo00010();
|
|
209 |
//void TestGetInfo00022();
|
|
210 |
//void TestGetInfo00025();
|
|
211 |
//void TestGetInfo00027();
|
|
212 |
//void TestGetInfo00030();
|
|
213 |
//void TestDeleteAll0003();
|
|
214 |
//void TestDeleteAll0008();
|
|
215 |
//void TestDeleteAll00013();
|
|
216 |
//void TestDeleteAll00018();
|
|
217 |
//void TestDeleteAll00023();
|
|
218 |
//void TestDeleteAll00028();
|
|
219 |
|
|
220 |
void Test2Read0001L();
|
|
221 |
void Test2Read0002L();
|
|
222 |
void Test2Read0003L();
|
|
223 |
void Test2Read0004L();
|
|
224 |
void Test2Read0005L();
|
|
225 |
void Test2Read0006L();
|
|
226 |
|
|
227 |
void Test2Write0001L();
|
|
228 |
void Test2Write0002L();
|
|
229 |
void Test2Write0003L();
|
|
230 |
void Test2Write0004L();
|
|
231 |
void Test2Write0005L();
|
|
232 |
void Test2Write0006L();
|
|
233 |
|
|
234 |
void Test3Read0001L();
|
|
235 |
void Test3Read0002L();
|
|
236 |
void Test3Read0003L();
|
|
237 |
|
|
238 |
void TestOpen0001L();
|
|
239 |
|
|
240 |
private:
|
|
241 |
|
|
242 |
void OpenPhone2L(TInt aSimError = KErrNone);
|
|
243 |
|
|
244 |
void ValidateReadEntryL(TInt aNumEntries, TInt aStartIndex, CPhoneBookBuffer& aPBBuffer, const TDesC& aPBName, CPhoneBookStoreEntry* aEntryPtr);
|
|
245 |
void AuxRead1L(const TDesC& aName);
|
|
246 |
void AuxRead2L(const TDesC& aName);
|
|
247 |
void AuxRead3L(const TDesC& aName);
|
|
248 |
void AuxRead4L(const TDesC& aName);
|
|
249 |
void AuxRead5L(const TDesC& aName);
|
|
250 |
|
|
251 |
void AuxWrite1L(const TDesC& aName);
|
|
252 |
void AuxWrite2L(const TDesC& aName);
|
|
253 |
void AuxWrite3L(const TDesC& aName);
|
|
254 |
void AuxWrite4L(const TDesC& aName);
|
|
255 |
void AuxWrite5L(const TDesC& aName);
|
|
256 |
|
|
257 |
void AuxNotifyStoreEvent1L(const TDesC& aName);
|
|
258 |
void AuxNotifyStoreEvent2L(const TDesC& aName);
|
|
259 |
void AuxNotifyStoreEvent4L(const TDesC& aName);
|
|
260 |
|
|
261 |
void AuxDelete1L(const TDesC& aName);
|
|
262 |
void AuxDelete2L(const TDesC& aName);
|
|
263 |
void AuxDelete3L(const TDesC& aName);
|
|
264 |
void AuxDelete4L(const TDesC& aName);
|
|
265 |
void AuxDelete5L(const TDesC& aName);
|
|
266 |
|
|
267 |
void AuxGetInfo1L(const TDesC& aName);
|
|
268 |
void AuxGetInfo1bL(const TDesC& aName);
|
|
269 |
void AuxGetInfo1cL();
|
|
270 |
void AuxGetInfo2L(const TDesC& aName);
|
|
271 |
void AuxGetInfo3L(const TDesC& aName);
|
|
272 |
void AuxGetInfo4L(const TDesC& aName);
|
|
273 |
void AuxGetInfo5L(const TDesC& aName);
|
|
274 |
|
|
275 |
void AuxDeleteAll1L(const TDesC& aName);
|
|
276 |
void AuxDeleteAll2L(const TDesC& aName);
|
|
277 |
void AuxDeleteAll4L(const TDesC& aName);
|
|
278 |
void AuxDeleteAll5L(const TDesC& aName);
|
|
279 |
|
|
280 |
void Aux2ReadL(const TDesC& aName);
|
|
281 |
void Aux2WriteL(const TDesC& aName);
|
|
282 |
|
|
283 |
void SetPhonebookNumOfEntries( CStorageInfoData& aStorageData, TInt aNumOfEntries );
|
|
284 |
void SetPhonebookNumOfEntriesAndInitPhonebookL( TName aName, TInt aNumOfEntries );
|
|
285 |
|
|
286 |
void AuxNotifySDNStoreEvent1L();
|
|
287 |
|
|
288 |
void FillPBEntry(CPhoneBookStoreEntry* aEntryPtr);
|
|
289 |
}; // class CCTsyPhoneBookStoreFU
|
|
290 |
|
|
291 |
#endif // CCTSYPHONEBOOKSTOREFU_H
|
|
292 |
|