// Copyright (c) 2008-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
 @test
 @internalComponent - Internal Symbian test code  
*/


#ifndef __TCMD_STEP_CUSTCMDNEVERUNLOAD_H__
#define __TCMD_STEP_CUSTCMDNEVERUNLOAD_H__

#include <test/testexecutestepbase.h>
#include <ssm/ssmcommand.h>

_LIT(KTCmdTestCustCmd, "CustCmdNeverUnload");

class CActiveScheduler;
class CCmdCustomCommand;
class RCleSessionTest;

class CTestCustCmd : public CTestStep
	{
public:
	CTestCustCmd();
	~CTestCustCmd();

	//from CTestStep
	virtual TVerdict doTestStepPreambleL();
	TVerdict doTestStepL();
	virtual TVerdict doTestStepPostambleL();
	
private:
	void doTestNeverUnloadCustCmdL();

	// run a test using CleSrv rather than CCmdTestList (so it executes in another thread)
	TInt RunTestCleWithNeverUnloadL(MSsmCommand* aCommand);

private:
	RCleSessionTest iCleSession;// CLE session to execute F&F commands
	CActiveScheduler* iActiveScheduler;
	};

#endif	// __TCMD_STEP_CUSTCMDNEVERUNLOAD_H__
