equal
deleted
inserted
replaced
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
73 { |
73 { |
74 |
74 |
75 INFO_PRINTF1(_L("Step 024.01 called ")); |
75 INFO_PRINTF1(_L("Step 024.01 called ")); |
76 if ( executeStepL() == KErrNone ) |
76 if ( executeStepL() == KErrNone ) |
77 SetTestStepResult(EPass); |
77 SetTestStepResult(EPass); |
|
78 |
78 else |
79 else |
79 SetTestStepResult(EFail); |
80 SetTestStepResult(EFail); |
|
81 |
80 |
82 |
81 return TestStepResult(); |
83 return TestStepResult(); |
82 } |
84 } |
83 |
85 |
84 |
86 |
284 |
286 |
285 TVerdict CFloggerTest024_02::doTestStepL( ) |
287 TVerdict CFloggerTest024_02::doTestStepL( ) |
286 { |
288 { |
287 if ( executeStepL() == KErrNone ) |
289 if ( executeStepL() == KErrNone ) |
288 SetTestStepResult(EPass); |
290 SetTestStepResult(EPass); |
|
291 |
289 else |
292 else |
290 SetTestStepResult(EFail); |
293 SetTestStepResult(EFail); |
|
294 |
291 |
295 |
292 return TestStepResult(); |
296 return TestStepResult(); |
293 } |
297 } |
294 |
298 |
295 |
299 |
405 |
409 |
406 TVerdict CFloggerTest024_03::doTestStepL( ) |
410 TVerdict CFloggerTest024_03::doTestStepL( ) |
407 { |
411 { |
408 if ( executeStepL() == KErrNone ) |
412 if ( executeStepL() == KErrNone ) |
409 SetTestStepResult(EPass); |
413 SetTestStepResult(EPass); |
|
414 |
410 else |
415 else |
411 SetTestStepResult(EFail); |
416 SetTestStepResult(EFail); |
|
417 |
412 |
418 |
413 return TestStepResult(); |
419 return TestStepResult(); |
414 } |
420 } |
415 |
421 |
416 |
422 |
556 |
562 |
557 TVerdict CFloggerTest024_04::doTestStepL( ) |
563 TVerdict CFloggerTest024_04::doTestStepL( ) |
558 { |
564 { |
559 if ( executeStepL() == KErrNone ) |
565 if ( executeStepL() == KErrNone ) |
560 SetTestStepResult(EPass); |
566 SetTestStepResult(EPass); |
|
567 |
561 else |
568 else |
562 SetTestStepResult(EFail); |
569 SetTestStepResult(EFail); |
|
570 |
563 |
571 |
564 return TestStepResult(); |
572 return TestStepResult(); |
565 } |
573 } |
566 |
574 |
567 |
575 |
669 |
677 |
670 TVerdict CFloggerTest024_05::doTestStepL( ) |
678 TVerdict CFloggerTest024_05::doTestStepL( ) |
671 { |
679 { |
672 if ( executeStepL() == KErrNone ) |
680 if ( executeStepL() == KErrNone ) |
673 SetTestStepResult(EPass); |
681 SetTestStepResult(EPass); |
|
682 |
674 else |
683 else |
675 SetTestStepResult(EFail); |
684 SetTestStepResult(EFail); |
|
685 |
676 |
686 |
677 return TestStepResult(); |
687 return TestStepResult(); |
678 } |
688 } |
679 |
689 |
680 TInt CFloggerTest024_05::executeStepL(TBool) |
690 TInt CFloggerTest024_05::executeStepL(TBool) |
780 |
790 |
781 TVerdict CFloggerTest024_06::doTestStepL( ) |
791 TVerdict CFloggerTest024_06::doTestStepL( ) |
782 { |
792 { |
783 if ( executeStepL() == KErrNone ) |
793 if ( executeStepL() == KErrNone ) |
784 SetTestStepResult(EPass); |
794 SetTestStepResult(EPass); |
|
795 |
785 else |
796 else |
786 SetTestStepResult(EFail); |
797 SetTestStepResult(EFail); |
|
798 |
787 |
799 |
788 return TestStepResult(); |
800 return TestStepResult(); |
789 } |
801 } |
790 |
802 |
791 |
803 |
900 TVerdict CFloggerTest024_07::doTestStepL( ) |
912 TVerdict CFloggerTest024_07::doTestStepL( ) |
901 { |
913 { |
902 INFO_PRINTF1(_L("Step 027.13 called ")); |
914 INFO_PRINTF1(_L("Step 027.13 called ")); |
903 if ( executeStepL() == KErrNone ) |
915 if ( executeStepL() == KErrNone ) |
904 SetTestStepResult(EPass); |
916 SetTestStepResult(EPass); |
|
917 |
905 else |
918 else |
906 SetTestStepResult(EFail); |
919 SetTestStepResult(EFail); |
|
920 |
907 INFO_PRINTF1(_L("leaving Step 027.13")); |
921 INFO_PRINTF1(_L("leaving Step 027.13")); |
908 User::After(KTimeForDisplay); |
922 User::After(KTimeForDisplay); |
909 |
923 |
910 |
924 |
911 return TestStepResult(); |
925 return TestStepResult(); |
1065 |
1079 |
1066 TVerdict CFloggerTest024_08::doTestStepL( ) |
1080 TVerdict CFloggerTest024_08::doTestStepL( ) |
1067 { |
1081 { |
1068 if ( executeStepL() == KErrNone ) |
1082 if ( executeStepL() == KErrNone ) |
1069 SetTestStepResult(EPass); |
1083 SetTestStepResult(EPass); |
|
1084 |
1070 else |
1085 else |
1071 SetTestStepResult(EFail); |
1086 SetTestStepResult(EFail); |
|
1087 |
1072 User::After(KTimeForDisplay); |
1088 User::After(KTimeForDisplay); |
1073 |
1089 |
1074 |
1090 |
1075 return TestStepResult(); |
1091 return TestStepResult(); |
1076 } |
1092 } |
1125 } |
1141 } |
1126 time = TTime(dateTime); |
1142 time = TTime(dateTime); |
1127 |
1143 |
1128 User::SetHomeTime(time); |
1144 User::SetHomeTime(time); |
1129 TTime currentMicrosecs; |
1145 TTime currentMicrosecs; |
1130 TTimeIntervalDays newDate; |
|
1131 currentMicrosecs.HomeTime(); |
1146 currentMicrosecs.HomeTime(); |
1132 newDate = currentMicrosecs.DaysFrom(TTime(0)); |
|
1133 |
1147 |
1134 RFileLogger ::Write(KStdSubsysTag16, KStdCompTag16,EFileLoggingModeAppend, KTestMessage); |
1148 RFileLogger ::Write(KStdSubsysTag16, KStdCompTag16,EFileLoggingModeAppend, KTestMessage); |
1135 User::After(KTimeToLog); |
1149 User::After(KTimeToLog); |
1136 TRAPD(r, ret = DoTestCheckWriteL()); |
1150 TRAPD(r, ret = DoTestCheckWriteL()); |
1137 if (r != KErrNone) |
1151 if (r != KErrNone) |