lbstest/lbstestproduct/lbssimulationpsy/inc/ctlbssimulationpsypostp115.h
changeset 0 9cfd9a3ee49c
equal deleted inserted replaced
-1:000000000000 0:9cfd9a3ee49c
       
     1 /*
       
     2 * Copyright (c) 2001-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 #ifndef __CT_LBS_SIMULATION_PSY_POS_TP115_H__
       
    21 #define __CT_LBS_SIMULATION_PSY_POS_TP115_H__
       
    22 
       
    23 //  INCLUDES
       
    24 #include "ctlbsportedstepbase.h"
       
    25 
       
    26 // CLASS DECLARATION
       
    27 
       
    28 /**
       
    29 *  Test procedure 115
       
    30 */
       
    31 class CT_LbsSimulationPSYPosTp115 : public CT_LbsPortedStepBase
       
    32     {
       
    33     public:  // Constructors and destructor
       
    34         
       
    35         /**
       
    36         * C++ default constructor.
       
    37         */
       
    38     	CT_LbsSimulationPSYPosTp115(CT_LbsServer& aParent, TInt aIndex);
       
    39         
       
    40         /**
       
    41         * Destructor.
       
    42         */
       
    43         ~CT_LbsSimulationPSYPosTp115();
       
    44 
       
    45     public: // Functions from base classes
       
    46 
       
    47         /**
       
    48         * From CT_LbsPortedStepBase
       
    49         */
       
    50         void StartL();
       
    51 
       
    52     private: // New Functions
       
    53 
       
    54         /**
       
    55         * Gets the name of an individual test index
       
    56         * @param aIndex Indicates which test index name that is asked for.
       
    57         * @param aName The name of the test index.
       
    58         */
       
    59         void GetIndexName(TInt aIndex, TDes& aName) const;
       
    60 
       
    61 		void TestSimulationNmeaReaderL(const TDesC& aNMEASource);
       
    62 		
       
    63         void TestPowerUpTimeL();
       
    64         void TestTimeToFixL();
       
    65         void TestDeterministicFailureL();
       
    66         void TestRandomFailureL();
       
    67         void TestAltitudeL();
       
    68         void TestLongLatitudeL();
       
    69         void TestMovementL();
       
    70         void TestBadInputFileL();
       
    71 		void CheckBadInputHelperL(const TDesC& aFrom);
       
    72 		void TestCorrectFixL();
       
    73 		void TestCorrectTimingAfterCancelL();
       
    74 		void CheckPositionL(TPositionInfo& aPosition, TInt aFixNumber);
       
    75 		TReal ToCoordinate( const TDesC8& aDes, const TDesC8& aDir);
       
    76 		TInt DesToInt(const TPtrC8& aDes);
       
    77 		TReal DesToReal(const TPtrC8& aDes);
       
    78 
       
    79         void Extended1TestSimulationNmeaReaderL(const TDesC& aNMEASource);
       
    80         void Extended2TestSimulationNmeaReaderL(const TDesC& aNMEASource);
       
    81         void ReplaceSwitchInTrapL(TInt aIndex);
       
    82 
       
    83     private:
       
    84 
       
    85         TBuf<100> iMsg;
       
    86 
       
    87 		// EPos server instance
       
    88 		RPositionServer	iPosServer;
       
    89         
       
    90 		// Positioner instance
       
    91 		RPositioner iPositioner;
       
    92 		TInt 		iIndex;
       
    93 
       
    94     };
       
    95 
       
    96 #endif      // __CT_LBS_SIMULATION_PSY_POS_TP115_H__
       
    97             
       
    98 // End of File