|
1 /** |
|
2 * Copyright (c) 2002-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 |
|
20 /** |
|
21 @file SimPsyNmeaPositionerStep.h |
|
22 @internalTechnology |
|
23 */ |
|
24 #if (!defined __SIMPSYNMEAPOSITIONER_STEP_H__) |
|
25 #define __SIMPSYNMEAPOSITIONER_STEP_H__ |
|
26 #include <test/testexecutestepbase.h> |
|
27 #include "te_lbssimulationpsysuitestepbase.h" |
|
28 |
|
29 #include <f32file.h> |
|
30 #include <badesca.h> |
|
31 #include <centralrepository.h> |
|
32 #include <lbs/simulationpsyinternalcrkeys.h> |
|
33 |
|
34 |
|
35 |
|
36 #include "CPosFileReader.h" |
|
37 |
|
38 // FORWARD DECLARATIONS |
|
39 class TPositionInfo; |
|
40 class TPositionInfoBase; |
|
41 class TPositionCourseInfo; |
|
42 class HPositionGenericInfo; |
|
43 class CPosFileReader; |
|
44 |
|
45 class CSimPsyNmeaPositionerStep : public CTe_LbsSimulationPSYSuiteStepBase |
|
46 { |
|
47 public: |
|
48 CSimPsyNmeaPositionerStep(); |
|
49 ~CSimPsyNmeaPositionerStep(); |
|
50 virtual TVerdict doTestStepPreambleL(); |
|
51 virtual TVerdict doTestStepL(); |
|
52 virtual TVerdict doTestStepPostambleL(); |
|
53 |
|
54 private: |
|
55 void StartL(TInt aIndex); |
|
56 virtual void DoTestL(TInt aIndex); |
|
57 void FixSettingsForSimPSY(const TDesC& aFileName); |
|
58 void ReadSimDataFromFileL(); |
|
59 void TestSingleNmeaRequestL(); |
|
60 void CancelSingleNmeaRequestL(); |
|
61 void TestMultipleNmeaCancelTestL( |
|
62 TBool aFirstWillCancel, |
|
63 TBool aSecondWillCancel, |
|
64 TBool aThirdWillCancel); |
|
65 void TestRequestUntilEofL(); |
|
66 void TestMultipleRequestsL(TInt aNumberOfRequests); |
|
67 void TestMultipleRequestsAndCancelL(TInt aNumberOfRequests, |
|
68 TBool aFirstWillCancel, |
|
69 TBool aSecondWillCancel, |
|
70 TBool aThirdWillCancel); |
|
71 void TestRequestNmeaDataL(); |
|
72 void TestReadUntilEofL(); |
|
73 void TestWrongSimModeL(); |
|
74 void TestRequestCourseInfoL(); |
|
75 void TestRequestSatelliteInfoL(); |
|
76 void TestRequestGenericInfoL(); |
|
77 void TestRequestBasicInfoL(); |
|
78 void TestRequestMagellanL(); |
|
79 void TestRequestPartialGenericInfoL(); |
|
80 void TestClearAndSetDefaultPositionDataL(); |
|
81 void TestPartialUpdateL(); |
|
82 void TestErrorSituationsL(); |
|
83 void TestSpecialCasesL(); |
|
84 void RunMemoryTestL(TInt aIndex); |
|
85 void CheckRequestResultL(TInt aStatus, TPositionInfo& aPosition); |
|
86 TBool IsPartialPosition(TPositionInfoBase& aPosInfo); |
|
87 |
|
88 private: |
|
89 TInt64 iSeed; |
|
90 CDesC8Array* iSimDataArray; |
|
91 CPosFileReader* iFileReader; |
|
92 TPositionInfo* iPositionInfo; |
|
93 TInt iCurrentItem; |
|
94 TBool iSetCurrentItem; |
|
95 }; |
|
96 |
|
97 _LIT(KSimPsyNmeaPositionerStep,"SimPsyNmeaPositionerStep"); |
|
98 |
|
99 #endif |