Static Public Member Functions | |
static TInt | ExpireAfter32L (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start a timer using After (32 bit) and wait it to expire. | |
static TInt | ExpireAfter64L (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start a timer using After (64 bit) and wait it to expire. | |
static TInt | ExpireAfterTicksL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start a timer using AfterTicks and wait it to expire. | |
static TInt | ExpireAtL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start a timer using At and wait it to expire. | |
static TInt | ExpireAtUtcL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start a timer using AtUTC and wait it to expire. | |
static TInt | After32WithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start timer using After (32 bit) without connecting to the server first. | |
static TInt | After64WithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start timer using After (64 bit) without connecting to the server first. | |
static TInt | AfterTicksWithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start timer using AfterTicks without connecting to the server first. | |
static TInt | AtWithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start timer using At without connecting to the server first. | |
static TInt | AtUtcWithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Start timer using AtUtc without connecting to the server first. | |
static TInt | Configure32WithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Configure (32 bit) timer without connecting to the server first. | |
static TInt | Configure64WithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Configure (64 bit) timer without connecting to the server first. | |
static TInt | CancelWithoutConnect (TTestResult &aResult, CTestFlexTimer *aCallback) |
Cancel timer using RFlexTimer without connecting to the server first. | |
static TInt | CallAfterTwiceL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Set timer twice by After. | |
static TInt | CallAfterTicksTwiceL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Set timer twice by AfterTicks. | |
static TInt | CallAtTwiceL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Set timer twice by At. | |
static TInt | CallAtUtcTwiceL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Set timer twice by AtUTC. | |
static TInt | CallConnectTwiceL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Connect to timer server twice. | |
static TInt | ReconnectL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Reconnect to timer server. | |
static TInt | CancelWithoutStart (TTestResult &aResult, CTestFlexTimer *aCallback) |
Cancel timer using RFlexTimer without starting it first. | |
static TInt | NegativeTicksInAfterTicksL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Call AfterTicks() with negative value. | |
static TInt | ZeroTicksInAfterTicksL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Call AfterTicks() with zero. | |
static TInt | ChangeTimeWhileAfterTicksL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Change system time during AfterTicks timer is running. | |
static TInt | TestAfterTicksWindowL (TTestResult &aResult, CTestFlexTimer *aCallback) |
Test that timer window works correctly. |
STIF test cases for RFlexTimer class. This class is only a container for STIF test cases - it should NOT be instantiated, just call the static functions.
testflextimer.lib
static TInt CTestRFlexTimer::After32WithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start timer using After (32 bit) without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::After64WithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start timer using After (64 bit) without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::AfterTicksWithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start timer using AfterTicks without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::AtUtcWithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start timer using AtUtc without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::AtWithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start timer using At without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::CallAfterTicksTwiceL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Set timer twice by AfterTicks.
This tests illeagal usage of the interface and it'll panic with RFlexTimer 15 (EFlexTimerServerErrorPendingTimer).
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::CallAfterTwiceL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Set timer twice by After.
This tests illeagal usage of the interface and it'll panic with RFlexTimer 15 (EFlexTimerServerErrorPendingTimer).
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::CallAtTwiceL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Set timer twice by At.
This tests illeagal usage of the interface and it'll panic with RFlexTimer 15 (EFlexTimerServerErrorPendingTimer).
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::CallAtUtcTwiceL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Set timer twice by AtUTC.
This tests illeagal usage of the interface and it'll panic with RFlexTimer 15 (EFlexTimerServerErrorPendingTimer).
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::CallConnectTwiceL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Connect to timer server twice.
This tests illeagal usage of the interface and it'll panic with RFlexTimer 32 (EFlexTimerAlreadyConnected).
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::CancelWithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Cancel timer using RFlexTimer without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::CancelWithoutStart | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Cancel timer using RFlexTimer without starting it first.
This tests a leagal uage of the interface. Timer can be cancelled without setting it first.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ChangeTimeWhileAfterTicksL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Change system time during AfterTicks timer is running.
Set timer to be expired after 640 ticks (10 sec). After 1 sec from starting the timer, add system time 3 seconds. Check that the timer expires after 10 seconds from starting (13 secs by system time).
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::Configure32WithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Configure (32 bit) timer without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::Configure64WithoutConnect | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Configure (64 bit) timer without connecting to the server first.
This tests illeagal usage of the interface and it'll panic with KERN-EXEC 0.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ExpireAfter32L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start a timer using After (32 bit) and wait it to expire.
Open RFlexTimer handle and connect to the server. Set timer to expire after 3 secs. Close the handle and check that the expiration is done at correct time.
Tests:
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ExpireAfter64L | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start a timer using After (64 bit) and wait it to expire.
Open RFlexTimer handle and connect to the server. Set timer to expire after 3 secs. Close the handle and check that the expiration is done at correct time.
Tests:
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ExpireAfterTicksL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start a timer using AfterTicks and wait it to expire.
Open RFlexTimer handle and connect to the server. Set timer to expire after 192 ticks (3 secs). Close the handle and check that the expiration is done at correct time.
Tests:
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ExpireAtL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start a timer using At and wait it to expire.
Open RFlexTimer handle and connect to the server. Set timer to expire after 3 secs from now. Close the handle and check that the expiration is done at correct time.
Tests:
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ExpireAtUtcL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Start a timer using AtUTC and wait it to expire.
Open RFlexTimer handle and connect to the server. Set timer to expire after 3 secs from now. Close the handle and check that the expiration is done at correct time.
Tests:
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::NegativeTicksInAfterTicksL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Call AfterTicks() with negative value.
This test illegal usage of the interface. There has to be zero or more ticks.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ReconnectL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Reconnect to timer server.
Connect, close and connect again the handle.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::TestAfterTicksWindowL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Test that timer window works correctly.
Create three timers: T1: expire after 4-8 secs T2: expire after 7-8 secs T3: expire after 5 secs
T1 and T2 are AfterTicks -timers T3 is After timer.
Check that T1 has expired after 5 secs and T2 after 8 secs of setting.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |
static TInt CTestRFlexTimer::ZeroTicksInAfterTicksL | ( | TTestResult & | aResult, | |
CTestFlexTimer * | aCallback | |||
) | [static] |
Call AfterTicks() with zero.
This tests leagal usage of the interface.
aResult | The result of the test. | |
aCallback | Pointer to the STIF test class |