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 |
// Test step declarations for the ONStore functional unit.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
/**
|
|
19 |
@internalTechnology
|
|
20 |
*/
|
|
21 |
|
|
22 |
#ifndef __CCTSYINTEGRATIONTESTONSTORE_H__
|
|
23 |
#define __CCTSYINTEGRATIONTESTONSTORE_H__
|
|
24 |
|
|
25 |
#include <test/testexecutestepbase.h>
|
|
26 |
#include "cctsyintegrationtestsuitebase.h"
|
|
27 |
#include "tsimtsytesthelper.h"
|
|
28 |
#include "tphonetsytesthelper.h"
|
|
29 |
#include "listretrievalhelpers.h"
|
|
30 |
|
|
31 |
class CEtelSessionMgr;
|
|
32 |
|
|
33 |
class CCTSYIntegrationTestONStoreBase : public CCTSYIntegrationTestSuiteStepBase
|
|
34 |
{
|
|
35 |
public:
|
|
36 |
|
|
37 |
CCTSYIntegrationTestONStoreBase(CEtelSessionMgr& aEtelSessionMgr);
|
|
38 |
virtual ~CCTSYIntegrationTestONStoreBase();
|
|
39 |
|
|
40 |
protected:
|
|
41 |
|
|
42 |
|
|
43 |
TBool CompareEntries(const RMobileONStore::TMobileONEntryV1 &aEntry1,
|
|
44 |
const RMobileONStore::TMobileONEntryV1 &aEntry2);
|
|
45 |
TBool GetUsedEntriesL(RMobileONStore& aOnStore,RMobilePhone& aPhone,TInt& aUsedEntries);
|
|
46 |
TBool GetUsedandTotalEntriesL(RMobileONStore& aOnStore,RMobilePhone& aPhone,
|
|
47 |
TInt& aUsedEntries,TInt& aTotalEntries);
|
|
48 |
TInt GetNumberOfUsedAndTotalEntriesInStoreL(
|
|
49 |
RMobileONStore& aOnStore,
|
|
50 |
RMobilePhone& aPhone,
|
|
51 |
TInt& aUsedEntries,
|
|
52 |
TInt& aUsedEntries2,
|
|
53 |
TInt& aTotalEntries,
|
|
54 |
TInt& aTotalEntries2);
|
|
55 |
TBool OpenADNStoreL();
|
|
56 |
|
|
57 |
// Declare a TSY test helper here if required
|
|
58 |
TSimTsyTestHelper iSimTestHelper;
|
|
59 |
TPhoneTsyTestHelper iPhoneTsyTestHelper;
|
|
60 |
}; // class CCTSYIntegrationTestONStoreBase
|
|
61 |
|
|
62 |
|
|
63 |
class CCTSYIntegrationTestONStore0001 : public CCTSYIntegrationTestONStoreBase
|
|
64 |
{
|
|
65 |
public:
|
|
66 |
|
|
67 |
CCTSYIntegrationTestONStore0001(CEtelSessionMgr& aEtelSessionMgr);
|
|
68 |
~CCTSYIntegrationTestONStore0001();
|
|
69 |
virtual TVerdict doTestStepL();
|
|
70 |
static TPtrC GetTestStepName();
|
|
71 |
|
|
72 |
private:
|
|
73 |
|
|
74 |
}; // class CCTSYIntegrationTestONStore0001
|
|
75 |
|
|
76 |
|
|
77 |
class CCTSYIntegrationTestONStore0002 : public CCTSYIntegrationTestONStoreBase
|
|
78 |
{
|
|
79 |
public:
|
|
80 |
|
|
81 |
CCTSYIntegrationTestONStore0002(CEtelSessionMgr& aEtelSessionMgr);
|
|
82 |
~CCTSYIntegrationTestONStore0002();
|
|
83 |
virtual TVerdict doTestStepL();
|
|
84 |
static TPtrC GetTestStepName();
|
|
85 |
|
|
86 |
private:
|
|
87 |
|
|
88 |
}; // class CCTSYIntegrationTestONStore0002
|
|
89 |
|
|
90 |
|
|
91 |
class CCTSYIntegrationTestONStore0003 : public CCTSYIntegrationTestONStoreBase
|
|
92 |
{
|
|
93 |
public:
|
|
94 |
|
|
95 |
CCTSYIntegrationTestONStore0003(CEtelSessionMgr& aEtelSessionMgr);
|
|
96 |
~CCTSYIntegrationTestONStore0003();
|
|
97 |
virtual TVerdict doTestStepL();
|
|
98 |
static TPtrC GetTestStepName();
|
|
99 |
|
|
100 |
private:
|
|
101 |
|
|
102 |
}; // class CCTSYIntegrationTestONStore0003
|
|
103 |
|
|
104 |
|
|
105 |
class CCTSYIntegrationTestONStore0004 : public CCTSYIntegrationTestONStoreBase
|
|
106 |
{
|
|
107 |
public:
|
|
108 |
|
|
109 |
CCTSYIntegrationTestONStore0004(CEtelSessionMgr& aEtelSessionMgr);
|
|
110 |
~CCTSYIntegrationTestONStore0004();
|
|
111 |
virtual TVerdict doTestStepL();
|
|
112 |
static TPtrC GetTestStepName();
|
|
113 |
|
|
114 |
private:
|
|
115 |
|
|
116 |
}; // class CCTSYIntegrationTestONStore0004
|
|
117 |
|
|
118 |
|
|
119 |
class CCTSYIntegrationTestONStore0005 : public CCTSYIntegrationTestONStoreBase
|
|
120 |
{
|
|
121 |
public:
|
|
122 |
|
|
123 |
CCTSYIntegrationTestONStore0005(CEtelSessionMgr& aEtelSessionMgr);
|
|
124 |
~CCTSYIntegrationTestONStore0005();
|
|
125 |
virtual TVerdict doTestStepL();
|
|
126 |
static TPtrC GetTestStepName();
|
|
127 |
|
|
128 |
private:
|
|
129 |
|
|
130 |
}; // class CCTSYIntegrationTestONStore0005
|
|
131 |
|
|
132 |
|
|
133 |
class CCTSYIntegrationTestONStore0006 : public CCTSYIntegrationTestONStoreBase
|
|
134 |
{
|
|
135 |
public:
|
|
136 |
|
|
137 |
CCTSYIntegrationTestONStore0006(CEtelSessionMgr& aEtelSessionMgr);
|
|
138 |
~CCTSYIntegrationTestONStore0006();
|
|
139 |
virtual TVerdict doTestStepL();
|
|
140 |
static TPtrC GetTestStepName();
|
|
141 |
|
|
142 |
private:
|
|
143 |
|
|
144 |
}; // class CCTSYIntegrationTestONStore0006
|
|
145 |
|
|
146 |
|
|
147 |
class CCTSYIntegrationTestONStore0007 : public CCTSYIntegrationTestONStoreBase
|
|
148 |
{
|
|
149 |
public:
|
|
150 |
|
|
151 |
CCTSYIntegrationTestONStore0007(CEtelSessionMgr& aEtelSessionMgr);
|
|
152 |
~CCTSYIntegrationTestONStore0007();
|
|
153 |
virtual TVerdict doTestStepL();
|
|
154 |
static TPtrC GetTestStepName();
|
|
155 |
|
|
156 |
private:
|
|
157 |
void WriteEntryAndCheckThatUsedEntriesDidNotChangedL(
|
|
158 |
RMobileONStore& aStore, TInt aIndex, const TDesC& aNumber);
|
|
159 |
}; // class CCTSYIntegrationTestONStore0007
|
|
160 |
|
|
161 |
|
|
162 |
class CCTSYIntegrationTestONStore0008 : public CCTSYIntegrationTestONStoreBase
|
|
163 |
{
|
|
164 |
public:
|
|
165 |
|
|
166 |
CCTSYIntegrationTestONStore0008(CEtelSessionMgr& aEtelSessionMgr);
|
|
167 |
~CCTSYIntegrationTestONStore0008();
|
|
168 |
virtual TVerdict doTestStepL();
|
|
169 |
static TPtrC GetTestStepName();
|
|
170 |
|
|
171 |
private:
|
|
172 |
|
|
173 |
}; // class CCTSYIntegrationTestONStore0008
|
|
174 |
|
|
175 |
|
|
176 |
class CCTSYIntegrationTestONStore0009 : public CCTSYIntegrationTestONStoreBase
|
|
177 |
{
|
|
178 |
public:
|
|
179 |
|
|
180 |
CCTSYIntegrationTestONStore0009(CEtelSessionMgr& aEtelSessionMgr);
|
|
181 |
~CCTSYIntegrationTestONStore0009();
|
|
182 |
virtual TVerdict doTestStepL();
|
|
183 |
static TPtrC GetTestStepName();
|
|
184 |
|
|
185 |
private:
|
|
186 |
|
|
187 |
}; // class CCTSYIntegrationTestONStore0009
|
|
188 |
|
|
189 |
|
|
190 |
class CCTSYIntegrationTestONStore0010 : public CCTSYIntegrationTestONStoreBase
|
|
191 |
{
|
|
192 |
public:
|
|
193 |
|
|
194 |
CCTSYIntegrationTestONStore0010(CEtelSessionMgr& aEtelSessionMgr);
|
|
195 |
~CCTSYIntegrationTestONStore0010();
|
|
196 |
virtual TVerdict doTestStepL();
|
|
197 |
static TPtrC GetTestStepName();
|
|
198 |
|
|
199 |
private:
|
|
200 |
|
|
201 |
}; // class CCTSYIntegrationTestONStore0010
|
|
202 |
|
|
203 |
|
|
204 |
class CCTSYIntegrationTestONStore0011 : public CCTSYIntegrationTestONStoreBase
|
|
205 |
{
|
|
206 |
public:
|
|
207 |
|
|
208 |
CCTSYIntegrationTestONStore0011(CEtelSessionMgr& aEtelSessionMgr);
|
|
209 |
~CCTSYIntegrationTestONStore0011();
|
|
210 |
virtual TVerdict doTestStepL();
|
|
211 |
static TPtrC GetTestStepName();
|
|
212 |
|
|
213 |
private:
|
|
214 |
|
|
215 |
}; // class CCTSYIntegrationTestONStore0011
|
|
216 |
|
|
217 |
|
|
218 |
class CCTSYIntegrationTestONStore0012 : public CCTSYIntegrationTestONStoreBase
|
|
219 |
{
|
|
220 |
public:
|
|
221 |
|
|
222 |
CCTSYIntegrationTestONStore0012(CEtelSessionMgr& aEtelSessionMgr);
|
|
223 |
~CCTSYIntegrationTestONStore0012();
|
|
224 |
virtual TVerdict doTestStepL();
|
|
225 |
static TPtrC GetTestStepName();
|
|
226 |
|
|
227 |
private:
|
|
228 |
|
|
229 |
}; // class CCTSYIntegrationTestONStore0012
|
|
230 |
|
|
231 |
|
|
232 |
class CCTSYIntegrationTestONStore0013 : public CCTSYIntegrationTestONStoreBase
|
|
233 |
{
|
|
234 |
public:
|
|
235 |
|
|
236 |
CCTSYIntegrationTestONStore0013(CEtelSessionMgr& aEtelSessionMgr);
|
|
237 |
~CCTSYIntegrationTestONStore0013();
|
|
238 |
virtual TVerdict doTestStepL();
|
|
239 |
static TPtrC GetTestStepName();
|
|
240 |
|
|
241 |
private:
|
|
242 |
|
|
243 |
}; // class CCTSYIntegrationTestONStore0013
|
|
244 |
|
|
245 |
|
|
246 |
class CCTSYIntegrationTestONStore0014 : public CCTSYIntegrationTestONStoreBase
|
|
247 |
{
|
|
248 |
public:
|
|
249 |
|
|
250 |
CCTSYIntegrationTestONStore0014(CEtelSessionMgr& aEtelSessionMgr);
|
|
251 |
~CCTSYIntegrationTestONStore0014();
|
|
252 |
virtual TVerdict doTestStepL();
|
|
253 |
static TPtrC GetTestStepName();
|
|
254 |
|
|
255 |
private:
|
|
256 |
|
|
257 |
}; // class CCTSYIntegrationTestONStore0014
|
|
258 |
|
|
259 |
|
|
260 |
class CCTSYIntegrationTestONStore0015 : public CCTSYIntegrationTestONStoreBase
|
|
261 |
{
|
|
262 |
public:
|
|
263 |
|
|
264 |
CCTSYIntegrationTestONStore0015(CEtelSessionMgr& aEtelSessionMgr);
|
|
265 |
~CCTSYIntegrationTestONStore0015();
|
|
266 |
virtual TVerdict doTestStepL();
|
|
267 |
static TPtrC GetTestStepName();
|
|
268 |
|
|
269 |
private:
|
|
270 |
|
|
271 |
}; // class CCTSYIntegrationTestONStore0015
|
|
272 |
|
|
273 |
|
|
274 |
class CCTSYIntegrationTestONStore0016 : public CCTSYIntegrationTestONStoreBase
|
|
275 |
{
|
|
276 |
public:
|
|
277 |
|
|
278 |
CCTSYIntegrationTestONStore0016(CEtelSessionMgr& aEtelSessionMgr);
|
|
279 |
~CCTSYIntegrationTestONStore0016();
|
|
280 |
virtual TVerdict doTestStepL();
|
|
281 |
static TPtrC GetTestStepName();
|
|
282 |
|
|
283 |
private:
|
|
284 |
|
|
285 |
}; // class CCTSYIntegrationTestONStore0016
|
|
286 |
|
|
287 |
|
|
288 |
class CCTSYIntegrationTestONStore0017 : public CCTSYIntegrationTestONStoreBase
|
|
289 |
{
|
|
290 |
public:
|
|
291 |
|
|
292 |
CCTSYIntegrationTestONStore0017(CEtelSessionMgr& aEtelSessionMgr);
|
|
293 |
~CCTSYIntegrationTestONStore0017();
|
|
294 |
virtual TVerdict doTestStepL();
|
|
295 |
static TPtrC GetTestStepName();
|
|
296 |
|
|
297 |
private:
|
|
298 |
|
|
299 |
}; // class CCTSYIntegrationTestONStore0017
|
|
300 |
|
|
301 |
|
|
302 |
class CCTSYIntegrationTestONStore0018 : public CCTSYIntegrationTestONStoreBase
|
|
303 |
{
|
|
304 |
public:
|
|
305 |
|
|
306 |
CCTSYIntegrationTestONStore0018(CEtelSessionMgr& aEtelSessionMgr);
|
|
307 |
~CCTSYIntegrationTestONStore0018();
|
|
308 |
virtual TVerdict doTestStepL();
|
|
309 |
static TPtrC GetTestStepName();
|
|
310 |
|
|
311 |
private:
|
|
312 |
|
|
313 |
}; // class CCTSYIntegrationTestONStore0018
|
|
314 |
|
|
315 |
|
|
316 |
class CCTSYIntegrationTestONStore0019 : public CCTSYIntegrationTestONStoreBase
|
|
317 |
{
|
|
318 |
public:
|
|
319 |
|
|
320 |
CCTSYIntegrationTestONStore0019(CEtelSessionMgr& aEtelSessionMgr);
|
|
321 |
~CCTSYIntegrationTestONStore0019();
|
|
322 |
virtual TVerdict doTestStepL();
|
|
323 |
static TPtrC GetTestStepName();
|
|
324 |
|
|
325 |
private:
|
|
326 |
|
|
327 |
}; // class CCTSYIntegrationTestONStore0019
|
|
328 |
|
|
329 |
|
|
330 |
class CCTSYIntegrationTestONStore0020 : public CCTSYIntegrationTestONStoreBase
|
|
331 |
{
|
|
332 |
public:
|
|
333 |
|
|
334 |
CCTSYIntegrationTestONStore0020(CEtelSessionMgr& aEtelSessionMgr);
|
|
335 |
~CCTSYIntegrationTestONStore0020();
|
|
336 |
virtual TVerdict doTestStepL();
|
|
337 |
static TPtrC GetTestStepName();
|
|
338 |
|
|
339 |
private:
|
|
340 |
|
|
341 |
}; // class CCTSYIntegrationTestONStore0020
|
|
342 |
|
|
343 |
|
|
344 |
class CCTSYIntegrationTestONStore0021 : public CCTSYIntegrationTestONStoreBase
|
|
345 |
{
|
|
346 |
public:
|
|
347 |
|
|
348 |
CCTSYIntegrationTestONStore0021(CEtelSessionMgr& aEtelSessionMgr);
|
|
349 |
~CCTSYIntegrationTestONStore0021();
|
|
350 |
virtual TVerdict doTestStepL();
|
|
351 |
static TPtrC GetTestStepName();
|
|
352 |
|
|
353 |
private:
|
|
354 |
|
|
355 |
}; // class CCTSYIntegrationTestONStore0021
|
|
356 |
|
|
357 |
|
|
358 |
class CCTSYIntegrationTestONStore0022 : public CCTSYIntegrationTestONStoreBase
|
|
359 |
{
|
|
360 |
public:
|
|
361 |
|
|
362 |
CCTSYIntegrationTestONStore0022(CEtelSessionMgr& aEtelSessionMgr);
|
|
363 |
~CCTSYIntegrationTestONStore0022();
|
|
364 |
virtual TVerdict doTestStepL();
|
|
365 |
static TPtrC GetTestStepName();
|
|
366 |
|
|
367 |
private:
|
|
368 |
|
|
369 |
}; // class CCTSYIntegrationTestONStore0022
|
|
370 |
|
|
371 |
|
|
372 |
class CCTSYIntegrationTestONStore0023 : public CCTSYIntegrationTestONStoreBase
|
|
373 |
{
|
|
374 |
public:
|
|
375 |
|
|
376 |
CCTSYIntegrationTestONStore0023(CEtelSessionMgr& aEtelSessionMgr);
|
|
377 |
~CCTSYIntegrationTestONStore0023();
|
|
378 |
virtual TVerdict doTestStepL();
|
|
379 |
static TPtrC GetTestStepName();
|
|
380 |
|
|
381 |
private:
|
|
382 |
|
|
383 |
}; // class CCTSYIntegrationTestONStore0023
|
|
384 |
|
|
385 |
|
|
386 |
class CCTSYIntegrationTestONStore0024 : public CCTSYIntegrationTestONStoreBase
|
|
387 |
{
|
|
388 |
public:
|
|
389 |
|
|
390 |
CCTSYIntegrationTestONStore0024(CEtelSessionMgr& aEtelSessionMgr);
|
|
391 |
~CCTSYIntegrationTestONStore0024();
|
|
392 |
virtual TVerdict doTestStepL();
|
|
393 |
static TPtrC GetTestStepName();
|
|
394 |
|
|
395 |
private:
|
|
396 |
|
|
397 |
}; // class CCTSYIntegrationTestONStore0024
|
|
398 |
|
|
399 |
|
|
400 |
class CCTSYIntegrationTestONStore0025 : public CCTSYIntegrationTestONStoreBase
|
|
401 |
{
|
|
402 |
public:
|
|
403 |
|
|
404 |
CCTSYIntegrationTestONStore0025(CEtelSessionMgr& aEtelSessionMgr);
|
|
405 |
~CCTSYIntegrationTestONStore0025();
|
|
406 |
virtual TVerdict doTestStepL();
|
|
407 |
static TPtrC GetTestStepName();
|
|
408 |
|
|
409 |
private:
|
|
410 |
|
|
411 |
}; // class CCTSYIntegrationTestONStore0025
|
|
412 |
|
|
413 |
|
|
414 |
class CCTSYIntegrationTestONStore0026 : public CCTSYIntegrationTestONStoreBase
|
|
415 |
{
|
|
416 |
public:
|
|
417 |
|
|
418 |
CCTSYIntegrationTestONStore0026(CEtelSessionMgr& aEtelSessionMgr);
|
|
419 |
~CCTSYIntegrationTestONStore0026();
|
|
420 |
virtual TVerdict doTestStepL();
|
|
421 |
static TPtrC GetTestStepName();
|
|
422 |
|
|
423 |
private:
|
|
424 |
|
|
425 |
}; // class CCTSYIntegrationTestONStore0026
|
|
426 |
|
|
427 |
|
|
428 |
class CCTSYIntegrationTestONStore0027 : public CCTSYIntegrationTestONStoreBase
|
|
429 |
{
|
|
430 |
public:
|
|
431 |
|
|
432 |
CCTSYIntegrationTestONStore0027(CEtelSessionMgr& aEtelSessionMgr);
|
|
433 |
~CCTSYIntegrationTestONStore0027();
|
|
434 |
virtual TVerdict doTestStepL();
|
|
435 |
static TPtrC GetTestStepName();
|
|
436 |
|
|
437 |
private:
|
|
438 |
|
|
439 |
}; // class CCTSYIntegrationTestONStore0027
|
|
440 |
|
|
441 |
class TBackupAllEntries
|
|
442 |
{
|
|
443 |
public:
|
|
444 |
TBackupAllEntries(CCTSYIntegrationTestONStoreBase &aBase,
|
|
445 |
RMobileONStore &aOnStore);
|
|
446 |
TBool BackupL();
|
|
447 |
operator TCleanupItem();
|
|
448 |
|
|
449 |
private:
|
|
450 |
TBool iValid;
|
|
451 |
RMobileONStore &iOnStore;
|
|
452 |
CCTSYIntegrationTestONStoreBase &iBase;
|
|
453 |
CRetrieveMobilePhoneONListExec *iHelper;
|
|
454 |
CMobilePhoneONList *iList;
|
|
455 |
|
|
456 |
static void DoCleanupL(TAny* aPtr);
|
|
457 |
void CleanupL();
|
|
458 |
};
|
|
459 |
|
|
460 |
#endif // __CCTSYINTEGRATIONTESTONSTORE_H__
|
|
461 |
|