--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/commsfwutils/commsbufs/version1/mbufmgr/TS_mbufmgr/TestStepCTMbufmgr.h Thu Dec 17 09:22:25 2009 +0200
@@ -0,0 +1,51 @@
+// 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__ */