LbsApi/inc/te_lbsapisuitestepbase.h
branchSymbian3
changeset 54 a4835904093b
equal deleted inserted replaced
53:7f293ed715ec 54:a4835904093b
       
     1 /**
       
     2 * Copyright (c) 2004-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 Te_LbsApiSuiteStepBase.h
       
    22  @internalTechnology
       
    23 */
       
    24 
       
    25 #if (!defined __TE_LBSAPI_STEP_BASE__)
       
    26 #define __TE_LBSAPI_STEP_BASE__
       
    27 #include <test/TestExecuteStepBase.h>
       
    28 // Please add your include here if you have 
       
    29 
       
    30 struct SPanicThreadFunctionData
       
    31 {
       
    32     TThreadFunction     iPanicFunction;     // thread function that will panic
       
    33     TAny*               iPtr;               // data to pass to the function
       
    34 };
       
    35 
       
    36 /****************************************************************************
       
    37 * The reason to have a new step base is that it is very much possible
       
    38 * that the all individual test steps have project related common variables 
       
    39 * and members 
       
    40 * and this is the place to define these common variable and members.
       
    41 * 
       
    42 ****************************************************************************/
       
    43 class CTe_LbsApiSuiteStepBase : public CTestStep
       
    44 	{
       
    45 public:
       
    46 	virtual ~CTe_LbsApiSuiteStepBase();
       
    47 	CTe_LbsApiSuiteStepBase();
       
    48 	virtual TVerdict doTestStepPreambleL(); 
       
    49 	virtual TVerdict doTestStepPostambleL();
       
    50 
       
    51 protected:
       
    52 // Tool functions
       
    53 
       
    54     void StandardPrepareL();
       
    55     void StandardCleanup();
       
    56 
       
    57     TInt DoPanicTestL(TThreadFunction aThreadFunction, TExitCategoryName aExpectedExitCat,
       
    58                       TInt aExpectedExitReason, TTimeIntervalMicroSeconds32 aTimeoutValue,
       
    59                       TAny* aPtr);
       
    60 
       
    61     void CheckThereIsNoServerL();
       
    62 	
       
    63 //Please add your class members which will be common to all individual test steps:
       
    64 protected:
       
    65 	TInt 		iErrorCounter;
       
    66 	HBufC8*		iReadData;
       
    67 	HBufC8*		iWriteData;
       
    68 	};
       
    69 
       
    70 #endif