72
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
2 |
// All rights reserved.
|
|
3 |
// This component and the accompanying materials are made available
|
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
|
5 |
// which accompanies this distribution, and is available
|
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
7 |
//
|
|
8 |
// Initial Contributors:
|
|
9 |
// Nokia Corporation - initial contribution.
|
|
10 |
//
|
|
11 |
// Contributors:
|
|
12 |
//
|
|
13 |
// Description:
|
|
14 |
// Contains declaration of CTestStepCTMbufmgr class that is
|
|
15 |
// base class for all test step classes in this test.
|
|
16 |
//
|
|
17 |
//
|
|
18 |
|
|
19 |
#if (!defined __TESTSTEPSCTMBUFMGR_H__)
|
|
20 |
#define __TESTSTEPSCTMBUFMGR_H__
|
|
21 |
|
|
22 |
#include <cflog.h>
|
|
23 |
#include <comms-infras/commsbufpondop.h>
|
|
24 |
#include <es_mbuf.h>
|
|
25 |
#include <es_mbman.h>
|
|
26 |
|
|
27 |
//#include <networking/teststep.h>
|
|
28 |
#include <test/testexecutestepbase.h>
|
|
29 |
|
|
30 |
//const TUint KMBufMinHeapSize = 4 * 1024;
|
|
31 |
|
|
32 |
//const TUint KMBufDefaultHeapSize = 256 * 1024;
|
|
33 |
|
|
34 |
class CCommsBufManager;
|
|
35 |
class CTestSuiteCTMbufmgr;
|
|
36 |
class TCommsBufPoolCreateInfo;
|
|
37 |
NONSHARABLE_CLASS(CTestStepCTMbufmgr) : public CTestStep
|
|
38 |
{
|
|
39 |
public:
|
|
40 |
CTestStepCTMbufmgr();
|
|
41 |
~CTestStepCTMbufmgr();
|
|
42 |
|
|
43 |
CTestSuiteCTMbufmgr * iEsockSuite;// Pointer to the suite which owns this test
|
|
44 |
protected:
|
|
45 |
void StripeMem(TUint8 *aBuf, TInt aStartPos, TInt anEndPos, TUint aStartChar, TUint anEndChar);
|
|
46 |
void StripeDes(TDes8 &aBuf, TInt aStartPos, TInt anEndPos, TUint aStartChar, TUint anEndChar);
|
|
47 |
void CreateInstanceMBufMgrL(TInt aMaxHeapSize);
|
|
48 |
void CreateInstanceMBufMgrL(RArray<TCommsBufPoolCreateInfo>& aPoolCreateInfo);
|
|
49 |
|
|
50 |
CActiveScheduler* iActSch;
|
|
51 |
RCommsBufPondOp iBufPond;
|
|
52 |
};
|
|
53 |
|
|
54 |
#endif /* __TESTSTEPSCTMBUFMGR_H__ */
|
|
55 |
|