commsfwutils/commsbufs/TE_mbufmgr/inc/Test09Align.h
changeset 72 ae47d0499bee
parent 0 dfb7c4ff071f
equal deleted inserted replaced
68:5da8188e392b 72:ae47d0499bee
       
     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 test step 09
       
    15 // 
       
    16 //
       
    17 
       
    18 #if (!defined __TEST09ALIGN_H__)
       
    19 #define __TEST09ALIGN_H__
       
    20 
       
    21 NONSHARABLE_CLASS(CTest09Align) : public CTestStepCTMbufmgr
       
    22 {
       
    23 public:
       
    24 	CTest09Align();
       
    25 	~CTest09Align();
       
    26 
       
    27 	virtual enum TVerdict doTestStepL( void );
       
    28 private:
       
    29 	struct RMBufInfo {
       
    30 		TInt aOffset;
       
    31 		TInt aLength;
       
    32 	};
       
    33 	struct CScriptInput {  // This str. will be obtained 
       
    34 		RMBufInfo aBuf[50];// from the script file
       
    35 		TInt aBufsBefore;
       
    36 		TInt aBufsAfter;
       
    37 	};
       
    38 	struct CTestStr		   // This str. will 'simulate' a header
       
    39 	{					   // that has to be aligned within chain
       
    40 		TUint32 iSrcAddr;
       
    41 		TUint32 iDstAddr;
       
    42 		TUint16 iSrcPort;
       
    43 		TUint16 iDstPort;
       
    44 		TUint16 iLength;
       
    45 		TUint16 iOptions;
       
    46 		TUint8  iData[48];
       
    47 	};
       
    48 };
       
    49 
       
    50 #endif //(__TEST09ALIGN_H__)