Static Public Member Functions | |
static TInt | CreateAndDestroyCFlexTimerL (TTestResult &aResult, CTestFlexTimer *cb) |
Create and destroy a timer - After. | |
static TInt | CreateAndExpireCFlexTimerL (TTestResult &aResult, CTestFlexTimer *cb) |
Create and expire a timer - After. | |
static TInt | CreateAndExpireTwoOverlappingAfterTimersL (TTestResult &aResult, CTestFlexTimer *cb) |
Create two timers and expire those - overlapping - After 32bit. | |
static TInt | CreateAndExpireTwoOverlappingAfterTimers64L (TTestResult &aResult, CTestFlexTimer *cb) |
Create two timers and expire those - overlapping - After 64bit. | |
static TInt | CreateAndExpireTwoNonOverlappingAfterTimersL (TTestResult &aResult, CTestFlexTimer *cb) |
Create two timers and expire those - not overlapping - After. | |
static TInt | HumongousAmountOfTimeridelidilidousL (TTestResult &aResult, CTestFlexTimer *cb) |
Create 2000 timers and expire those - After. | |
static TInt | CreateAndExpireThreeTimersL (TTestResult &aResult, CTestFlexTimer *cb) |
Create and expire three timers - After/At/AtUTC. | |
static TInt | NormalCancelL (TTestResult &aResult, CTestFlexTimer *cb) |
Cancel a timer. | |
static TInt | CancelTimerThatWouldHaveTriggeredAnotherTimerL (TTestResult &aResult, CTestFlexTimer *cb) |
Cancel a timer that would have triggered another timer - After. | |
static TInt | ConfigureCTimerOverlap1L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure time window - overlap 1. | |
static TInt | ConfigureCTimerOverlap2L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure time window - overlap 2. | |
static TInt | ConfigureCTimerOverlap3L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure time window - overlap 3. | |
static TInt | ConfigureCTimerNonOverlap1L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure time window - non-overlap. | |
static TInt | ConfigureCTimerNonOverlap2L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure time window - non-overlap 2. | |
static TInt | SystemTimeChangesL (TTestResult &aResult, CTestFlexTimer *cb) |
System time changes. | |
static TInt | TimeZoneChangesL (TTestResult &aResult, CTestFlexTimer *cb) |
Timezone changes. | |
static TInt | DumbAssParametersForCTimerL (TTestResult &aResult, CTestFlexTimer *cb) |
call After with dumbass parameters | |
static TInt | DumbAssParametersForCTimerZero32bitL (TTestResult &aResult, CTestFlexTimer *cb) |
call After with dumbass parameters | |
static TInt | DumbAssParametersForCTimerZero64bitL (TTestResult &aResult, CTestFlexTimer *cb) |
call After with dumbass parameters | |
static TInt | DumbAssParametersForCTimer64MaxL (TTestResult &aResult, CTestFlexTimer *cb) |
call After with dumbass parameters | |
static TInt | DumbAssParametersForCTimer64ThreeYearsL (TTestResult &aResult, CTestFlexTimer *cb) |
call After with dumbass parameters | |
static TInt | DumbAssParametersForCTimer64OneYearL (TTestResult &aResult, CTestFlexTimer *cb) |
call After with dumbass parameters | |
static TInt | AfterWithNegativeValueL (TTestResult &aResult, CTestFlexTimer *cb) |
call After with invalid parameters | |
static TInt | AfterWithNegativeValue64L (TTestResult &aResult, CTestFlexTimer *cb) |
call After(64bit) with invalid parameters | |
static TInt | AtWithCurrentTimeL (TTestResult &aResult, CTestFlexTimer *cb) |
call At with current time | |
static TInt | AtUTCWithCurrentTimeL (TTestResult &aResult, CTestFlexTimer *cb) |
call AtUTC with current time | |
static TInt | AtWithThreeYearsL (TTestResult &aResult, CTestFlexTimer *cb) |
call At with time three years from now | |
static TInt | AtWithOneYearL (TTestResult &aResult, CTestFlexTimer *cb) |
call At with time one year from now | |
static TInt | AtWithTimeInThePastL (TTestResult &aResult, CTestFlexTimer *cb) |
call At/AtUTC with invalid parameters | |
static TInt | CancelExpiredTimerL (TTestResult &aResult, CTestFlexTimer *cb) |
Cancel an expired timer - After. | |
static TInt | ConfigureLeftSideInThePastL (TTestResult &aResult, CTestFlexTimer *cb) |
Left edge of the time window lays in the past - max check. | |
static TInt | ConfigureLeftSideInThePastWindowCheckL (TTestResult &aResult, CTestFlexTimer *cb) |
Left edge of the time window lays in the past - window check. | |
static TInt | ConfigureWithNegativeWindowSize32L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure(32bit) with negative window_size. | |
static TInt | ConfigureWithNegativeWindowSize64L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure(64bit) with negative window_size. | |
static TInt | ConfigureWithMaxWindow32L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure(32bit) with 0xFFFFFFFF window_size. | |
static TInt | ConfigureWithThreeYearWindow64L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure(64bit) with three year window_size. | |
static TInt | ConfigureWithMaxWindow64L (TTestResult &aResult, CTestFlexTimer *cb) |
Configure(64bit) with max window_size. | |
static TInt | ConfigureWhileTimerIsInUseL (TTestResult &aResult, CTestFlexTimer *cb) |
Call configure after starting timer. | |
static TInt | TimerIsStartedTwiceL (TTestResult &aResult, CTestFlexTimer *cb) |
Start timer twice. | |
static TInt | InheritedFlexTimerCallbackStopSchedulerKErrNone (TAny *aArgument) |
Check timer stop code and stop active scheduler. | |
static TInt | InheritedFlexTimerCallbackStopSchedulerKErrCancel (TAny *aArgument) |
Check timer stop code and stop active scheduler. | |
static TInt | InheritedFlexTimerCallbackStopSchedulerKErrAbort (TAny *aArgument) |
Check timer stop code and stop active scheduler. | |
static TInt | InheritedFlexTimerCallbackKErrNone (TAny *aArgument) |
Check timer stop code. | |
static TInt | InheritedFlexTimerCallbackKErrAbort (TAny *aArgument) |
Check timer stop code. | |
static TInt | InheritedFlexTimerCallbackKErrNoneMarkTimestamp (TAny *aArgument) |
Check error code and mark timestamps. | |
static TInt | InheritedFlexTimerCallbackKErrNoneMarkTimestampStopScheduler (TAny *aArgument) |
Check error code and mark timestamps. | |
static TInt | ChangeSystemTime1sAndCancel (TAny *aArgument) |
Changes system time and cancels CPeriodic given as parameter. | |
static TInt | ChangeTimeZoneAndCancel (TAny *aArgument) |
Changes system time and cancels CPeriodic given as parameter. | |
static TInt | ChangeSecureTimeAndCancel (TAny *aArgument) |
Changes system time and cancels CPeriodic given as parameter. | |
static TInt | CancelCFlexTimer (TAny *aArgument) |
cancel CFlexTimer given as parameter | |
static TInt | StopSchedulerKErrNoneArray (TAny *aArgument) |
See that expiry reason is correct. Array versio. | |
static TInt | CancelCFlexTimerCancelPeriodic (TAny *aArgument) |
cancel CFlexTimer given as parameter also cancel CPeriodic | |
static TInt | CancelCFlexTimerArray (TAny *aArgument) |
cancel CFlexTimer given as parameter | |
static TInt | CancelCFlexTimerAndStopActiveScheduler (TAny *aArgument) |
cancel CFlexTimer given as parameter and stops active scheduler | |
static TInt | StopSchedulerAndCancel (TAny *aArgument) |
stops activescheduler and cancels it self | |
static TInt | StopTimer (TAny *aArgument) |
Stop timer and mark time to list given as parameter. | |
static TInt | ConfigureKErrInUseArray (TAny *aArgument) |
Try to configure timer and see that KErrInUse is returned. | |
static TInt | StartTimerAgainArray (TAny *aArgument) |
start timer again | |
static TInt | CpuLoadCreateAndExpireTwoOverlappingAfterTimersL (TTestResult &aResult, CTestFlexTimer *cb) |
Create two overlapping timers and start, run and expire them during high CPU load. | |
static TInt | CpuLoadManyTimersL (TTestResult &aResult, CTestFlexTimer *cb) |
Create 100 timers and start, run and expire them during high CPU load. |
STIF test cases for CFlexTimer class. This class implements test cases for testing CFlexTimer class.
static TInt CTestCFlexTimer::AfterWithNegativeValue64L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After(64bit) with invalid parameters
Test that negative intervals cause panic in After()
TBD |
static TInt CTestCFlexTimer::AfterWithNegativeValueL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After with invalid parameters
Test that negative intervals cause panic in After()
TBD |
static TInt CTestCFlexTimer::AtUTCWithCurrentTimeL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call AtUTC with current time
Test that AtUTC() with current time panics
TBD |
static TInt CTestCFlexTimer::AtWithCurrentTimeL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call At with current time
Test that At() with current time panics
TBD |
static TInt CTestCFlexTimer::AtWithOneYearL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call At with time one year from now
Test that At() with one year from now panics
TBD |
static TInt CTestCFlexTimer::AtWithThreeYearsL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call At with time three years from now
Test that At() with three years from now panics
TBD |
static TInt CTestCFlexTimer::AtWithTimeInThePastL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call At/AtUTC with invalid parameters
Test that calling At() with time that is in the past causes panic
TBD |
static TInt CTestCFlexTimer::CancelCFlexTimer | ( | TAny * | aArgument | ) | [static] |
cancel CFlexTimer given as parameter
N/A
N/A |
static TInt CTestCFlexTimer::CancelCFlexTimerAndStopActiveScheduler | ( | TAny * | aArgument | ) | [static] |
cancel CFlexTimer given as parameter and stops active scheduler
N/A
N/A |
static TInt CTestCFlexTimer::CancelCFlexTimerArray | ( | TAny * | aArgument | ) | [static] |
cancel CFlexTimer given as parameter
N/A
N/A |
static TInt CTestCFlexTimer::CancelCFlexTimerCancelPeriodic | ( | TAny * | aArgument | ) | [static] |
cancel CFlexTimer given as parameter also cancel CPeriodic
N/A
N/A |
static TInt CTestCFlexTimer::CancelExpiredTimerL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Cancel an expired timer - After.
Test that calling already expired timer does not cause any harm
TBD |
static TInt CTestCFlexTimer::CancelTimerThatWouldHaveTriggeredAnotherTimerL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Cancel a timer that would have triggered another timer - After.
Test that canceling timer actually cancels it
TBD |
static TInt CTestCFlexTimer::ChangeSecureTimeAndCancel | ( | TAny * | aArgument | ) | [static] |
Changes system time and cancels CPeriodic given as parameter.
N/A
N/A |
static TInt CTestCFlexTimer::ChangeSystemTime1sAndCancel | ( | TAny * | aArgument | ) | [static] |
Changes system time and cancels CPeriodic given as parameter.
N/A
N/A |
static TInt CTestCFlexTimer::ChangeTimeZoneAndCancel | ( | TAny * | aArgument | ) | [static] |
Changes system time and cancels CPeriodic given as parameter.
N/A
N/A |
static TInt CTestCFlexTimer::ConfigureCTimerNonOverlap1L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure time window - non-overlap.
Test that Timers are triggered correctly after Configure
TBD |
static TInt CTestCFlexTimer::ConfigureCTimerNonOverlap2L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure time window - non-overlap 2.
Test that Timers are triggered correctly after Configure
TBD |
static TInt CTestCFlexTimer::ConfigureCTimerOverlap1L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure time window - overlap 1.
Test that Timers are triggered correctly after Configure
TBD |
static TInt CTestCFlexTimer::ConfigureCTimerOverlap2L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure time window - overlap 2.
Test that Timers are triggered correctly after Configure
TBD |
static TInt CTestCFlexTimer::ConfigureCTimerOverlap3L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure time window - overlap 3.
Test that if many Configures are used, latest is the one that remains. Also test 0 and 100% values
TBD |
static TInt CTestCFlexTimer::ConfigureKErrInUseArray | ( | TAny * | aArgument | ) | [static] |
Try to configure timer and see that KErrInUse is returned.
N/A |
static TInt CTestCFlexTimer::ConfigureLeftSideInThePastL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Left edge of the time window lays in the past - max check.
Test that no harm is done if left side of the window lays in the past
TBD |
static TInt CTestCFlexTimer::ConfigureLeftSideInThePastWindowCheckL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Left edge of the time window lays in the past - window check.
Test that window works when left side of the window lays in the past
TBD |
static TInt CTestCFlexTimer::ConfigureWhileTimerIsInUseL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Call configure after starting timer.
Test that configure is not used and returns error while timer is already running
TBD |
static TInt CTestCFlexTimer::ConfigureWithMaxWindow32L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure(32bit) with 0xFFFFFFFF window_size.
Test that 0xFFFFFFFF is valid window size
TBD |
static TInt CTestCFlexTimer::ConfigureWithMaxWindow64L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure(64bit) with max window_size.
Test that negative window panics client
TBD |
static TInt CTestCFlexTimer::ConfigureWithNegativeWindowSize32L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure(32bit) with negative window_size.
Test that negative window panics client
TBD |
static TInt CTestCFlexTimer::ConfigureWithNegativeWindowSize64L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure(64bit) with negative window_size.
Test that negative window panics client
TBD |
static TInt CTestCFlexTimer::ConfigureWithThreeYearWindow64L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Configure(64bit) with three year window_size.
Test that negative window panics client
TBD |
static TInt CTestCFlexTimer::CpuLoadCreateAndExpireTwoOverlappingAfterTimersL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create two overlapping timers and start, run and expire them during high CPU load.
Test steps:
1. Create CFlexTimer_1, (inteval = 10s, window=0.2*10s (default))
2. Create CFlexTimer_2, (inteval = 8s, window=0.2*8s (default))
3. Start 99% CPU Load
4. Start timers
5. Wait timers to expire
6. Stop CPU load
5. Check that timers expired within ~8sec
N/A |
static TInt CTestCFlexTimer::CpuLoadManyTimersL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create 100 timers and start, run and expire them during high CPU load.
Test steps:
1. Create 100 random timers with random interval and window.
3. Start 98% CPU Load
4. Start timers
5. Wait timers to expire
6. Stop CPU load
5. Check that timers expired within expected limits.
N/A |
static TInt CTestCFlexTimer::CreateAndDestroyCFlexTimerL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create and destroy a timer - After.
Test that timer can be instantiated and deleted.
aResult | Result of the test for the FW. |
static TInt CTestCFlexTimer::CreateAndExpireCFlexTimerL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create and expire a timer - After.
Test that timer expires at it's max time
aResult | Result of the test for the FW. |
static TInt CTestCFlexTimer::CreateAndExpireThreeTimersL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create and expire three timers - After/At/AtUTC.
Test that At, After and AtUTC are handled equally
TBD |
static TInt CTestCFlexTimer::CreateAndExpireTwoNonOverlappingAfterTimersL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create two timers and expire those - not overlapping - After.
Test that two timer that are not overlapping are fired at their own max time.
TBD |
static TInt CTestCFlexTimer::CreateAndExpireTwoOverlappingAfterTimers64L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create two timers and expire those - overlapping - After 64bit.
Test that two overlapping timers are fired at latest possible moment
TBD |
static TInt CTestCFlexTimer::CreateAndExpireTwoOverlappingAfterTimersL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create two timers and expire those - overlapping - After 32bit.
Test that two overlapping timers are fired at latest possible moment
aResult | Result of the test for the FW. |
static TInt CTestCFlexTimer::DumbAssParametersForCTimer64MaxL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After with dumbass parameters
Test that calling After(64bit) with 0xFFFFFFFFFFFFFFFF interval panics client
TBD |
static TInt CTestCFlexTimer::DumbAssParametersForCTimer64OneYearL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After with dumbass parameters
Test that calling After(64bit) with one year interval panics client
TBD |
static TInt CTestCFlexTimer::DumbAssParametersForCTimer64ThreeYearsL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After with dumbass parameters
Test that calling After(64bit) with three years interval panics client
TBD |
static TInt CTestCFlexTimer::DumbAssParametersForCTimerL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After with dumbass parameters
Test that stupid parameters do not cause any harm
TBD |
static TInt CTestCFlexTimer::DumbAssParametersForCTimerZero32bitL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After with dumbass parameters
Test that calling After(32bit) with zero interval panics client
TBD |
static TInt CTestCFlexTimer::DumbAssParametersForCTimerZero64bitL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
call After with dumbass parameters
Test that calling After(64bit) with zero interval panics client
TBD |
static TInt CTestCFlexTimer::HumongousAmountOfTimeridelidilidousL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Create 2000 timers and expire those - After.
Test that many timers are started and expired at rapid sequence
TBD |
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackKErrAbort | ( | TAny * | aArgument | ) | [static] |
Check timer stop code.
Simple function that checks that Error code is KErrAbort
N/A |
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackKErrNone | ( | TAny * | aArgument | ) | [static] |
Check timer stop code.
Simple function that checks that Error code is KErrNone
N/A |
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackKErrNoneMarkTimestamp | ( | TAny * | aArgument | ) | [static] |
Check error code and mark timestamps.
Function that checks that Error code is KErrNone. ans saves timestamps
N/A |
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackKErrNoneMarkTimestampStopScheduler | ( | TAny * | aArgument | ) | [static] |
Check error code and mark timestamps.
Function that checks that Error code is KErrNone. ans saves timestamps
N/A |
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackStopSchedulerKErrAbort | ( | TAny * | aArgument | ) | [static] |
Check timer stop code and stop active scheduler.
Simple function that stops the active scheduler. Checks that Error code is KErrAbort
N/A |
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackStopSchedulerKErrCancel | ( | TAny * | aArgument | ) | [static] |
Check timer stop code and stop active scheduler.
Simple function that stops the active scheduler. Checks that Error code is KErrCancel
N/A |
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackStopSchedulerKErrNone | ( | TAny * | aArgument | ) | [static] |
Check timer stop code and stop active scheduler.
Simple function that stops the active scheduler. Checks that Error code is KErrNone
N/A |
static TInt CTestCFlexTimer::NormalCancelL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Cancel a timer.
See that normal cancelling works
TBD |
static TInt CTestCFlexTimer::StartTimerAgainArray | ( | TAny * | aArgument | ) | [static] |
start timer again
N/A |
static TInt CTestCFlexTimer::StopSchedulerAndCancel | ( | TAny * | aArgument | ) | [static] |
stops activescheduler and cancels it self
N/A
N/A |
static TInt CTestCFlexTimer::StopSchedulerKErrNoneArray | ( | TAny * | aArgument | ) | [static] |
See that expiry reason is correct. Array versio.
N/A
N/A |
static TInt CTestCFlexTimer::StopTimer | ( | TAny * | aArgument | ) | [static] |
Stop timer and mark time to list given as parameter.
N/A |
static TInt CTestCFlexTimer::SystemTimeChangesL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
System time changes.
Test that changing system time cancels AT and AtUTC timers and leaves After timers running
TBD |
static TInt CTestCFlexTimer::TimerIsStartedTwiceL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Start timer twice.
Test that client is paniced if timer is started twise
TBD |
static TInt CTestCFlexTimer::TimeZoneChangesL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | cb | |||
) | [static] |
Timezone changes.
Test that changing time zone cancels AT and AtUTC timers and leaves After timers running
TBD |