lbstest/lbstestproduct/lbsclient/inc/ctlbsclientsteptracking.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     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 "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-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 <lbs/test/ctlbsagpshandler.h>
       
    26 
       
    27 // Literals used
       
    28 _LIT(KLbsClientStep_Tracking, "LbsClientStep_Tracking");
       
    29 
       
    30 _LIT(KExpectedErr, "expected_error");
       
    31 _LIT(KExpectedErr2, "expected_error2");
       
    32 _LIT(KExpectedErr3, "expected_error3");
       
    33 _LIT(KExpectedErr4, "expected_error4");
       
    34 
       
    35 class CT_LbsClientStep_Tracking : public CT_LbsClientStep, MT_ResponseObserver
       
    36 	{
       
    37 public:
       
    38 	~CT_LbsClientStep_Tracking();
       
    39 
       
    40 	static CT_LbsClientStep_Tracking* New(CT_LbsClientServer& aParent);
       
    41 	virtual TVerdict doTestStepL();
       
    42 
       
    43 	// from MT_ResponseObserver
       
    44 	virtual void ProcessAGpsResponseMessage(const TT_LbsAGpsResponseMsg::TModuleResponseType aResponse);
       
    45 		
       
    46 private:
       
    47 	CT_LbsClientStep_Tracking(CT_LbsClientServer& aParent);
       
    48 	void ConstructL();
       
    49 	
       
    50 	TBool VerifyFirstPosTime(const TTime& aTimeRequested, const TPositionInfo& aPosInfo, const TPositionUpdateOptions& aUpdateOpts);
       
    51 	TBool VerifyPosTime(const TTime& aTimeFirstPosReceived, const TPositionUpdateOptions& aUpdateOpts, TPositionInfo& aPosInfo, TInt aPosCount);
       
    52 	TInt GetExpectedError(const TDesC& aError);
       
    53 	TInt SetExpectedError(TInt aExpectedErrVal,TInt aDefaultErr);
       
    54 	void DoTestCase();
       
    55 	
       
    56 	void DoInterval_TestCaseId_01();
       
    57 	void DoInterval_TestCaseId_02();
       
    58 	void DoInterval_TestCaseId_03();
       
    59 	void DoInterval_TestCaseId_04();
       
    60 	void DoInterval_TestCaseId_05();
       
    61 	void DoInterval_TestCaseId_06();
       
    62 	void DoInterval_TestCaseId_07();
       
    63 	void DoInterval_TestCaseId_08();
       
    64 	
       
    65 	void ConfigureModuleTimeOut(TTimeIntervalMicroSeconds& aTimeOut);
       
    66 private:
       
    67 	TInt iVerifyInterval;
       
    68 	TInt iExpectedErr;
       
    69 	TInt iExpectedErr2;
       
    70 	TInt iExpectedErr3;
       
    71 	TInt iExpectedErr4;
       
    72 	TInt iUpdateIndex;
       
    73 	TInt iUpdateWindowIndex;
       
    74 	TPositionUpdateOptions iUpdateOpts;
       
    75 	TPositionInfo iPosInfo;
       
    76 
       
    77  	TBool iCheckIfSameAsPreviousPosition;
       
    78  	TPositionInfo iPreviousPos;
       
    79  	TBool iSameAsPreviousPos;
       
    80 	};
       
    81 
       
    82 #endif //__CT_LBS_CLIENT_TRACKING_H__