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