|
1 // Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file CT_LbsClientTracking.h |
|
15 // This contains the header file for Tracking Tests |
|
16 // |
|
17 // |
|
18 |
|
19 #ifndef __CT_LBS_CLIENT_TRACKING_H__ |
|
20 #define __CT_LBS_CLIENT_TRACKING_H__ |
|
21 |
|
22 #include "ctlbsclientstep.h" |
|
23 #include "ctlbsclientserver.h" |
|
24 |
|
25 #include <ctlbsagpshandler.h> |
|
26 |
|
27 // Literals used |
|
28 _LIT(KLbsClientStep_Tracking, "LbsClientStep_Tracking"); |
|
29 |
|
30 class CT_LbsClientStep_Tracking : public CT_LbsClientStep, MT_ResponseObserver |
|
31 { |
|
32 public: |
|
33 ~CT_LbsClientStep_Tracking(); |
|
34 |
|
35 static CT_LbsClientStep_Tracking* New(CT_LbsClientServer& aParent); |
|
36 virtual TVerdict doTestStepL(); |
|
37 |
|
38 // from MT_ResponseObserver |
|
39 virtual void ProcessAGpsResponseMessage(const TT_LbsAGpsResponseMsg::TModuleResponseType aResponse); |
|
40 |
|
41 private: |
|
42 CT_LbsClientStep_Tracking(CT_LbsClientServer& aParent); |
|
43 void ConstructL(); |
|
44 |
|
45 TBool VerifyFirstPosTime(const TTime& aTimeRequested, const TPositionInfo& aPosInfo, const TPositionUpdateOptions& aUpdateOpts); |
|
46 TBool VerifyPosTime(const TTime& aTimeFirstPosReceived, const TPositionUpdateOptions& aUpdateOpts, TPositionInfo& aPosInfo, TInt aPosCount); |
|
47 |
|
48 void DoTestCase(); |
|
49 |
|
50 void DoInterval_TestCaseId_01(); |
|
51 void DoInterval_TestCaseId_02(); |
|
52 void DoInterval_TestCaseId_03(); |
|
53 void DoInterval_TestCaseId_04(); |
|
54 void DoInterval_TestCaseId_05(); |
|
55 void DoInterval_TestCaseId_06(); |
|
56 void DoInterval_TestCaseId_07(); |
|
57 void DoInterval_TestCaseId_08(); |
|
58 |
|
59 void ConfigureModuleTimeOut(TTimeIntervalMicroSeconds& aTimeOut); |
|
60 |
|
61 private: |
|
62 |
|
63 TInt iVerifyInterval; |
|
64 TInt iExpectedErr; |
|
65 TInt iUpdateIndex; |
|
66 TInt iUpdateWindowIndex; |
|
67 TPositionUpdateOptions iUpdateOpts; |
|
68 TPositionInfo iPosInfo; |
|
69 |
|
70 TBool iCheckIfSameAsPreviousPosition; |
|
71 TPositionInfo iPreviousPos; |
|
72 TBool iSameAsPreviousPos; |
|
73 }; |
|
74 |
|
75 #endif //__CT_LBS_CLIENT_TRACKING_H__ |