|
1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CTLBSSIMULATIONPSYPOSTP400_H_ |
|
20 #define CTLBSSIMULATIONPSYPOSTP400_H_ |
|
21 |
|
22 // INCLUDES |
|
23 #include "ctlbsportedstepbase.h" |
|
24 |
|
25 class CT_LbsSimulationPsyPosTp400 : public CT_LbsPortedStepBase |
|
26 { |
|
27 public: |
|
28 CT_LbsSimulationPsyPosTp400(CT_LbsServer& aParent, TInt aIndex); |
|
29 |
|
30 /* |
|
31 * From CT_LbsPortedStepBase |
|
32 */ |
|
33 virtual void StartL(); |
|
34 |
|
35 /* |
|
36 * From CT_LbsPortedStepBase |
|
37 */ |
|
38 virtual TVerdict doTestStepPostambleL(); |
|
39 protected: |
|
40 /* |
|
41 * Cleans up after a test. |
|
42 * Always called, even if the test leaves. |
|
43 */ |
|
44 virtual void CloseTest(); |
|
45 |
|
46 private: //New methods |
|
47 TPtrC GetIndexName(TInt aIndex) const; |
|
48 void RunTestsL(TInt aIndex); |
|
49 TBool TwoClientRequestL(TBool aIsSps, TInt aSecondClientDelay, TInt aMaxUpdateAge, |
|
50 TReal* aLatitudeDiff = NULL, TReal* aLongitudeDiff = NULL); |
|
51 TInt PerformSyncRequest(TPositionInfoBase& aModuleInfo, const RPositioner& aPositioner) const; |
|
52 void OpenNewSourceFileLC(const TDesC& aName, RPositioner& aPositioner); |
|
53 TInt TrpModeL() const; |
|
54 void SetTrpModeL(TInt aNewValue); |
|
55 |
|
56 //Test Methods |
|
57 void TestTrpMultiClientNmeaStoredFixExistL(); |
|
58 void TestTrpMultiClientNmeaStoredFixNotExistL(); |
|
59 void TestTrpMultiClientNmeaNoUpdateAgeL(); |
|
60 void TestTrpMultiClientSpsStoredFixExistL(); |
|
61 void TestTrpMultiClientSpsStoredFixNotExistL(); |
|
62 void TestTrpMultiClientSpsNoUpdateAgeL(); |
|
63 |
|
64 private: |
|
65 TInt iIndex; |
|
66 TInt iOldTrpMode; |
|
67 }; |
|
68 |
|
69 #endif /* CTLBSSIMULATIONPSYPOSTP400_H_ */ |