diff -r 8b0c979bbe8c -r ac5daea24fb0 keepalive/flextimer/test/testflextimer/docs/html/class_c_test_c_flex_timer.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/keepalive/flextimer/test/testflextimer/docs/html/class_c_test_c_flex_timer.html Wed Oct 27 17:43:56 2010 +0300 @@ -0,0 +1,2649 @@ + + + + + +FlexTimerStifSpecs: CTestCFlexTimer Class Reference + + + + + + + + + +
+

CTestCFlexTimer Class Reference

+

List of all members.

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

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.
+

Detailed Description

+

STIF test cases for CFlexTimer class. This class implements test cases for testing CFlexTimer class.

+
Since:
TB10.1
+

Member Function Documentation

+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::AfterWithNegativeValue64L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call After(64bit) with invalid parameters

+

Test that negative intervals cause panic in After()
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(64bit) with negative interval See that it causes a panic.
    + TODO what panic? Shouldn't this read in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::AfterWithNegativeValueL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call After with invalid parameters

+

Test that negative intervals cause panic in After()
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(32bit) with negative interval See that it causes a panic.
    + TODO what panic? Shouldn't this read in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::AtUTCWithCurrentTimeL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call AtUTC with current time

+

Test that AtUTC() with current time panics
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call At with current time. See that client panics
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::AtWithCurrentTimeL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call At with current time

+

Test that At() with current time panics
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call At with current time. See that client panics
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call At with one year from now.
  • +
  • Cancel timer
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call At with three years from now. See that client panics
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call At with time in the past
    + See that it causes panic TODO what panic? Shouldn't this read in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::CancelCFlexTimer (TAny *  aArgument )  [static]
+
+
+ +

cancel CFlexTimer given as parameter

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::CancelCFlexTimerAndStopActiveScheduler (TAny *  aArgument )  [static]
+
+
+ +

cancel CFlexTimer given as parameter and stops active scheduler

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::CancelCFlexTimerArray (TAny *  aArgument )  [static]
+
+
+ +

cancel CFlexTimer given as parameter

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::CancelCFlexTimerCancelPeriodic (TAny *  aArgument )  [static]
+
+
+ +

cancel CFlexTimer given as parameter also cancel CPeriodic

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start timer and wait for it to expire. After it expires cancel it
    +
  • +
  • Start timer again and see that it expires normally.
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start two timers with overlapping windows.
    +
  • +
  • Cancel first timer before it expires and check that second timer is fired at it's max time.
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::ChangeSecureTimeAndCancel (TAny *  aArgument )  [static]
+
+
+ +

Changes system time and cancels CPeriodic given as parameter.

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::ChangeSystemTime1sAndCancel (TAny *  aArgument )  [static]
+
+
+ +

Changes system time and cancels CPeriodic given as parameter.

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::ChangeTimeZoneAndCancel (TAny *  aArgument )  [static]
+
+
+ +

Changes system time and cancels CPeriodic given as parameter.

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureCTimerNonOverlap1L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure time window - non-overlap.

+

Test that Timers are triggered correctly after Configure
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use two timers. Set first timer having 0% window and second having 10% window.
    +
  • +
  • Set timers so that second timers max window is 1 seconds earlier than first timers min window.
    +
  • +
  • See that both timers fire at max time
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureCTimerNonOverlap2L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure time window - non-overlap 2.

+

Test that Timers are triggered correctly after Configure
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use two timers. Set first timer having 100% window
  • +
  • then overwrite that by giving first timer 50% window.
    +
  • +
  • Give second timer 50% window.
    +
  • +
  • Set timers so that second timers max window is 1 seconds earlier than first timers min window.
    +
  • +
  • See that both timers fire at max time
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureCTimerOverlap1L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure time window - overlap 1.

+

Test that Timers are triggered correctly after Configure
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use two timers. Set first timer having 50% window and second having 10% window.
    +
  • +
  • Set timers so that first timers max window overlaps 1s with second timers window -> first timer causes second timer to be fired
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureCTimerOverlap2L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure time window - overlap 2.

+

