LbsApi/inc/te_lbsapisuitestepbase.h
author Maciej Seroka <maciejs@symbian.org>
Tue, 03 Aug 2010 14:51:01 +0100
branchSymbian3
changeset 58 7a02f8565ef5
parent 54 a4835904093b
permissions -rw-r--r--
Implemented Language-setting smoke test for ATS4

/**
* Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:
*
*/



/**
 @file Te_LbsApiSuiteStepBase.h
 @internalTechnology
*/

#if (!defined __TE_LBSAPI_STEP_BASE__)
#define __TE_LBSAPI_STEP_BASE__
#include <test/TestExecuteStepBase.h>
// Please add your include here if you have 

struct SPanicThreadFunctionData
{
    TThreadFunction     iPanicFunction;     // thread function that will panic
    TAny*               iPtr;               // data to pass to the function
};

/****************************************************************************
* The reason to have a new step base is that it is very much possible
* that the all individual test steps have project related common variables 
* and members 
* and this is the place to define these common variable and members.
* 
****************************************************************************/
class CTe_LbsApiSuiteStepBase : public CTestStep
	{
public:
	virtual ~CTe_LbsApiSuiteStepBase();
	CTe_LbsApiSuiteStepBase();
	virtual TVerdict doTestStepPreambleL(); 
	virtual TVerdict doTestStepPostambleL();

protected:
// Tool functions

    void StandardPrepareL();
    void StandardCleanup();

    TInt DoPanicTestL(TThreadFunction aThreadFunction, TExitCategoryName aExpectedExitCat,
                      TInt aExpectedExitReason, TTimeIntervalMicroSeconds32 aTimeoutValue,
                      TAny* aPtr);

    void CheckThereIsNoServerL();
	
//Please add your class members which will be common to all individual test steps:
protected:
	TInt 		iErrorCounter;
	HBufC8*		iReadData;
	HBufC8*		iWriteData;
	};

#endif