|
1 // |
|
2 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 // All rights reserved. |
|
4 // This component and the accompanying materials are made available |
|
5 // under the terms of "Eclipse Public License v1.0" |
|
6 // which accompanies this distribution, and is available |
|
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 // |
|
9 // Initial Contributors: |
|
10 // Nokia Corporation - initial contribution. |
|
11 // |
|
12 // Contributors: |
|
13 // |
|
14 // Description: |
|
15 // |
|
16 // |
|
17 // |
|
18 // This contains CommDb Unit Test Cases 026.XX |
|
19 |
|
20 // EPOC includes |
|
21 #include <e32base.h> |
|
22 #include <commdb.h> |
|
23 #include <d32comm.h> |
|
24 |
|
25 // Test system includes |
|
26 #include "Teststepcommdb.h" |
|
27 #include "Step_026_xx.h" |
|
28 |
|
29 //_LIT(KCommDefault3, "C:\\default3.dat"); |
|
30 |
|
31 CCommDbTest026_01::CCommDbTest026_01() |
|
32 { |
|
33 // store the name of this test case |
|
34 SetTestStepName(_L("step_026_01")); |
|
35 } |
|
36 |
|
37 CCommDbTest026_01::~CCommDbTest026_01() |
|
38 {} |
|
39 |
|
40 TVerdict CCommDbTest026_01::doTestStepL( void ) |
|
41 { |
|
42 executeStepL(); |
|
43 SetTestStepResult(EPass); return TestStepResult(); |
|
44 } |
|
45 |
|
46 TVerdict CCommDbTest026_01::doTestStepPreambleL() |
|
47 { |
|
48 // copyFileL(KCommDbName, KCommDefault3); |
|
49 iTheDb=CCommsDatabase::NewL(); |
|
50 |
|
51 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
52 CleanupStack::Pop(); |
|
53 |
|
54 |
|
55 SetTestStepResult(EPass); return TestStepResult(); |
|
56 } |
|
57 |
|
58 TInt CCommDbTest026_01::executeStepL() |
|
59 { |
|
60 |
|
61 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
62 pref1.iRanking = 1; |
|
63 pref1.iDirection = ECommDbConnectionDirectionOutgoing; |
|
64 pref1.iDialogPref = ECommDbDialogPrefPrompt; |
|
65 pref1.iBearer.iBearerSet = KCommDbBearerCSD; |
|
66 pref1.iBearer.iIapId = 1; |
|
67 |
|
68 iPrefView->InsertConnectionPreferenceL(pref1, EFalse); |
|
69 |
|
70 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref2; |
|
71 pref2.iRanking = 2; |
|
72 pref2.iDirection = ECommDbConnectionDirectionOutgoing; |
|
73 pref2.iDialogPref = ECommDbDialogPrefPrompt; |
|
74 pref2.iBearer.iBearerSet = KCommDbBearerCSD; |
|
75 pref2.iBearer.iIapId = 2; |
|
76 |
|
77 iPrefView->InsertConnectionPreferenceL(pref2, EFalse); |
|
78 |
|
79 return KErrNone; |
|
80 } |
|
81 |
|
82 TVerdict CCommDbTest026_01::doTestStepPostambleL() |
|
83 { |
|
84 //Get rid of our view |
|
85 if(iPrefView) |
|
86 { |
|
87 delete iPrefView; |
|
88 } |
|
89 iPrefView=0; |
|
90 |
|
91 //Create a new view that should have the record that was added in executeStepL and |
|
92 // may have been left in by a leave condition |
|
93 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
94 CleanupStack::Pop(); |
|
95 |
|
96 if(iPrefView->GotoFirstRecord() == KErrNone) |
|
97 { |
|
98 iPrefView->DeleteConnectionPreferenceL(); |
|
99 } |
|
100 if(iPrefView->GotoFirstRecord() == KErrNone) |
|
101 { |
|
102 iPrefView->DeleteConnectionPreferenceL(); |
|
103 } |
|
104 |
|
105 // Cleanup after test run |
|
106 CTestStepCommDb::doTestStepPostambleL(); |
|
107 SetTestStepResult(EPass); return TestStepResult(); |
|
108 } |
|
109 |
|
110 //////////////////////////////////////////////////////////////////////////////////// |
|
111 |
|
112 CCommDbTest026_02::CCommDbTest026_02() |
|
113 { |
|
114 // store the name of this test case |
|
115 SetTestStepName(_L("step_026_02")); |
|
116 } |
|
117 |
|
118 CCommDbTest026_02::~CCommDbTest026_02() |
|
119 {} |
|
120 |
|
121 TVerdict CCommDbTest026_02::doTestStepL( void ) |
|
122 { |
|
123 if (KErrAlreadyExists == executeStepL()) |
|
124 SetTestStepResult(EPass); SetTestStepResult(EFail); return TestStepResult(); |
|
125 } |
|
126 |
|
127 TVerdict CCommDbTest026_02::doTestStepPreambleL() |
|
128 { |
|
129 // copyFileL(KCommDefault3, KCommDbName); |
|
130 iTheDb=CCommsDatabase::NewL(); |
|
131 |
|
132 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
133 CleanupStack::Pop(); |
|
134 |
|
135 iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2); |
|
136 SetTestStepResult(EPass); return TestStepResult(); |
|
137 } |
|
138 |
|
139 TInt CCommDbTest026_02::executeStepL() |
|
140 { |
|
141 |
|
142 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
143 pref1.iRanking = 1; |
|
144 pref1.iDirection = ECommDbConnectionDirectionOutgoing; |
|
145 pref1.iDialogPref = ECommDbDialogPrefPrompt; |
|
146 pref1.iBearer.iBearerSet = KCommDbBearerCSD; |
|
147 pref1.iBearer.iIapId = 1; |
|
148 |
|
149 iPrefView->InsertConnectionPreferenceL(pref1, EFalse); |
|
150 |
|
151 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref2; |
|
152 pref2.iRanking = 1; |
|
153 pref2.iDirection = ECommDbConnectionDirectionOutgoing; |
|
154 pref2.iDialogPref = ECommDbDialogPrefPrompt; |
|
155 pref2.iBearer.iBearerSet = KCommDbBearerCSD; |
|
156 pref2.iBearer.iIapId = 2; |
|
157 |
|
158 TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref2, EFalse)); |
|
159 |
|
160 return err; |
|
161 } |
|
162 |
|
163 TVerdict CCommDbTest026_02::doTestStepPostambleL() |
|
164 { |
|
165 delete iPrefView; |
|
166 iPrefView = NULL; |
|
167 delete iTheDb; |
|
168 iTheDb=NULL; |
|
169 SetTestStepResult(EPass); return TestStepResult(); |
|
170 } |
|
171 |
|
172 //////////////////////////////////////////////////////////////////////////////////// |
|
173 |
|
174 CCommDbTest026_03::CCommDbTest026_03() |
|
175 { |
|
176 // store the name of this test case |
|
177 SetTestStepName(_L("step_026_03")); |
|
178 } |
|
179 |
|
180 CCommDbTest026_03::~CCommDbTest026_03() |
|
181 {} |
|
182 |
|
183 TVerdict CCommDbTest026_03::doTestStepL( void ) |
|
184 { |
|
185 if (KErrAlreadyExists == executeStepL()) |
|
186 SetTestStepResult(EPass); SetTestStepResult(EFail); return TestStepResult(); |
|
187 } |
|
188 |
|
189 TVerdict CCommDbTest026_03::doTestStepPreambleL() |
|
190 { |
|
191 iTheDb=CCommsDatabase::NewL(); |
|
192 |
|
193 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
194 CleanupStack::Pop(); |
|
195 |
|
196 iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2); |
|
197 SetTestStepResult(EPass); return TestStepResult(); |
|
198 } |
|
199 |
|
200 TInt CCommDbTest026_03::executeStepL() |
|
201 { |
|
202 |
|
203 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
204 pref1.iRanking = 1; |
|
205 pref1.iDirection = ECommDbConnectionDirectionIncoming; |
|
206 pref1.iDialogPref = ECommDbDialogPrefPrompt; |
|
207 pref1.iBearer.iBearerSet = KCommDbBearerCSD; |
|
208 pref1.iBearer.iIapId = 3; |
|
209 |
|
210 iPrefView->InsertConnectionPreferenceL(pref1, EFalse); |
|
211 |
|
212 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref2; |
|
213 pref2.iRanking = 1; |
|
214 pref2.iDirection = ECommDbConnectionDirectionIncoming; |
|
215 pref2.iDialogPref = ECommDbDialogPrefPrompt; |
|
216 pref2.iBearer.iBearerSet = KCommDbBearerCSD; |
|
217 pref2.iBearer.iIapId = 4; |
|
218 |
|
219 TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref2, EFalse)); |
|
220 |
|
221 return err; |
|
222 } |
|
223 |
|
224 TVerdict CCommDbTest026_03::doTestStepPostambleL() |
|
225 { |
|
226 delete iPrefView; |
|
227 iPrefView = NULL; |
|
228 delete iTheDb; |
|
229 iTheDb=NULL; |
|
230 SetTestStepResult(EPass); return TestStepResult(); |
|
231 } |
|
232 |
|
233 //////////////////////////////////////////////////////////////////////////////////// |
|
234 |
|
235 CCommDbTest026_04::CCommDbTest026_04() |
|
236 { |
|
237 // store the name of this test case |
|
238 SetTestStepName(_L("step_026_04")); |
|
239 } |
|
240 |
|
241 CCommDbTest026_04::~CCommDbTest026_04() |
|
242 {} |
|
243 |
|
244 TVerdict CCommDbTest026_04::doTestStepL( void ) |
|
245 { |
|
246 if (KErrOverflow == executeStepL()) |
|
247 SetTestStepResult(EPass); SetTestStepResult(EFail); return TestStepResult(); |
|
248 } |
|
249 |
|
250 TVerdict CCommDbTest026_04::doTestStepPreambleL() |
|
251 { |
|
252 iTheDb=CCommsDatabase::NewL(); |
|
253 |
|
254 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
255 CleanupStack::Pop(); |
|
256 |
|
257 iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2); |
|
258 SetTestStepResult(EPass); return TestStepResult(); |
|
259 } |
|
260 |
|
261 TInt CCommDbTest026_04::executeStepL() |
|
262 { |
|
263 |
|
264 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
265 pref1.iRanking = 85; |
|
266 pref1.iDirection = ECommDbConnectionDirectionIncoming; |
|
267 pref1.iDialogPref = ECommDbDialogPrefPrompt; |
|
268 pref1.iBearer.iBearerSet = KCommDbBearerCSD; |
|
269 pref1.iBearer.iIapId = 3; |
|
270 |
|
271 TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse)); |
|
272 |
|
273 return err; |
|
274 } |
|
275 |
|
276 TVerdict CCommDbTest026_04::doTestStepPostambleL() |
|
277 { |
|
278 delete iPrefView; |
|
279 iPrefView = NULL; |
|
280 delete iTheDb; |
|
281 iTheDb=NULL; |
|
282 SetTestStepResult(EPass); return TestStepResult(); |
|
283 } |
|
284 |
|
285 //////////////////////////////////////////////////////////////////////////////////// |
|
286 |
|
287 CCommDbTest026_05::CCommDbTest026_05() |
|
288 { |
|
289 // store the name of this test case |
|
290 SetTestStepName(_L("step_026_05")); |
|
291 } |
|
292 |
|
293 CCommDbTest026_05::~CCommDbTest026_05() |
|
294 {} |
|
295 |
|
296 TVerdict CCommDbTest026_05::doTestStepL( void ) |
|
297 { |
|
298 if (KErrNotFound == executeStepL()) |
|
299 SetTestStepResult(EPass); SetTestStepResult(EFail); return TestStepResult(); |
|
300 } |
|
301 |
|
302 TVerdict CCommDbTest026_05::doTestStepPreambleL() |
|
303 { |
|
304 iTheDb=CCommsDatabase::NewL(); |
|
305 |
|
306 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
307 CleanupStack::Pop(); |
|
308 |
|
309 iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2); |
|
310 SetTestStepResult(EPass); return TestStepResult(); |
|
311 } |
|
312 |
|
313 TInt CCommDbTest026_05::executeStepL() |
|
314 { |
|
315 |
|
316 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
317 pref1.iRanking = 1; |
|
318 pref1.iDirection = ECommDbConnectionDirectionIncoming; |
|
319 pref1.iDialogPref = ECommDbDialogPrefPrompt; |
|
320 pref1.iBearer.iBearerSet = KCommDbBearerCSD; |
|
321 pref1.iBearer.iIapId = 0xffffffff; |
|
322 |
|
323 TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse)); |
|
324 |
|
325 return err; |
|
326 } |
|
327 |
|
328 TVerdict CCommDbTest026_05::doTestStepPostambleL() |
|
329 { |
|
330 //Get rid of our view |
|
331 if(iPrefView) |
|
332 { |
|
333 delete iPrefView; |
|
334 } |
|
335 iPrefView=0; |
|
336 |
|
337 //Create a new view that should have the record that was added in executeStepL and |
|
338 // may have been left in by a leave condition |
|
339 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
340 CleanupStack::Pop(); |
|
341 |
|
342 if(iPrefView->GotoFirstRecord() == KErrNone) |
|
343 { |
|
344 iPrefView->DeleteConnectionPreferenceL(); |
|
345 } |
|
346 |
|
347 iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS)); |
|
348 |
|
349 // Cleanup after test run |
|
350 CTestStepCommDb::doTestStepPostambleL(); |
|
351 SetTestStepResult(EPass); return TestStepResult(); |
|
352 } |
|
353 |
|
354 //////////////////////////////////////////////////////////////////////////////////// |
|
355 |
|
356 CCommDbTest026_06::CCommDbTest026_06() |
|
357 { |
|
358 // store the name of this test case |
|
359 SetTestStepName(_L("step_026_06")); |
|
360 } |
|
361 |
|
362 CCommDbTest026_06::~CCommDbTest026_06() |
|
363 {} |
|
364 |
|
365 TVerdict CCommDbTest026_06::doTestStepL( void ) |
|
366 { |
|
367 if (KErrArgument == executeStepL()) |
|
368 SetTestStepResult(EPass); SetTestStepResult(EFail); return TestStepResult(); |
|
369 } |
|
370 |
|
371 TVerdict CCommDbTest026_06::doTestStepPreambleL() |
|
372 { |
|
373 iTheDb=CCommsDatabase::NewL(); |
|
374 |
|
375 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
376 CleanupStack::Pop(); |
|
377 |
|
378 iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2); |
|
379 SetTestStepResult(EPass); return TestStepResult(); |
|
380 } |
|
381 |
|
382 TInt CCommDbTest026_06::executeStepL() |
|
383 { |
|
384 |
|
385 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
386 pref1.iRanking = 1; |
|
387 pref1.iDirection = ECommDbConnectionDirectionIncoming; |
|
388 pref1.iDialogPref = ECommDbDialogPrefPrompt; |
|
389 pref1.iBearer.iBearerSet = 0x80000000; |
|
390 pref1.iBearer.iIapId = 3; |
|
391 |
|
392 TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse)); |
|
393 |
|
394 return err; |
|
395 } |
|
396 |
|
397 TVerdict CCommDbTest026_06::doTestStepPostambleL() |
|
398 { |
|
399 //Get rid of our view |
|
400 if(iPrefView) |
|
401 { |
|
402 delete iPrefView; |
|
403 } |
|
404 iPrefView=0; |
|
405 |
|
406 //Create a new view that should have the record that was added in executeStepL and |
|
407 // may have been left in by a leave condition |
|
408 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
409 CleanupStack::Pop(); |
|
410 |
|
411 if(iPrefView->GotoFirstRecord() == KErrNone) |
|
412 { |
|
413 iPrefView->DeleteConnectionPreferenceL(); |
|
414 } |
|
415 |
|
416 iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS)); |
|
417 |
|
418 // Cleanup after test run |
|
419 CTestStepCommDb::doTestStepPostambleL(); |
|
420 SetTestStepResult(EPass); return TestStepResult(); |
|
421 } |
|
422 |
|
423 //////////////////////////////////////////////////////////////////////////////////// |
|
424 |
|
425 CCommDbTest026_07::CCommDbTest026_07() |
|
426 { |
|
427 // store the name of this test case |
|
428 SetTestStepName(_L("step_026_07")); |
|
429 } |
|
430 |
|
431 CCommDbTest026_07::~CCommDbTest026_07() |
|
432 {} |
|
433 |
|
434 TVerdict CCommDbTest026_07::doTestStepL( void ) |
|
435 { |
|
436 if (KErrArgument == executeStepL()) |
|
437 SetTestStepResult(EPass); SetTestStepResult(EFail); return TestStepResult(); |
|
438 } |
|
439 |
|
440 TVerdict CCommDbTest026_07::doTestStepPreambleL() |
|
441 { |
|
442 iTheDb=CCommsDatabase::NewL(); |
|
443 |
|
444 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
445 CleanupStack::Pop(); |
|
446 |
|
447 iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2); |
|
448 SetTestStepResult(EPass); return TestStepResult(); |
|
449 } |
|
450 |
|
451 TInt CCommDbTest026_07::executeStepL() |
|
452 { |
|
453 |
|
454 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
455 pref1.iRanking = 1; |
|
456 pref1.iDirection = ECommDbConnectionDirectionOutgoing; |
|
457 pref1.iDialogPref = ECommDbDialogPrefPromptIfWrongMode; |
|
458 pref1.iBearer.iBearerSet = KCommDbBearerCSD; |
|
459 pref1.iBearer.iIapId = 1; |
|
460 |
|
461 TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse)); |
|
462 |
|
463 return err; |
|
464 } |
|
465 |
|
466 TVerdict CCommDbTest026_07::doTestStepPostambleL() |
|
467 { |
|
468 //Get rid of our view |
|
469 if(iPrefView) |
|
470 { |
|
471 delete iPrefView; |
|
472 } |
|
473 iPrefView=0; |
|
474 |
|
475 //Create a new view that should have the record that was added in executeStepL and |
|
476 // may have been left in by a leave condition |
|
477 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
478 CleanupStack::Pop(); |
|
479 |
|
480 if(iPrefView->GotoFirstRecord() == KErrNone) |
|
481 { |
|
482 iPrefView->DeleteConnectionPreferenceL(); |
|
483 } |
|
484 |
|
485 iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS)); |
|
486 |
|
487 // Cleanup after test run |
|
488 CTestStepCommDb::doTestStepPostambleL(); |
|
489 SetTestStepResult(EPass); return TestStepResult(); |
|
490 } |
|
491 |
|
492 //////////////////////////////////////////////////////////////////////////////////// |
|
493 |
|
494 CCommDbTest026_08::CCommDbTest026_08() |
|
495 { |
|
496 // store the name of this test case |
|
497 SetTestStepName(_L("step_026_08")); |
|
498 } |
|
499 |
|
500 CCommDbTest026_08::~CCommDbTest026_08() |
|
501 {} |
|
502 |
|
503 TVerdict CCommDbTest026_08::doTestStepL( void ) |
|
504 { |
|
505 if (KErrArgument == executeStepL()) |
|
506 SetTestStepResult(EPass); SetTestStepResult(EFail); return TestStepResult(); |
|
507 } |
|
508 |
|
509 TVerdict CCommDbTest026_08::doTestStepPreambleL() |
|
510 { |
|
511 iTheDb=CCommsDatabase::NewL(); |
|
512 |
|
513 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
514 CleanupStack::Pop(); |
|
515 |
|
516 iTheDb->SetGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS),2); |
|
517 SetTestStepResult(EPass); return TestStepResult(); |
|
518 } |
|
519 |
|
520 TInt CCommDbTest026_08::executeStepL() |
|
521 { |
|
522 |
|
523 CCommsDbConnectionPrefTableView::TCommDbIapConnectionPref pref1; |
|
524 pref1.iRanking = 1; |
|
525 pref1.iDirection = ECommDbConnectionDirectionIncoming; |
|
526 pref1.iDialogPref = ECommDbDialogPrefPrompt; |
|
527 pref1.iBearer.iBearerSet = KCommDbBearerCSD; |
|
528 pref1.iBearer.iIapId = 3; |
|
529 |
|
530 TRAPD(err, iPrefView->InsertConnectionPreferenceL(pref1, EFalse)); |
|
531 |
|
532 return err; |
|
533 } |
|
534 |
|
535 TVerdict CCommDbTest026_08::doTestStepPostambleL() |
|
536 { |
|
537 //Get rid of our view |
|
538 if(iPrefView) |
|
539 { |
|
540 delete iPrefView; |
|
541 } |
|
542 iPrefView=0; |
|
543 |
|
544 //Create a new view that should have the record that was added in executeStepL and |
|
545 // may have been left in by a leave condition |
|
546 iPrefView = iTheDb->OpenConnectionPrefTableLC(); |
|
547 CleanupStack::Pop(); |
|
548 |
|
549 if(iPrefView->GotoFirstRecord() == KErrNone) |
|
550 { |
|
551 iPrefView->DeleteConnectionPreferenceL(); |
|
552 } |
|
553 |
|
554 iTheDb->ClearGlobalSettingL(TPtrC(CONNECTION_ATTEMPTS)); |
|
555 |
|
556 // Cleanup after test run |
|
557 CTestStepCommDb::doTestStepPostambleL(); |
|
558 SetTestStepResult(EPass); return TestStepResult(); |
|
559 } |
|
560 |
|
561 ////////////////////////////////////////////////////////////////////////// |
|
562 |
|
563 CCommDbTest026_09::CCommDbTest026_09() |
|
564 { |
|
565 // store the name of this test case |
|
566 SetTestStepName(_L("step_026_09")); |
|
567 } |
|
568 |
|
569 CCommDbTest026_09::~CCommDbTest026_09() |
|
570 {} |
|
571 |
|
572 TVerdict CCommDbTest026_09::doTestStepL( void ) |
|
573 { |
|
574 INFO_PRINTF1(_L("Step 026.09 called ")); |
|
575 |
|
576 SetTestStepResult(EPass); |
|
577 CCommDbTest026_01* step026_01 = new(ELeave) CCommDbTest026_01; |
|
578 CleanupStack::PushL(step026_01); |
|
579 doTestStepWithHeapFailureL( *step026_01, KErrNone); |
|
580 CleanupStack::PopAndDestroy(step026_01); |
|
581 |
|
582 |
|
583 return TestStepResult(); |
|
584 } |
|
585 |
|
586 |
|
587 CCommDbTest026_10::CCommDbTest026_10() |
|
588 { |
|
589 // store the name of this test case |
|
590 SetTestStepName(_L("step_026_10")); |
|
591 } |
|
592 |
|
593 CCommDbTest026_10::~CCommDbTest026_10() |
|
594 {} |
|
595 |
|
596 TVerdict CCommDbTest026_10::doTestStepL( void ) |
|
597 { |
|
598 INFO_PRINTF1(_L("Step 026.10 called ")); |
|
599 |
|
600 SetTestStepResult(EPass); |
|
601 CCommDbTest026_02* step026_02 = new(ELeave) CCommDbTest026_02; |
|
602 CleanupStack::PushL(step026_02); |
|
603 doTestStepWithHeapFailureL( *step026_02, KErrAlreadyExists); |
|
604 CleanupStack::PopAndDestroy(step026_02); |
|
605 |
|
606 return TestStepResult(); |
|
607 } |
|
608 |
|
609 |
|
610 CCommDbTest026_11::CCommDbTest026_11() |
|
611 { |
|
612 // store the name of this test case |
|
613 SetTestStepName(_L("step_026_11")); |
|
614 } |
|
615 |
|
616 CCommDbTest026_11::~CCommDbTest026_11() |
|
617 {} |
|
618 |
|
619 TVerdict CCommDbTest026_11::doTestStepL( void ) |
|
620 { |
|
621 INFO_PRINTF1(_L("Step 026.11 called ")); |
|
622 |
|
623 SetTestStepResult(EPass); |
|
624 CCommDbTest026_03* step026_03 = new(ELeave) CCommDbTest026_03; |
|
625 CleanupStack::PushL(step026_03); |
|
626 doTestStepWithHeapFailureL( *step026_03, KErrAlreadyExists); |
|
627 CleanupStack::PopAndDestroy(step026_03); |
|
628 |
|
629 return TestStepResult(); |
|
630 } |
|
631 |
|
632 CCommDbTest026_12::CCommDbTest026_12() |
|
633 { |
|
634 // store the name of this test case |
|
635 SetTestStepName(_L("step_026_12")); |
|
636 } |
|
637 |
|
638 CCommDbTest026_12::~CCommDbTest026_12() |
|
639 {} |
|
640 |
|
641 TVerdict CCommDbTest026_12::doTestStepL( void ) |
|
642 { |
|
643 INFO_PRINTF1(_L("Step 026.12 called ")); |
|
644 |
|
645 SetTestStepResult(EPass); |
|
646 CCommDbTest026_04* step026_04 = new(ELeave) CCommDbTest026_04; |
|
647 CleanupStack::PushL(step026_04); |
|
648 doTestStepWithHeapFailureL( *step026_04, KErrOverflow); |
|
649 CleanupStack::PopAndDestroy(step026_04); |
|
650 |
|
651 return TestStepResult(); |
|
652 } |
|
653 |
|
654 CCommDbTest026_13::CCommDbTest026_13() |
|
655 { |
|
656 // store the name of this test case |
|
657 SetTestStepName(_L("step_026_13")); |
|
658 } |
|
659 |
|
660 CCommDbTest026_13::~CCommDbTest026_13() |
|
661 {} |
|
662 |
|
663 TVerdict CCommDbTest026_13::doTestStepL( void ) |
|
664 { |
|
665 INFO_PRINTF1(_L("Step 026.13 called ")); |
|
666 |
|
667 SetTestStepResult(EPass); |
|
668 CCommDbTest026_05* step026_05 = new(ELeave) CCommDbTest026_05; |
|
669 CleanupStack::PushL(step026_05); |
|
670 doTestStepWithHeapFailureL( *step026_05, KErrNotFound); |
|
671 CleanupStack::PopAndDestroy(step026_05); |
|
672 |
|
673 return TestStepResult(); |
|
674 } |
|
675 |
|
676 CCommDbTest026_14::CCommDbTest026_14() |
|
677 { |
|
678 // store the name of this test case |
|
679 SetTestStepName(_L("step_026_14")); |
|
680 } |
|
681 |
|
682 CCommDbTest026_14::~CCommDbTest026_14() |
|
683 {} |
|
684 |
|
685 TVerdict CCommDbTest026_14::doTestStepL( void ) |
|
686 { |
|
687 INFO_PRINTF1(_L("Step 026.14 called ")); |
|
688 |
|
689 SetTestStepResult(EPass); |
|
690 CCommDbTest026_06* step026_06 = new(ELeave) CCommDbTest026_06; |
|
691 CleanupStack::PushL(step026_06); |
|
692 doTestStepWithHeapFailureL( *step026_06, KErrArgument); |
|
693 CleanupStack::PopAndDestroy(step026_06); |
|
694 |
|
695 return TestStepResult(); |
|
696 } |
|
697 |
|
698 CCommDbTest026_15::CCommDbTest026_15() |
|
699 { |
|
700 // store the name of this test case |
|
701 SetTestStepName(_L("step_026_15")); |
|
702 } |
|
703 |
|
704 CCommDbTest026_15::~CCommDbTest026_15() |
|
705 {} |
|
706 |
|
707 TVerdict CCommDbTest026_15::doTestStepL( void ) |
|
708 { |
|
709 INFO_PRINTF1(_L("Step 026.15 called ")); |
|
710 |
|
711 SetTestStepResult(EPass); |
|
712 CCommDbTest026_07* step026_07 = new(ELeave) CCommDbTest026_07; |
|
713 CleanupStack::PushL(step026_07); |
|
714 doTestStepWithHeapFailureL( *step026_07, KErrArgument); |
|
715 CleanupStack::PopAndDestroy(step026_07); |
|
716 |
|
717 return TestStepResult(); |
|
718 } |
|
719 |
|
720 CCommDbTest026_16::CCommDbTest026_16() |
|
721 { |
|
722 // store the name of this test case |
|
723 SetTestStepName(_L("step_026_16")); |
|
724 } |
|
725 |
|
726 CCommDbTest026_16::~CCommDbTest026_16() |
|
727 {} |
|
728 |
|
729 TVerdict CCommDbTest026_16::doTestStepL( void ) |
|
730 { |
|
731 INFO_PRINTF1(_L("Step 026.16 called ")); |
|
732 |
|
733 SetTestStepResult(EPass); |
|
734 CCommDbTest026_08* step026_08 = new(ELeave) CCommDbTest026_08; |
|
735 CleanupStack::PushL(step026_08); |
|
736 doTestStepWithHeapFailureL( *step026_08, KErrArgument); |
|
737 CleanupStack::PopAndDestroy(step026_08); |
|
738 |
|
739 return TestStepResult(); |
|
740 } |
|
741 |
|
742 //EOF |