commsfwutils/commsbufs/version1/mbufmgr/TS_mbufmgr/TestStepCTMbufmgr.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 00:53:00 +0200
changeset 5 68ef71f0cd72
parent 0 dfb7c4ff071f
permissions -rw-r--r--
Revision: 201003

// Copyright (c) 2002-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:
// Contains declaration of CTestStepCTMbufmgr class that is
// base class for all test step classes in this test.
// 
//

#if (!defined __TESTSTEPSCTMBUFMGR_H__)
#define __TESTSTEPSCTMBUFMGR_H__

#include <es_mbman.h>
#include <cflog.h>

const TUint KMBufMinHeapSize        = 4 * 1024;

class CMBufManager;
class CTestSuiteCTMbufmgr;

NONSHARABLE_CLASS(CTestStepCTMbufmgr) : public CTestStep
{
public:
	CTestStepCTMbufmgr();
	~CTestStepCTMbufmgr();

	CTestSuiteCTMbufmgr * iEsockSuite;// Pointer to the suite which owns this test
protected:
	void StripeMem(TUint8 *aBuf, TInt aStartPos, TInt anEndPos, TUint aStartChar, TUint anEndChar);
	void StripeDes(TDes8 &aBuf, TInt aStartPos, TInt anEndPos, TUint aStartChar, TUint anEndChar);
	CMBufManager *CreateInstanceMBufMgrL(TInt aMaxHeapSize);
	CMBufManager *CreateInstanceMBufMgrL(TInt aMaxHeapSize, MMBufSizeAllocator* &aMBufSizeAllocator);

	CActiveScheduler* iActSch;
	CMBufManager *iMBMngr;
	
#ifdef __CFLOG_ACTIVE
	__CFLOG_DECLARATION_MEMBER;
#endif
};

#endif /* __TESTSTEPSCTMBUFMGR_H__ */