1 /* |
1 /* |
2 * Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). |
2 * ============================================================================== |
3 * All rights reserved. |
3 * Name : FavouritesEngineTest.h |
4 * This component and the accompanying materials are made available |
4 * Part of : ?Subsystem_name / FavouritesEngineTest |
5 * under the terms of the License "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 * |
5 * |
9 * Initial Contributors: |
6 * Description : FavouritesEngineTest test module. |
10 * Nokia Corporation - initial contribution. |
7 * Version: 0.5 |
11 * |
8 * |
12 * Contributors: |
9 * Copyright (C) 2002 Nokia Corporation. |
|
10 * This material, including documentation and any related |
|
11 * computer programs, is protected by copyright controlled by |
|
12 * Nokia Corporation. All rights are reserved. Copying, |
|
13 * including reproducing, storing, adapting or translating, any |
|
14 * or all of this material requires the prior written consent of |
|
15 * Nokia Corporation. This material also contains confidential |
|
16 * information which may not be disclosed to others without the |
|
17 * prior written consent of Nokia Corporation. |
13 * |
18 * |
14 * Description: FavouritesEngineTest test module. |
19 * ============================================================================ |
15 * |
|
16 */ |
20 */ |
17 |
|
18 |
21 |
19 |
22 |
20 #ifndef FAVOURITESENGINETEST_H |
23 #ifndef FAVOURITESENGINETEST_H |
21 #define FAVOURITESENGINETEST_H |
24 #define FAVOURITESENGINETEST_H |
22 |
25 |
340 * that is not returned as test case result in aResult) |
343 * that is not returned as test case result in aResult) |
341 */ |
344 */ |
342 TInt ItemAssignTestL( TTestResult& aResult ); |
345 TInt ItemAssignTestL( TTestResult& aResult ); |
343 |
346 |
344 /** |
347 /** |
|
348 * FavouritesItem Assign(=) operator test case. |
|
349 * @since ?Series60_version |
|
350 * @param aResult Test case result (PASS/FAIL) |
|
351 * @return Symbian OS error code (test case execution error |
|
352 * that is not returned as test case result in aResult) |
|
353 */ |
|
354 TInt ItemAssignSelfTestL( TTestResult& aResult ); |
|
355 |
|
356 /** |
|
357 * FavouritesItem Assign(=) operator test case. |
|
358 * @since ?Series60_version |
|
359 * @param aResult Test case result (PASS/FAIL) |
|
360 * @return Symbian OS error code (test case execution error |
|
361 * that is not returned as test case result in aResult) |
|
362 */ |
|
363 TInt ItemAssignCompleteTestL( TTestResult& aResult ); |
|
364 |
|
365 /** |
345 * FavouritesItem Uid test case. |
366 * FavouritesItem Uid test case. |
346 * @since ?Series60_version |
367 * @since ?Series60_version |
347 * @param aResult Test case result (PASS/FAIL) |
368 * @param aResult Test case result (PASS/FAIL) |
348 * @return Symbian OS error code (test case execution error |
369 * @return Symbian OS error code (test case execution error |
349 * that is not returned as test case result in aResult) |
370 * that is not returned as test case result in aResult) |
430 * that is not returned as test case result in aResult) |
451 * that is not returned as test case result in aResult) |
431 */ |
452 */ |
432 TInt ItemIsItemTestL( TTestResult& aResult ); |
453 TInt ItemIsItemTestL( TTestResult& aResult ); |
433 |
454 |
434 /** |
455 /** |
435 * FavouritesItem IsFolder test case. |
456 * FavouritesItem IsItemEFolder test case. |
436 * @since ?Series60_version |
457 * @since ?Series60_version |
437 * @param aResult Test case result (PASS/FAIL) |
458 * @param aResult Test case result (PASS/FAIL) |
438 * @return Symbian OS error code (test case execution error |
459 * @return Symbian OS error code (test case execution error |
439 * that is not returned as test case result in aResult) |
460 * that is not returned as test case result in aResult) |
440 */ |
461 */ |
|
462 TInt ItemIsItemEFolderTestL( TTestResult& aResult ); |
|
463 |
|
464 /** |
|
465 * FavouritesItem IsFolder test case for type EItem. |
|
466 * @since ?Series60_version |
|
467 * @param aResult Test case result (PASS/FAIL) |
|
468 * @return Symbian OS error code (test case execution error |
|
469 * that is not returned as test case result in aResult) |
|
470 */ |
|
471 |
441 TInt ItemIsFolderTestL( TTestResult& aResult ); |
472 TInt ItemIsFolderTestL( TTestResult& aResult ); |
|
473 /** |
|
474 * FavouritesItem IsFolder test case for type EFolder. |
|
475 * @since ?Series60_version |
|
476 * @param aResult Test case result (PASS/FAIL) |
|
477 * @return Symbian OS error code (test case execution error |
|
478 * that is not returned as test case result in aResult) |
|
479 */ |
|
480 |
|
481 TInt ItemIsFolderEFolderTestL( TTestResult& aResult ); |
442 |
482 |
443 /** |
483 /** |
444 * FavouritesItem IsFactoryItem test case. |
484 * FavouritesItem IsFactoryItem test case. |
445 * @since ?Series60_version |
485 * @since ?Series60_version |
446 * @param aResult Test case result (PASS/FAIL) |
486 * @param aResult Test case result (PASS/FAIL) |
493 * that is not returned as test case result in aResult) |
533 * that is not returned as test case result in aResult) |
494 */ |
534 */ |
495 TInt ItemSetTypeTestL( TTestResult& aResult ); |
535 TInt ItemSetTypeTestL( TTestResult& aResult ); |
496 |
536 |
497 /** |
537 /** |
|
538 * FavouritesItem SetTypeNone test case. |
|
539 * @since ?Series60_version |
|
540 * @param aResult Test case result (PASS/FAIL) |
|
541 * @return Symbian OS error code (test case execution error |
|
542 * that is not returned as test case result in aResult) |
|
543 */ |
|
544 TInt ItemSetTypeNoneTestL( TTestResult& aResult ); |
|
545 |
|
546 /** |
498 * FavouritesItem SetNameL test case. |
547 * FavouritesItem SetNameL test case. |
499 * @since ?Series60_version |
548 * @since ?Series60_version |
500 * @param aResult Test case result (PASS/FAIL) |
549 * @param aResult Test case result (PASS/FAIL) |
501 * @return Symbian OS error code (test case execution error |
550 * @return Symbian OS error code (test case execution error |
502 * that is not returned as test case result in aResult) |
551 * that is not returned as test case result in aResult) |
503 */ |
552 */ |
504 TInt ItemSetNameLTestL( TTestResult& aResult ); |
553 TInt ItemSetNameLTestL( TTestResult& aResult ); |
505 |
554 |
506 /** |
555 /** |
|
556 * FavouritesItem ItemSetNameMaxLengthTruncateLTestL test case. |
|
557 * @since ?Series60_version |
|
558 * @param aResult Test case result (PASS/FAIL) |
|
559 * @return Symbian OS error code (test case execution error |
|
560 * that is not returned as test case result in aResult) |
|
561 */ |
|
562 TInt ItemSetNameMaxLengthTruncateLTestL( TTestResult& aResult ); |
|
563 |
|
564 /** |
|
565 * FavouritesItem ItemSetNameTrimStringLTestL test case. |
|
566 * @since ?Series60_version |
|
567 * @param aResult Test case result (PASS/FAIL) |
|
568 * @return Symbian OS error code (test case execution error |
|
569 * that is not returned as test case result in aResult) |
|
570 */ |
|
571 TInt ItemSetNameTrimStringLTestL( TTestResult& aResult ); |
|
572 |
|
573 /** |
|
574 * FavouritesItem ItemSetNameRTLMarkLTestL test case. |
|
575 * @since ?Series60_version |
|
576 * @param aResult Test case result (PASS/FAIL) |
|
577 * @return Symbian OS error code (test case execution error |
|
578 * that is not returned as test case result in aResult) |
|
579 */ |
|
580 TInt ItemSetNameRTLMarkLTestL( TTestResult& aResult ); |
|
581 |
|
582 /** |
|
583 * FavouritesItem ItemSetNameEmptyStringLTestL test case. |
|
584 * @since ?Series60_version |
|
585 * @param aResult Test case result (PASS/FAIL) |
|
586 * @return Symbian OS error code (test case execution error |
|
587 * that is not returned as test case result in aResult) |
|
588 */ |
|
589 TInt ItemSetNameEmptyStringLTestL( TTestResult& aResult ); |
|
590 |
|
591 /** |
|
592 * FavouritesItem ItemSetNameWhiteSpaceLTestL test case. |
|
593 * @since ?Series60_version |
|
594 * @param aResult Test case result (PASS/FAIL) |
|
595 * @return Symbian OS error code (test case execution error |
|
596 * that is not returned as test case result in aResult) |
|
597 */ |
|
598 TInt ItemSetNameWhiteSpaceLTestL( TTestResult& aResult ); |
|
599 |
|
600 /** |
|
601 * FavouritesItem SetNameFolderL test case. |
|
602 * @since ?Series60_version |
|
603 * @param aResult Test case result (PASS/FAIL) |
|
604 * @return Symbian OS error code (test case execution error |
|
605 * that is not returned as test case result in aResult) |
|
606 */ |
|
607 TInt ItemSetNameFolderLTestL( TTestResult& aResult ); |
|
608 |
|
609 /** |
507 * FavouritesItem SetUrlL test case. |
610 * FavouritesItem SetUrlL test case. |
508 * @since ?Series60_version |
611 * @since ?Series60_version |
509 * @param aResult Test case result (PASS/FAIL) |
612 * @param aResult Test case result (PASS/FAIL) |
510 * @return Symbian OS error code (test case execution error |
613 * @return Symbian OS error code (test case execution error |
511 * that is not returned as test case result in aResult) |
614 * that is not returned as test case result in aResult) |
527 * @param aResult Test case result (PASS/FAIL) |
630 * @param aResult Test case result (PASS/FAIL) |
528 * @return Symbian OS error code (test case execution error |
631 * @return Symbian OS error code (test case execution error |
529 * that is not returned as test case result in aResult) |
632 * that is not returned as test case result in aResult) |
530 */ |
633 */ |
531 TInt ItemSetUserNameLTestL( TTestResult& aResult ); |
634 TInt ItemSetUserNameLTestL( TTestResult& aResult ); |
|
635 |
|
636 |
|
637 /** |
|
638 * FavouritesItem ItemSetUserNameMaxLengthLTestL test case. |
|
639 * @since ?Series60_version |
|
640 * @param aResult Test case result (PASS/FAIL) |
|
641 * @return Symbian OS error code (test case execution error |
|
642 * that is not returned as test case result in aResult) |
|
643 */ |
|
644 TInt ItemSetUserNameMaxLengthLTestL( TTestResult& aResult ); |
|
645 |
|
646 /** |
|
647 * FavouritesItem ItemSetUserNameTruncateLengthLTestL test case. |
|
648 * @since ?Series60_version |
|
649 * @param aResult Test case result (PASS/FAIL) |
|
650 * @return Symbian OS error code (test case execution error |
|
651 * that is not returned as test case result in aResult) |
|
652 */ |
|
653 TInt ItemSetUserNameTruncateLengthLTestL( TTestResult& aResult ); |
532 |
654 |
533 /** |
655 /** |
534 * FavouritesItem SetPasswordL test case. |
656 * FavouritesItem SetPasswordL test case. |
535 * @since ?Series60_version |
657 * @since ?Series60_version |
536 * @param aResult Test case result (PASS/FAIL) |
658 * @param aResult Test case result (PASS/FAIL) |
982 * @return Symbian OS error code (test case execution error |
1104 * @return Symbian OS error code (test case execution error |
983 * that is not returned as test case result in aResult) |
1105 * that is not returned as test case result in aResult) |
984 */ |
1106 */ |
985 TInt DbDeleteFolderTestL( TTestResult& aResult ); |
1107 TInt DbDeleteFolderTestL( TTestResult& aResult ); |
986 |
1108 |
|
1109 /** |
|
1110 * FavouritesItem IsHidden test case. |
|
1111 * @since ?Series60_version |
|
1112 * @param aResult Test case result (PASS/FAIL) |
|
1113 * @return Symbian OS error code (test case execution error |
|
1114 * that is not returned as test case result in aResult) |
|
1115 */ |
|
1116 TInt ItemIsHiddenTestL( TTestResult& aResult ); |
|
1117 |
|
1118 /** |
|
1119 * FavouritesItem SetHidden test case. |
|
1120 * @since ?Series60_version |
|
1121 * @param aResult Test case result (PASS/FAIL) |
|
1122 * @return Symbian OS error code (test case execution error |
|
1123 * that is not returned as test case result in aResult) |
|
1124 */ |
|
1125 TInt ItemSetHiddenTestL( TTestResult& aResult ); |
|
1126 |
987 private: // Functions to test TFavouritesWapAp interface |
1127 private: // Functions to test TFavouritesWapAp interface |
988 |
1128 |
989 /** |
1129 /** |
990 * TFavouritesWapAp constructor test case. |
1130 * TFavouritesWapAp constructor test case. |
991 * @since ?Series60_version |
1131 * @since ?Series60_version |
1010 * @param aResult Test case result (PASS/FAIL) |
1150 * @param aResult Test case result (PASS/FAIL) |
1011 * @return Symbian OS error code (test case execution error |
1151 * @return Symbian OS error code (test case execution error |
1012 * that is not returned as test case result in aResult) |
1152 * that is not returned as test case result in aResult) |
1013 */ |
1153 */ |
1014 TInt WapApAssignWithApIdTest( TTestResult& aResult ); |
1154 TInt WapApAssignWithApIdTest( TTestResult& aResult ); |
|
1155 |
|
1156 /** |
|
1157 * TFavouritesWapAp assign operator using self ApId test case. |
|
1158 * @since ?Series60_version |
|
1159 * @param aResult Test case result (PASS/FAIL) |
|
1160 * @return Symbian OS error code (test case execution error |
|
1161 * that is not returned as test case result in aResult) |
|
1162 */ |
|
1163 TInt WapApAssignSelfWithApTest( TTestResult& aResult ); |
1015 |
1164 |
1016 /** |
1165 /** |
1017 * TFavouritesWapAp SetNull test case. |
1166 * TFavouritesWapAp SetNull test case. |
1018 * @since ?Series60_version |
1167 * @since ?Series60_version |
1019 * @param aResult Test case result (PASS/FAIL) |
1168 * @param aResult Test case result (PASS/FAIL) |