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_OOM_H_
17 #define __TSU_MMF_OOM_H_
19 #include <testframework.h>
20 #include "TSU_MMF_ACOD.h"
21 #include <mmf/server/mmfswcodecwrapper.h>
22 #include "MMFAudioCodecBase.h"
27 * class CTestStepOomTest
28 * This class is responsible for testing the out of memory
29 * condition on all the codecs.
32 template <class Codec>
33 class CTestStepOomTest : public CTestStep_MMF_SwCodecDevices
36 CTestStepOomTest( TUint aTestIndex );
37 virtual ~CTestStepOomTest();
38 virtual enum TVerdict DoTestStepL();
39 virtual TVerdict DoTestStepPreambleL(void);
40 virtual TVerdict DoTestStepPostambleL(void);
42 virtual Codec* GetCodecL();
47 class CTestStepGsm610ToPcm16OomTest: public CTestStepOomTest<CMMFGsm610ToPcm16Codec>
50 CTestStepGsm610ToPcm16OomTest( TUint aTestIndex)
51 : CTestStepOomTest<CMMFGsm610ToPcm16Codec>(aTestIndex){};
53 virtual CMMFGsm610ToPcm16Codec* GetCodecL();
56 class CTestStepPcm16ToGsm610OomTest: public CTestStepOomTest<CMMFGsm610ToPcm16Codec>
59 CTestStepPcm16ToGsm610OomTest( TUint aTestIndex)
60 : CTestStepOomTest<CMMFGsm610ToPcm16Codec>(aTestIndex){};
62 virtual CMMFGsm610ToPcm16Codec* GetCodecL();
66 #endif /* TSU_MMF_OOM_H_ */