Test that Timers are triggered correctly after Configure
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use 64bit IF.
  • +
  • Use two timers. Set first timer having 50% window and second having 10% window.
    +
  • +
  • Set timers so that first timers min window overlaps 1s with second timers window -> second timer causes first timer to be fired
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use two timers. Set first timer having 0% window then overwrite that by giving 100% window to first timer.
    +
  • +
  • Give second timer 0% window.
    +
  • +
  • Start second timer so that it overlaps with first timer
    +
  • +
  • See that first timer is fired when second is fired.
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureKErrInUseArray (TAny *  aArgument )  [static]
+
+
+ +

Try to configure timer and see that KErrInUse is returned.

+
    +
  • Parameters:
    + + +
    N/A 
    +
    +
    +
    Returns:
    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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call Configure with window_size x.
    +
  • +
  • Call After with interval < x.
    +
  • +
  • See that timer expires when max time is reached
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call Configure with window_size x.
    +
  • +
  • Call After with interval < x.
    +
  • +
  • Start another timer that expires before first timer.
    +
  • +
  • See that both timers expire when max time of the second timer is reached.
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start timer.
    +
  • +
  • Call Configure.
    +
  • +
  • See that configure returns KErrInUse.
    +
  • +
  • See that timer expires normally.
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureWithMaxWindow32L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure(32bit) with 0xFFFFFFFF window_size.

+

Test that 0xFFFFFFFF is valid window size
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call Configure(32bit) with 0xFFFFFFFF window_size value.
    +
  • +
  • See that it causes no harm
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureWithMaxWindow64L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure(64bit) with max window_size.

+

Test that negative window panics client
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call Configure(64bit) with max window_size value.
    +
  • +
  • See that it causes panic TODO what panic? Shouldn't this read in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureWithNegativeWindowSize32L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure(32bit) with negative window_size.

+

Test that negative window panics client
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call Configure(32bit) with negative window_size value.
    +
  • +
  • See that it causes panic TODO what panic? Shouldn't this read in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureWithNegativeWindowSize64L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure(64bit) with negative window_size.

+

Test that negative window panics client
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call Configure(64bit) with negative window_size value.
    +
  • +
  • See that it causes panic TODO what panic? Shouldn't this read in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::ConfigureWithThreeYearWindow64L (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Configure(64bit) with three year window_size.

+

Test that negative window panics client
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call Configure(64bit) with three year window_size value.
    +
  • +
  • See that it causes panic TODO what panic? Shouldn't this read in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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.
+

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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.
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Create, start and delete timer.
  • +
+
Parameters:
+ + +
aResult Result of the test for the FW.
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::CreateAndExpireCFlexTimerL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Create and expire a timer - After.

+

Test that timer expires at it's max time
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • See that timeout is happening at latest possible moment.
  • +
+
Parameters:
+ + +
aResult Result of the test for the FW.
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start timers and wait for them to expire.
    +
  • +
  • Start timers so that timers started with After and At overlap and timer started with AtUTC does not overlap.
    +
  • +
  • See that After and At expire at the same time and that
  • +
  • AT UTC expires at it's max time
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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.
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use non-overlapping time windows. (default window).
    +
  • +
  • See that both timers expire at latest possible moment.
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use overlapping time windows. (default window).
    +
  • +
  • See that both timers expire when first timer expires.
    +
  • +
  • use 64bit After().
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Use overlapping time windows. (default window).
    +
  • +
  • See that both timers expire when first timer expires.
    +
  • +
  • Use 32bit After()
  • +
+
Parameters:
+ + +
aResult Result of the test for the FW.
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::DumbAssParametersForCTimer64MaxL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call After with dumbass parameters

+

Test that calling After(64bit) with 0xFFFFFFFFFFFFFFFF interval panics client
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(64bit) with interval 0xFFFFFFFFFFFFFFFF.
  • +
  • See that client is paniced
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(64bit) with interval 30*1000*1000*1000*1000.
  • +
  • Cancel timer
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(64bit) with interval 93312000*1000*1000.
  • +
  • See that client is paniced
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::DumbAssParametersForCTimerL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call After with dumbass parameters

+

