os/mm/mmlibs/mmfw/tsrc/mmfunittest/SwCodecDevices/TSU_MMF_Oom.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_OOM_H_
    17 #define __TSU_MMF_OOM_H_
    18 
    19 #include <testframework.h>
    20 #include "TSU_MMF_ACOD.h"
    21 #include <mmf/server/mmfswcodecwrapper.h>
    22 #include "MMFAudioCodecBase.h"
    23 #include "GSM610.H"
    24 
    25 /**
    26 *
    27 * class CTestStepOomTest
    28 * This class is responsible for testing the out of memory
    29 * condition on all the codecs.
    30 *
    31 */
    32 template <class Codec>
    33 class CTestStepOomTest : public CTestStep_MMF_SwCodecDevices
    34 	{
    35 public:
    36 	CTestStepOomTest( TUint aTestIndex );
    37 	virtual ~CTestStepOomTest();
    38 	virtual enum TVerdict DoTestStepL();
    39 	virtual TVerdict DoTestStepPreambleL(void);
    40 	virtual TVerdict DoTestStepPostambleL(void);
    41 protected:
    42 	virtual Codec* GetCodecL();
    43 private:
    44 	TInt Oom();
    45 	};
    46 
    47 class CTestStepGsm610ToPcm16OomTest: public CTestStepOomTest<CMMFGsm610ToPcm16Codec>
    48 	{
    49 public:
    50 	CTestStepGsm610ToPcm16OomTest( TUint aTestIndex) 
    51 		: CTestStepOomTest<CMMFGsm610ToPcm16Codec>(aTestIndex){};
    52 private:
    53 	virtual CMMFGsm610ToPcm16Codec* GetCodecL();
    54 };
    55 
    56 class CTestStepPcm16ToGsm610OomTest: public CTestStepOomTest<CMMFGsm610ToPcm16Codec>
    57 	{
    58 public:
    59 	CTestStepPcm16ToGsm610OomTest( TUint aTestIndex) 
    60 		: CTestStepOomTest<CMMFGsm610ToPcm16Codec>(aTestIndex){};
    61 private:
    62 	virtual CMMFGsm610ToPcm16Codec* GetCodecL();
    63 };
    64 
    65 
    66 #endif /* TSU_MMF_OOM_H_ */
    67