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 |
|
26 #include <networking/teststep.h> |
|
27 |
|
28 |
|
29 const TUint KMBufMinHeapSize = 4 * 1024; |
|
30 |
|
31 const TUint KMBufDefaultHeapSize = 256 * 1024; |
|
32 |
|
33 class CCommsBufManager; |
|
34 class CTestSuiteCTMbufmgr; |
|
35 class TCommsBufPoolCreateInfo; |
|
36 NONSHARABLE_CLASS(CTestStepCTMbufmgr) : public CTestStep |
|
37 { |
|
38 public: |
|
39 CTestStepCTMbufmgr(); |
|
40 ~CTestStepCTMbufmgr(); |
|
41 |
|
42 CTestSuiteCTMbufmgr * iEsockSuite;// Pointer to the suite which owns this test |
|
43 protected: |
|
44 void StripeMem(TUint8 *aBuf, TInt aStartPos, TInt anEndPos, TUint aStartChar, TUint anEndChar); |
|
45 void StripeDes(TDes8 &aBuf, TInt aStartPos, TInt anEndPos, TUint aStartChar, TUint anEndChar); |
|
46 void CreateInstanceMBufMgrL(TInt aMaxHeapSize); |
|
47 void CreateInstanceMBufMgrL(RArray<TCommsBufPoolCreateInfo>& aPoolCreateInfo); |
|
48 |
|
49 CActiveScheduler* iActSch; |
|
50 RCommsBufPondOp iBufPond; |
|
51 |
|
52 #ifdef __CFLOG_ACTIVE |
|
53 __CFLOG_DECLARATION_MEMBER; |
|
54 #endif |
|
55 }; |
|
56 |
|
57 #endif /* __TESTSTEPSCTMBUFMGR_H__ */ |
|