Update contrib.
1 // Copyright (c) 2003-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".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef __TSU_MMF_LOOP_H_
17 #define __TSU_MMF_LOOP_H_
19 #include <testframework.h>
20 #include "TSU_MMF_ACOD.h"
21 #include <mmf/server/mmfswcodecwrapper.h>
22 #include "MMFAudioCodecBase.h"
26 * class CTestStepLoopTest
27 * This class is responsible for testing the
28 * preconditions on the ProcessL method of the codecs.
31 template <class Codec>
32 class CTestStepLoopTest : public CTestStep_MMF_SwCodecDevices
35 CTestStepLoopTest( TUint aTestIndex );
36 virtual ~CTestStepLoopTest();
37 virtual enum TVerdict DoTestStepL();
38 virtual TVerdict DoTestStepPreambleL(void);
39 virtual TVerdict DoTestStepPostambleL(void);
41 TInt CodecPreconditionTestL( TInt aSrcDataBufferSize,
42 TInt aSinkDataBufferSize,
43 TInt aSrcPosition = 0,
44 TInt aSinkPosition = 0 );
46 CMMFSwCodec* iCodecUnderTest; // sw codec under test
47 CMMFDataBuffer* iSourceData; // reference source data buffer
48 CMMFDataBuffer* iCodedData; // coded data buffer
51 #endif /* TSU_MMF_Loop_H_ */