Test that stupid parameters do not cause any harm
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(32bit) with interval 1. See that timer expires almost right away
    +
  • +
  • Call After(32bit) with interval 0x7FFFFFFF. Cancel timer
    +
  • +
  • Call After(64bit) with interval 1. See that timer expires almost right away
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::DumbAssParametersForCTimerZero32bitL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call After with dumbass parameters

+

Test that calling After(32bit) with zero interval panics client
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(32bit) with interval 0.
  • +
  • See that client is paniced
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::DumbAssParametersForCTimerZero64bitL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

call After with dumbass parameters

+

Test that calling After(64bit) with zero interval panics client
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Call After(64bit) with interval 0.
  • +
  • See that client is paniced
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
  • +
  • Start and expire at 2000 timers. Some of having overlapping windows (default window)with each other and others not having.
    +
  • +
  • See that all timers expire within their window. Start timers so that at least 1000 timers.
  • +
  • are running simultaneously.
    +
  • +
  • No need to check that they expire at latest possible moment
  • +
  • that is checked in algorithm tests.
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackKErrAbort (TAny *  aArgument )  [static]
+
+
+ +

Check timer stop code.

+

Simple function that checks that Error code is KErrAbort

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::InheritedFlexTimerCallbackKErrNone (TAny *  aArgument )  [static]
+
+
+ +

Check timer stop code.

+

Simple function that checks that Error code is KErrNone

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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

+
See also:
CreateAndExpireTwoOverlappingAfterTimersL
+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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

+
See also:
CreateAndExpireTwoOverlappingAfterTimersL
+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
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

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::NormalCancelL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Cancel a timer.

+

See that normal cancelling works
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start timers With At, AtUTC and After.
    +
  • +
  • Cancel a running timers and see that those do not expire anymore.
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::StartTimerAgainArray (TAny *  aArgument )  [static]
+
+
+ +

start timer again

+
    +
  • Parameters:
    + + +
    N/A 
    +
    +
    +
    Returns:
    N/A
    +
  • +
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::StopSchedulerAndCancel (TAny *  aArgument )  [static]
+
+
+ +

stops activescheduler and cancels it self

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::StopSchedulerKErrNoneArray (TAny *  aArgument )  [static]
+
+
+ +

See that expiry reason is correct. Array versio.

+

N/A

+
Parameters:
+ + +
N/A 
+
+
+
Returns:
N/A
+ +
+
+ +
+
+ + + + + + + + + +
static TInt CTestCFlexTimer::StopTimer (TAny *  aArgument )  [static]
+
+
+ +

Stop timer and mark time to list given as parameter.

+
    +
  • Parameters:
    + + +
    N/A 
    +
    +
    +
    Returns:
    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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start three timers. At/AtUTC/After
    +
  • +
  • Change system time e.g. User::SetHomeTime()
    +
  • +
  • See that At/AtUTC timers are cancelled with error code KErrAbort
    +
  • +
  • See that remaining timer is fired at max time
    +
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
static TInt CTestCFlexTimer::TimerIsStartedTwiceL (TTestResult &  aResult,
CTestFlexTimer *  cb 
) [static]
+
+
+ +

Start timer twice.

+

Test that client is paniced if timer is started twise
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start timer with After()
    +
  • +
  • Start timer again with At()
    +
  • +
  • See that client panics with code EFlexTimerServerErrorPendingTimer //TODO referense in documentation
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + +
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
+
+

+
    +
  • Use class that is inherited from CFlexTimer.
    +
  • +
  • Start three timers. At/AtUTC/After
    +
  • +
  • Change timezone e.g. User::SetUTCOffset()
    +
  • +
  • See that At/AtUTC timers are cancelled with error code KErrAbort
    +
  • +
  • See that remaining timer is fired at max time
  • +
+
Parameters:
+ + +
TBD 
+
+
+
Returns:
The status of execution of the test. KErrNone if the test was executed ok, any system wide errorcode otherwise.
+ +
+
+
+ +
+ All Classes Functions
+ + +
+ +
+ +
Generated on Thu Apr 22 15:09:47 2010 for FlexTimerStifSpecs by  + +doxygen 1.6.3
+ +