landmarks/locationlandmarks/tsrc/LandmarkTestModule/inc/FT_CPosTp132.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     1 /*
       
     2 * Copyright (c) 2004 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 *   ?description_line
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 #ifndef CPOSTP132_H
       
    21 #define CPOSTP132_H
       
    22 
       
    23 //  INCLUDES
       
    24 #include "EPos_LandmarksErrors.h"
       
    25 
       
    26 #include "FT_CLandmarkTestProcedureBase.h"
       
    27 
       
    28 // CLASS DECLARATION
       
    29 
       
    30 /**
       
    31 *  Test procedure 132
       
    32 */
       
    33 class CPosTp132 : public CLandmarkTestProcedureBase
       
    34     {
       
    35     public:  // Constructors and destructor
       
    36         
       
    37         /**
       
    38         * C++ default constructor.
       
    39         */
       
    40        
       
    41         CPosTp132(TInt tpno, CStifLogger* aLog) : CLandmarkTestProcedureBase(tpno, aLog) {iErrorsFound=KErrNone;};
       
    42         /**
       
    43         * Destructor.
       
    44         */
       
    45         ~CPosTp132() {};
       
    46 
       
    47     public:
       
    48        
       
    49         /**
       
    50         * Includes both Panic testing and testing of correct leave codes
       
    51         */
       
    52         static void RunPanicTestL(TAny* aData);
       
    53        
       
    54     public: // Functions from base classes
       
    55 
       
    56         /**
       
    57         * From CLandmarkTestProcedureBase
       
    58         * Runs the test in the module
       
    59         */
       
    60         void StartL();
       
    61 
       
    62         /**
       
    63         * From CLandmarkTestProcedureBase
       
    64         * Always called, even if the test leaves
       
    65         */
       
    66         void CloseTest();
       
    67         
       
    68         /**
       
    69         * Used as a callback method to unset display data
       
    70         * from landmark search
       
    71         * @param self
       
    72         */
       
    73         TInt static UnsetTest(TAny* aSelf);
       
    74         
       
    75         /**
       
    76         * Used as a callback method to unset display data
       
    77         * from landmark multidb search
       
    78         * @param self
       
    79         */
       
    80         TInt static UnsetMultiSearch(TAny* aSelf);
       
    81 
       
    82     private:
       
    83 
       
    84       void CreateThreadL();
       
    85 
       
    86       void ResumeThreadAndVerifyExit();
       
    87 
       
    88       void RunLeaveTestL();
       
    89 
       
    90     public:
       
    91         // Use this enum to define if the thread should exit with panic or leave or return normally
       
    92         enum ExitType {ExitPanic, ExitLeave, ExitNormal};
       
    93 
       
    94     private:
       
    95 
       
    96         RThread     iThread;
       
    97         TInt        iExpectedErrorCode;
       
    98         ExitType    iExpectedExitType;
       
    99         TInt        iTestCase;
       
   100         TInt        iErrorsFound;
       
   101     };
       
   102 
       
   103 #endif      // CPOSTP132_H
       
   104             
       
   105 // End of File