00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef TESTRFLEXTIMER_H
00025 #define TESTRFLEXTIMER_H
00026
00027
00028 #include <e32base.h>
00029
00038 class CTestRFlexTimer : public CBase
00039 {
00040
00041 public:
00042
00046 virtual ~CTestRFlexTimer();
00047
00068 static TInt ExpireAfter32L( TTestResult& aResult,
00069 CTestFlexTimer* aCallback );
00070
00071
00092 static TInt ExpireAfter64L( TTestResult& aResult,
00093 CTestFlexTimer* aCallback );
00094
00095
00116 static TInt ExpireAfterTicksL( TTestResult& aResult,
00117 CTestFlexTimer* aCallback );
00118
00139 static TInt ExpireAtL( TTestResult& aResult,
00140 CTestFlexTimer* aCallback );
00141
00162 static TInt ExpireAtUtcL( TTestResult& aResult,
00163 CTestFlexTimer* aCallback );
00164
00176 static TInt After32WithoutConnect( TTestResult& aResult,
00177 CTestFlexTimer* aCallback );
00178
00190 static TInt After64WithoutConnect( TTestResult& aResult,
00191 CTestFlexTimer* aCallback );
00192
00204 static TInt AfterTicksWithoutConnect( TTestResult& aResult,
00205 CTestFlexTimer* aCallback );
00206
00218 static TInt AtWithoutConnect( TTestResult& aResult,
00219 CTestFlexTimer* aCallback );
00220
00232 static TInt AtUtcWithoutConnect( TTestResult& aResult,
00233 CTestFlexTimer* aCallback );
00234
00246 static TInt Configure32WithoutConnect( TTestResult& aResult,
00247 CTestFlexTimer* aCallback );
00248
00260 static TInt Configure64WithoutConnect( TTestResult& aResult,
00261 CTestFlexTimer* aCallback );
00262
00274 static TInt CancelWithoutConnect( TTestResult& aResult,
00275 CTestFlexTimer* aCallback );
00276
00288 static TInt CallAfterTwiceL( TTestResult& aResult,
00289 CTestFlexTimer* aCallback );
00290
00291
00303 static TInt CallAfterTicksTwiceL( TTestResult& aResult,
00304 CTestFlexTimer* aCallback );
00305
00317 static TInt CallAtTwiceL( TTestResult& aResult,
00318 CTestFlexTimer* aCallback );
00319
00331 static TInt CallAtUtcTwiceL( TTestResult& aResult,
00332 CTestFlexTimer* aCallback );
00333
00345 static TInt CallConnectTwiceL( TTestResult& aResult,
00346 CTestFlexTimer* aCallback );
00347
00348
00359 static TInt ReconnectL( TTestResult& aResult,
00360 CTestFlexTimer* aCallback );
00361
00362
00374 static TInt CancelWithoutStart( TTestResult& aResult,
00375 CTestFlexTimer* aCallback );
00376
00388 static TInt NegativeTicksInAfterTicksL(
00389 TTestResult& aResult,
00390 CTestFlexTimer* aCallback );
00391
00402 static TInt ZeroTicksInAfterTicksL(
00403 TTestResult& aResult,
00404 CTestFlexTimer* aCallback );
00405
00418 static TInt ChangeTimeWhileAfterTicksL(
00419 TTestResult& aResult,
00420 CTestFlexTimer* aCallback );
00421
00439 static TInt TestAfterTicksWindowL(
00440 TTestResult& aResult,
00441 CTestFlexTimer* aCallback );
00442
00443 private:
00444
00449 CTestRFlexTimer();
00450
00458 static TBool IsDelayOk(
00459 const TTimeIntervalMicroSeconds aDelay,
00460 const TTimeIntervalMicroSeconds32 aInterval,
00461 const TTimeIntervalMicroSeconds32 aWindow );
00462
00470 static TBool IsDelayOk(
00471 const TTimeIntervalMicroSeconds aDelay,
00472 const TTimeIntervalMicroSeconds32 aInterval,
00473 const TTimeIntervalMicroSeconds aWindow );
00474
00482 static TBool IsDelayOk(
00483 const TTimeIntervalMicroSeconds aDelay,
00484 const TTimeIntervalMicroSeconds aInterval,
00485 const TTimeIntervalMicroSeconds32 aWindow );
00486
00494 static TBool IsDelayOk(
00495 const TTimeIntervalMicroSeconds aDelay,
00496 const TTimeIntervalMicroSeconds aInterval,
00497 const TTimeIntervalMicroSeconds aWindow );
00498
00512 static TTimeIntervalMicroSeconds ExecuteAfterTicksL(
00513 TInt aTicks,
00514 TTimeIntervalMicroSeconds aWindowSize = 0 );
00515
00516 private:
00517
00518 };
00519
00520 #endif // TESTRFLEXTIMER_H