|
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 019.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_019_xx.h" |
|
28 |
|
29 |
|
30 |
|
31 ///////////////////// |
|
32 // Test step 019.01 |
|
33 ///////////////////// |
|
34 |
|
35 // constructor |
|
36 CCommDbTest019_01::CCommDbTest019_01() |
|
37 { |
|
38 // store the name of this test case |
|
39 SetTestStepName(_L("step_019_01")); |
|
40 } |
|
41 |
|
42 // destructor |
|
43 CCommDbTest019_01::~CCommDbTest019_01() |
|
44 { |
|
45 } |
|
46 |
|
47 |
|
48 TVerdict CCommDbTest019_01::doTestStepPreambleL() |
|
49 { |
|
50 openDbL(); |
|
51 SetTestStepResult(EPass); return TestStepResult(); |
|
52 } |
|
53 |
|
54 |
|
55 TInt CCommDbTest019_01::executeStepL() |
|
56 { |
|
57 TInt ret=KErrGeneral; |
|
58 |
|
59 //Select a view and verify the records in it |
|
60 |
|
61 //This should just select 2 records |
|
62 iTheView = iTheDb->OpenViewMatchingUintLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_TYPE), EIspTypeInternetAndWAP ); |
|
63 CleanupStack::Pop(); |
|
64 CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone ); |
|
65 |
|
66 //Check its the record we expect |
|
67 TBuf<KCommsDbSvrMaxFieldLength> value; |
|
68 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
69 if( !value.Compare(_L("Record #1")) ) |
|
70 { |
|
71 //There should be no more records in the view |
|
72 CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound ); |
|
73 ret = KErrNone; |
|
74 } |
|
75 |
|
76 return ret; |
|
77 } |
|
78 |
|
79 |
|
80 |
|
81 TVerdict CCommDbTest019_01::doTestStepL( ) |
|
82 { |
|
83 INFO_PRINTF1(_L("Step 019.01 called ")); |
|
84 |
|
85 |
|
86 if ( executeStepL() == KErrNone ) |
|
87 SetTestStepResult(EPass); else |
|
88 SetTestStepResult(EFail); |
|
89 return TestStepResult(); |
|
90 } |
|
91 |
|
92 |
|
93 |
|
94 ///////////////////// |
|
95 // Test step 019.02 |
|
96 ///////////////////// |
|
97 |
|
98 // constructor |
|
99 CCommDbTest019_02::CCommDbTest019_02() |
|
100 { |
|
101 // store the name of this test case |
|
102 SetTestStepName(_L("step_019_02")); |
|
103 } |
|
104 |
|
105 // destructor |
|
106 CCommDbTest019_02::~CCommDbTest019_02() |
|
107 { |
|
108 } |
|
109 |
|
110 |
|
111 TVerdict CCommDbTest019_02::doTestStepPreambleL() |
|
112 { |
|
113 openDbL(); |
|
114 SetTestStepResult(EPass); return TestStepResult(); |
|
115 } |
|
116 |
|
117 |
|
118 TInt CCommDbTest019_02::executeStepL() |
|
119 { |
|
120 TInt ret=KErrGeneral; |
|
121 |
|
122 //Select a view and verify the records in it |
|
123 |
|
124 //This should just select 2 records |
|
125 iTheView = iTheDb->OpenViewMatchingBoolLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_PROMPT_FOR_LOGIN), EFalse ); |
|
126 CleanupStack::Pop(); |
|
127 CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone ); |
|
128 |
|
129 //Check its the record we expect |
|
130 TBuf<KCommsDbSvrMaxFieldLength> value; |
|
131 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
132 if( !value.Compare(_L("Record #1")) ) |
|
133 { |
|
134 // Move onto the second record and check that |
|
135 CDBLEAVE( iTheView->GotoNextRecord(), KErrNone ); |
|
136 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
137 if ( !value.Compare(_L("Record #2")) ) |
|
138 { |
|
139 //There should be no more records in the view |
|
140 CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound ); |
|
141 ret = KErrNone; |
|
142 } |
|
143 } |
|
144 |
|
145 |
|
146 return ret; |
|
147 } |
|
148 |
|
149 |
|
150 |
|
151 TVerdict CCommDbTest019_02::doTestStepL( ) |
|
152 { |
|
153 INFO_PRINTF1(_L("Step 019.02 called ")); |
|
154 |
|
155 |
|
156 if ( executeStepL() == KErrNone ) |
|
157 SetTestStepResult(EPass); else |
|
158 SetTestStepResult(EFail); |
|
159 return TestStepResult(); |
|
160 } |
|
161 |
|
162 |
|
163 ///////////////////// |
|
164 // Test step 019.03 |
|
165 ///////////////////// |
|
166 |
|
167 // constructor |
|
168 CCommDbTest019_03::CCommDbTest019_03() |
|
169 { |
|
170 // store the name of this test case |
|
171 SetTestStepName(_L("step_019_03")); |
|
172 } |
|
173 |
|
174 // destructor |
|
175 CCommDbTest019_03::~CCommDbTest019_03() |
|
176 { |
|
177 } |
|
178 |
|
179 |
|
180 TVerdict CCommDbTest019_03::doTestStepPreambleL() |
|
181 { |
|
182 openDbL(); |
|
183 SetTestStepResult(EPass); return TestStepResult(); |
|
184 } |
|
185 |
|
186 |
|
187 TInt CCommDbTest019_03::executeStepL() |
|
188 { |
|
189 TInt ret=KErrNone; |
|
190 //Select a view and verify the records in it |
|
191 |
|
192 //This should just select 2 records |
|
193 iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), _L8("Call me back") ); |
|
194 CleanupStack::Pop(); |
|
195 CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone ); |
|
196 |
|
197 //Check its the record we expect |
|
198 TBuf<KCommsDbSvrMaxFieldLength> value; |
|
199 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
200 if( !value.Compare(_L("Record #1")) ) |
|
201 { |
|
202 // Move onto the second record and check that |
|
203 CDBLEAVE( iTheView->GotoNextRecord(), KErrNone ); |
|
204 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
205 if ( !value.Compare(_L("Record #3")) ) |
|
206 { |
|
207 //There should be no more records in the view |
|
208 CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound ); |
|
209 ret = KErrNone; |
|
210 } |
|
211 } |
|
212 |
|
213 return ret; |
|
214 } |
|
215 |
|
216 |
|
217 |
|
218 TVerdict CCommDbTest019_03::doTestStepL( ) |
|
219 { |
|
220 INFO_PRINTF1(_L("Step 019.03 called ")); |
|
221 |
|
222 |
|
223 if ( executeStepL() == KErrNone ) |
|
224 SetTestStepResult(EPass); else |
|
225 SetTestStepResult(EFail); |
|
226 return TestStepResult(); |
|
227 } |
|
228 |
|
229 |
|
230 ///////////////////// |
|
231 // Test step 019.04 |
|
232 ///////////////////// |
|
233 |
|
234 // constructor |
|
235 CCommDbTest019_04::CCommDbTest019_04() |
|
236 { |
|
237 // store the name of this test case |
|
238 SetTestStepName(_L("step_019_04")); |
|
239 } |
|
240 |
|
241 // destructor |
|
242 CCommDbTest019_04::~CCommDbTest019_04() |
|
243 { |
|
244 } |
|
245 |
|
246 |
|
247 TVerdict CCommDbTest019_04::doTestStepPreambleL() |
|
248 { |
|
249 openDbL(); |
|
250 SetTestStepResult(EPass); return TestStepResult(); |
|
251 } |
|
252 |
|
253 |
|
254 TInt CCommDbTest019_04::executeStepL() |
|
255 { |
|
256 TInt ret=KErrNone; |
|
257 //Select a view and verify the records in it |
|
258 |
|
259 //This should just select 2 records |
|
260 iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_IF_CALLBACK_INFO), _L("Call me back") ); |
|
261 CleanupStack::Pop(); |
|
262 CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone ); |
|
263 |
|
264 //Check its the record we expect |
|
265 TBuf<KCommsDbSvrMaxFieldLength> value; |
|
266 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
267 if( !value.Compare(_L("Record #1")) ) |
|
268 { |
|
269 // Move onto the second record and check that |
|
270 CDBLEAVE( iTheView->GotoNextRecord(), KErrNone ); |
|
271 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
272 if ( !value.Compare(_L("Record #3")) ) |
|
273 { |
|
274 //There should be no more records in the view |
|
275 CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound ); |
|
276 ret = KErrNone; |
|
277 } |
|
278 } |
|
279 |
|
280 return ret; |
|
281 } |
|
282 |
|
283 |
|
284 |
|
285 TVerdict CCommDbTest019_04::doTestStepL( ) |
|
286 { |
|
287 INFO_PRINTF1(_L("Step 019.04 called ")); |
|
288 |
|
289 |
|
290 if ( executeStepL() == KErrNone ) |
|
291 SetTestStepResult(EPass); else |
|
292 SetTestStepResult(EFail); |
|
293 return TestStepResult(); |
|
294 } |
|
295 |
|
296 |
|
297 ///////////////////// |
|
298 // Test step 019.05 |
|
299 ///////////////////// |
|
300 |
|
301 // constructor |
|
302 CCommDbTest019_05::CCommDbTest019_05() |
|
303 { |
|
304 // store the name of this test case |
|
305 SetTestStepName(_L("step_019_05")); |
|
306 } |
|
307 |
|
308 // destructor |
|
309 CCommDbTest019_05::~CCommDbTest019_05() |
|
310 { |
|
311 } |
|
312 |
|
313 |
|
314 TVerdict CCommDbTest019_05::doTestStepPreambleL() |
|
315 { |
|
316 openDbL(); |
|
317 SetTestStepResult(EPass); return TestStepResult(); |
|
318 } |
|
319 |
|
320 |
|
321 TInt CCommDbTest019_05::executeStepL() |
|
322 { |
|
323 TInt ret=KErrGeneral; |
|
324 //Select a view on an invalid table |
|
325 |
|
326 TRAPD(r, iTheView = iTheDb->OpenViewMatchingTextLC( _L("Invalid"), TPtrC(ISP_IF_CALLBACK_INFO), _L8("Call me back") ) ); |
|
327 if ( r== KErrNone ) |
|
328 { |
|
329 //The test has failed as the open view did not leave |
|
330 CleanupStack::Pop(); |
|
331 } |
|
332 else |
|
333 { |
|
334 //The call did leave |
|
335 ret = r; |
|
336 } |
|
337 |
|
338 return ret; |
|
339 } |
|
340 |
|
341 |
|
342 |
|
343 TVerdict CCommDbTest019_05::doTestStepL( ) |
|
344 { |
|
345 INFO_PRINTF1(_L("Step 019.05 called ")); |
|
346 |
|
347 |
|
348 if ( executeStepL() == KErrNotFound ) |
|
349 SetTestStepResult(EPass); else |
|
350 SetTestStepResult(EFail); |
|
351 return TestStepResult(); |
|
352 } |
|
353 |
|
354 |
|
355 ///////////////////// |
|
356 // Test step 019.06 |
|
357 ///////////////////// |
|
358 |
|
359 // constructor |
|
360 CCommDbTest019_06::CCommDbTest019_06() |
|
361 { |
|
362 // store the name of this test case |
|
363 SetTestStepName(_L("step_019_06")); |
|
364 } |
|
365 |
|
366 // destructor |
|
367 CCommDbTest019_06::~CCommDbTest019_06() |
|
368 { |
|
369 } |
|
370 |
|
371 |
|
372 TVerdict CCommDbTest019_06::doTestStepPreambleL() |
|
373 { |
|
374 openDbL(); |
|
375 SetTestStepResult(EPass); return TestStepResult(); |
|
376 } |
|
377 |
|
378 |
|
379 TInt CCommDbTest019_06::executeStepL() |
|
380 { |
|
381 TInt ret=KErrGeneral; |
|
382 //Select a view on an invalid table |
|
383 |
|
384 TRAPD(r, iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), _L("Invalid"), _L8("Call me back") ) ); |
|
385 if ( r== KErrNone ) |
|
386 { |
|
387 //The test has failed as the open view did not leave |
|
388 CleanupStack::Pop(); |
|
389 } |
|
390 else |
|
391 { |
|
392 //The call did leave |
|
393 ret = r; |
|
394 } |
|
395 |
|
396 return ret; |
|
397 } |
|
398 |
|
399 |
|
400 |
|
401 TVerdict CCommDbTest019_06::doTestStepL( ) |
|
402 { |
|
403 INFO_PRINTF1(_L("Step 019.06 called ")); |
|
404 |
|
405 |
|
406 if ( executeStepL() == KErrNotFound ) |
|
407 SetTestStepResult(EPass); else |
|
408 SetTestStepResult(EFail); |
|
409 return TestStepResult(); |
|
410 } |
|
411 |
|
412 |
|
413 ///////////////////// |
|
414 // Test step 019.07 |
|
415 ///////////////////// |
|
416 |
|
417 // constructor |
|
418 CCommDbTest019_07::CCommDbTest019_07() |
|
419 { |
|
420 // store the name of this test case |
|
421 SetTestStepName(_L("step_019_07")); |
|
422 } |
|
423 |
|
424 // destructor |
|
425 CCommDbTest019_07::~CCommDbTest019_07() |
|
426 { |
|
427 } |
|
428 |
|
429 |
|
430 TVerdict CCommDbTest019_07::doTestStepPreambleL() |
|
431 { |
|
432 openDbL(); |
|
433 SetTestStepResult(EPass); return TestStepResult(); |
|
434 } |
|
435 |
|
436 |
|
437 TInt CCommDbTest019_07::executeStepL() |
|
438 { |
|
439 TInt ret=KErrNone; |
|
440 //Select a view and verify the records in it |
|
441 |
|
442 //This should just select 3 records |
|
443 iTheView = iTheDb->OpenViewMatchingTextLC( TPtrC(DIAL_OUT_ISP), TPtrC(ISP_LOGIN_NAME), _L8("") ); |
|
444 CleanupStack::Pop(); |
|
445 CDBLEAVE( iTheView->GotoFirstRecord(), KErrNone ); |
|
446 |
|
447 //Check its the record we expect |
|
448 TBuf<KCommsDbSvrMaxFieldLength> value; |
|
449 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
450 if( !value.Compare(_L("Record #1")) ) |
|
451 { |
|
452 // Move onto the second record and check that |
|
453 CDBLEAVE( iTheView->GotoNextRecord(), KErrNone ); |
|
454 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
455 if ( !value.Compare(_L("Record #2")) ) |
|
456 { |
|
457 //There should be no more records in the view |
|
458 CDBLEAVE( iTheView->GotoNextRecord(), KErrNone ); |
|
459 iTheView->ReadTextL( TPtrC(COMMDB_NAME), value ); |
|
460 if ( !value.Compare(_L("Record #3")) ) |
|
461 { |
|
462 CDBLEAVE( iTheView->GotoNextRecord(), KErrNotFound ); |
|
463 ret = KErrNone; |
|
464 } |
|
465 } |
|
466 } |
|
467 |
|
468 return ret; |
|
469 } |
|
470 |
|
471 |
|
472 |
|
473 TVerdict CCommDbTest019_07::doTestStepL( ) |
|
474 { |
|
475 INFO_PRINTF1(_L("Step 019.07 called ")); |
|
476 |
|
477 |
|
478 if ( executeStepL() == KErrNone ) |
|
479 SetTestStepResult(EPass); else |
|
480 SetTestStepResult(EFail); |
|
481 return TestStepResult(); |
|
482 } |
|
483 |
|
484 |
|
485 ///////////////////// |
|
486 // Test step 019.08 |
|
487 ///////////////////// |
|
488 |
|
489 // constructor |
|
490 CCommDbTest019_08::CCommDbTest019_08() |
|
491 { |
|
492 // store the name of this test case |
|
493 SetTestStepName(_L("step_019_08")); |
|
494 } |
|
495 |
|
496 // destructor |
|
497 CCommDbTest019_08::~CCommDbTest019_08() |
|
498 { |
|
499 } |
|
500 |
|
501 TVerdict CCommDbTest019_08::doTestStepL( ) |
|
502 { |
|
503 INFO_PRINTF1(_L("Step 019.08 called ")); |
|
504 |
|
505 SetTestStepResult(EPass); |
|
506 // Heap test for 019.01 |
|
507 |
|
508 CCommDbTest019_01* step019_01 = new(ELeave) CCommDbTest019_01; |
|
509 CleanupStack::PushL(step019_01); |
|
510 if ( doTestStepWithHeapFailureL( *step019_01, KErrNone) == EFail ) |
|
511 SetTestStepResult(EFail); CleanupStack::PopAndDestroy(step019_01); |
|
512 |
|
513 |
|
514 return TestStepResult(); |
|
515 |
|
516 } |
|
517 |
|
518 |
|
519 ///////////////////// |
|
520 // Test step 019.09 |
|
521 ///////////////////// |
|
522 |
|
523 // constructor |
|
524 CCommDbTest019_09::CCommDbTest019_09() |
|
525 { |
|
526 // store the name of this test case |
|
527 SetTestStepName(_L("step_019_09")); |
|
528 } |
|
529 |
|
530 // destructor |
|
531 CCommDbTest019_09::~CCommDbTest019_09() |
|
532 { |
|
533 } |
|
534 |
|
535 TVerdict CCommDbTest019_09::doTestStepL( ) |
|
536 { |
|
537 INFO_PRINTF1(_L("Step 019.09 called ")); |
|
538 |
|
539 SetTestStepResult(EPass); |
|
540 // Heap test for 019.02 |
|
541 |
|
542 CCommDbTest019_02* step019_02 = new CCommDbTest019_02; |
|
543 CleanupStack::PushL(step019_02); |
|
544 if ( doTestStepWithHeapFailureL( *step019_02, KErrNone) == EFail ) |
|
545 SetTestStepResult(EFail); CleanupStack::PopAndDestroy(step019_02); |
|
546 |
|
547 return TestStepResult(); |
|
548 |
|
549 } |
|
550 |
|
551 ///////////////////// |
|
552 // Test step 019.10 |
|
553 ///////////////////// |
|
554 |
|
555 // constructor |
|
556 CCommDbTest019_10::CCommDbTest019_10() |
|
557 { |
|
558 // store the name of this test case |
|
559 SetTestStepName(_L("step_019_10")); |
|
560 } |
|
561 |
|
562 // destructor |
|
563 CCommDbTest019_10::~CCommDbTest019_10() |
|
564 { |
|
565 } |
|
566 |
|
567 TVerdict CCommDbTest019_10::doTestStepL( ) |
|
568 { |
|
569 INFO_PRINTF1(_L("Step 019.10 called ")); |
|
570 |
|
571 SetTestStepResult(EPass); |
|
572 // Heap test for 019.03 |
|
573 |
|
574 CCommDbTest019_03* step019_03 = new CCommDbTest019_03; |
|
575 CleanupStack::PushL(step019_03); |
|
576 if ( doTestStepWithHeapFailureL( *step019_03, KErrNone) == EFail ) |
|
577 SetTestStepResult(EFail); CleanupStack::PopAndDestroy(step019_03); |
|
578 |
|
579 return TestStepResult(); |
|
580 |
|
581 } |
|
582 |
|
583 ///////////////////// |
|
584 // Test step 019.11 |
|
585 ///////////////////// |
|
586 |
|
587 // constructor |
|
588 CCommDbTest019_11::CCommDbTest019_11() |
|
589 { |
|
590 // store the name of this test case |
|
591 SetTestStepName(_L("step_019_11")); |
|
592 } |
|
593 |
|
594 // destructor |
|
595 CCommDbTest019_11::~CCommDbTest019_11() |
|
596 { |
|
597 } |
|
598 |
|
599 TVerdict CCommDbTest019_11::doTestStepL( ) |
|
600 { |
|
601 INFO_PRINTF1(_L("Step 019.11 called ")); |
|
602 |
|
603 SetTestStepResult(EPass); |
|
604 // Heap test for 019.04 |
|
605 |
|
606 CCommDbTest019_04* step019_04 = new CCommDbTest019_04; |
|
607 CleanupStack::PushL(step019_04); |
|
608 if ( doTestStepWithHeapFailureL( *step019_04, KErrNone) == EFail ) |
|
609 SetTestStepResult(EFail); CleanupStack::PopAndDestroy(step019_04); |
|
610 |
|
611 return TestStepResult(); |
|
612 |
|
613 } |
|
614 |
|
615 ///////////////////// |
|
616 // Test step 019.12 |
|
617 ///////////////////// |
|
618 |
|
619 // constructor |
|
620 CCommDbTest019_12::CCommDbTest019_12() |
|
621 { |
|
622 // store the name of this test case |
|
623 SetTestStepName(_L("step_019_12")); |
|
624 } |
|
625 |
|
626 // destructor |
|
627 CCommDbTest019_12::~CCommDbTest019_12() |
|
628 { |
|
629 } |
|
630 |
|
631 TVerdict CCommDbTest019_12::doTestStepL( ) |
|
632 { |
|
633 INFO_PRINTF1(_L("Step 019.12 called ")); |
|
634 |
|
635 SetTestStepResult(EPass); |
|
636 // Heap test for 019.05 |
|
637 |
|
638 CCommDbTest019_05* step019_05 = new CCommDbTest019_05; |
|
639 CleanupStack::PushL(step019_05); |
|
640 if ( doTestStepWithHeapFailureL( *step019_05, KErrNotFound) == EFail ) |
|
641 SetTestStepResult(EFail); CleanupStack::PopAndDestroy(step019_05); |
|
642 |
|
643 |
|
644 return TestStepResult(); |
|
645 |
|
646 } |
|
647 |
|
648 ///////////////////// |
|
649 // Test step 019.13 |
|
650 ///////////////////// |
|
651 |
|
652 // constructor |
|
653 CCommDbTest019_13::CCommDbTest019_13() |
|
654 { |
|
655 // store the name of this test case |
|
656 SetTestStepName(_L("step_019_13")); |
|
657 } |
|
658 |
|
659 // destructor |
|
660 CCommDbTest019_13::~CCommDbTest019_13() |
|
661 { |
|
662 } |
|
663 |
|
664 TVerdict CCommDbTest019_13::doTestStepL( ) |
|
665 { |
|
666 INFO_PRINTF1(_L("Step 019.13 called ")); |
|
667 |
|
668 SetTestStepResult(EPass); |
|
669 // Heap test for 019.06 |
|
670 |
|
671 CCommDbTest019_06* step019_06 = new CCommDbTest019_06; |
|
672 CleanupStack::PushL(step019_06); |
|
673 if ( doTestStepWithHeapFailureL( *step019_06, KErrNotFound) == EFail ) |
|
674 SetTestStepResult(EFail); CleanupStack::PopAndDestroy(step019_06); |
|
675 |
|
676 |
|
677 return TestStepResult(); |
|
678 |
|
679 } |
|
680 |
|
681 ///////////////////// |
|
682 // Test step 019.14 |
|
683 ///////////////////// |
|
684 |
|
685 // constructor |
|
686 CCommDbTest019_14::CCommDbTest019_14() |
|
687 { |
|
688 // store the name of this test case |
|
689 SetTestStepName(_L("step_019_14")); |
|
690 } |
|
691 |
|
692 // destructor |
|
693 CCommDbTest019_14::~CCommDbTest019_14() |
|
694 { |
|
695 } |
|
696 |
|
697 TVerdict CCommDbTest019_14::doTestStepL( ) |
|
698 { |
|
699 INFO_PRINTF1(_L("Step 019.14 called ")); |
|
700 |
|
701 SetTestStepResult(EPass); |
|
702 // Heap test for 019.07 |
|
703 |
|
704 CCommDbTest019_07* step019_07 = new CCommDbTest019_07; |
|
705 CleanupStack::PushL(step019_07); |
|
706 if ( doTestStepWithHeapFailureL( *step019_07, KErrNone) == EFail ) |
|
707 SetTestStepResult(EFail); CleanupStack::PopAndDestroy(step019_07); |
|
708 |
|
709 return TestStepResult(); |
|
710 |
|
711 } |
|
712 |
|
713 //EOF |