os/mm/mmlibs/mmfw/tsrc/mmfunittest/SwCodecDevices/TSU_MMF_Loop.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
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".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 #ifndef __TSU_MMF_LOOP_H_
    17 #define __TSU_MMF_LOOP_H_
    18 
    19 #include <testframework.h>
    20 #include "TSU_MMF_ACOD.h"
    21 #include <mmf/server/mmfswcodecwrapper.h>
    22 #include "MMFAudioCodecBase.h"
    23 
    24 /**
    25 *
    26 * class CTestStepLoopTest
    27 * This class is responsible for testing the 
    28 * preconditions on the ProcessL method of the codecs.
    29 *
    30 */
    31 template <class Codec>
    32 class CTestStepLoopTest : public CTestStep_MMF_SwCodecDevices
    33 	{
    34 public:
    35 	CTestStepLoopTest( TUint aTestIndex );
    36 	virtual ~CTestStepLoopTest();
    37 	virtual enum TVerdict DoTestStepL();
    38 	virtual TVerdict DoTestStepPreambleL(void);
    39 	virtual TVerdict DoTestStepPostambleL(void);
    40 private:
    41 	TInt CodecPreconditionTestL( TInt aSrcDataBufferSize, 
    42 		                        TInt aSinkDataBufferSize,
    43 								TInt aSrcPosition = 0,
    44 								TInt aSinkPosition = 0 );
    45 private:
    46 	CMMFSwCodec*     iCodecUnderTest; // sw codec under test
    47 	CMMFDataBuffer*  iSourceData;     // reference source data buffer
    48 	CMMFDataBuffer*  iCodedData;      // coded data buffer
    49 	};
    50 
    51 #endif /* TSU_MMF_Loop_H_ */
    52