os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/teststepcisbcencoder.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/teststepcisbcencoder.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,151 @@
     1.4 +// Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +//
    1.18 +
    1.19 +#ifndef TESTSTEPCISBCENCODER_H
    1.20 +#define TESTSTEPCISBCENCODER_H
    1.21 +
    1.22 +#include <testframework.h>
    1.23 +
    1.24 +// Custom interface definitions
    1.25 +#include <mmf/server/devsoundstandardcustominterfaces.h>
    1.26 +#include <mmf/plugin/mmfdevsoundcustominterface.hrh>
    1.27 +
    1.28 +#include "devsoundciutestdevices.hrh"
    1.29 +
    1.30 +// Test system includes
    1.31 +#include "tsu_mmf_devsound_ciu_step.h"
    1.32 +#include "tsu_mmf_devsound_ciu_suite.h"
    1.33 +
    1.34 +class CTestStepCISbcEncoder : public CTestStepCustominterfaceUnificationUnit
    1.35 +	{
    1.36 +public:
    1.37 +	CTestStepCISbcEncoder();
    1.38 +	TVerdict DoTestStepL();
    1.39 +	};
    1.40 +
    1.41 +class CTestStepCISbcEncoderGetSupportedFrequencies : public CTestStepCustominterfaceUnificationUnit
    1.42 +	{
    1.43 +public:
    1.44 +	CTestStepCISbcEncoderGetSupportedFrequencies();
    1.45 +	TVerdict DoTestStepL();
    1.46 +private:
    1.47 +	TBool ValidateArray(const RArray<TUint>& aArray) const;
    1.48 +	};
    1.49 +
    1.50 +class CTestStepCISbcEncoderGetSupportedSubbands : public CTestStepCustominterfaceUnificationUnit
    1.51 +	{
    1.52 +public:
    1.53 +	CTestStepCISbcEncoderGetSupportedSubbands();
    1.54 +	TVerdict DoTestStepL();
    1.55 +private:
    1.56 +	TBool ValidateArray(const RArray<TUint>& aArray) const;
    1.57 +	};
    1.58 +
    1.59 +class CTestStepCISbcEncoderGetSupportedNumOfBlocks : public CTestStepCustominterfaceUnificationUnit
    1.60 +	{
    1.61 +public:
    1.62 +	CTestStepCISbcEncoderGetSupportedNumOfBlocks();
    1.63 +	TVerdict DoTestStepL();
    1.64 +private:
    1.65 +	TBool ValidateArray(const RArray<TUint>& aArray) const;
    1.66 +	};
    1.67 +
    1.68 +class CTestStepCISbcEncoderGetSupportedChannelModes : public CTestStepCustominterfaceUnificationUnit
    1.69 +	{
    1.70 +public:
    1.71 +	CTestStepCISbcEncoderGetSupportedChannelModes();
    1.72 +	TVerdict DoTestStepL();
    1.73 +private:
    1.74 +	TBool ValidateArray(const RArray<MSbcEncoderIntfc::TSbcChannelMode>& aArray) const;
    1.75 +	};
    1.76 +
    1.77 +class CTestStepCISbcEncoderGetSupportedAllocationMethods : public CTestStepCustominterfaceUnificationUnit
    1.78 +	{
    1.79 +public:
    1.80 +	CTestStepCISbcEncoderGetSupportedAllocationMethods();
    1.81 +	TVerdict DoTestStepL();
    1.82 +private:
    1.83 +	TBool ValidateArray(const RArray<MSbcEncoderIntfc::TSbcAllocationMethod>& aArray) const;
    1.84 +	};
    1.85 +
    1.86 +class CTestStepCISbcEncoderGetSupportedBitpoolRange : public CTestStepCustominterfaceUnificationUnit
    1.87 +	{
    1.88 +public:
    1.89 +	CTestStepCISbcEncoderGetSupportedBitpoolRange();
    1.90 +	TVerdict DoTestStepL();
    1.91 +	};
    1.92 +	
    1.93 +class CTestStepCISbcEncoderGetSetFrequency : public CTestStepCustominterfaceUnificationUnit
    1.94 +	{
    1.95 +public:
    1.96 +	CTestStepCISbcEncoderGetSetFrequency(TBool iIsGetTest);
    1.97 +	TVerdict DoTestStepL();
    1.98 +private:
    1.99 +	TBool iIsGetTest;
   1.100 +	};
   1.101 +
   1.102 +class CTestStepCISbcEncoderGetSetChannelMode : public CTestStepCustominterfaceUnificationUnit
   1.103 +	{
   1.104 +public:
   1.105 +	CTestStepCISbcEncoderGetSetChannelMode(TBool iIsGetTest);
   1.106 +	TVerdict DoTestStepL();
   1.107 +private:
   1.108 +	TBool iIsGetTest;
   1.109 +	};
   1.110 +
   1.111 +class CTestStepCISbcEncoderGetSetNumOfSubbands : public CTestStepCustominterfaceUnificationUnit
   1.112 +	{
   1.113 +public:
   1.114 +	CTestStepCISbcEncoderGetSetNumOfSubbands(TBool iIsGetTest);
   1.115 +	TVerdict DoTestStepL();
   1.116 +private:
   1.117 +	TBool iIsGetTest;
   1.118 +	};
   1.119 +
   1.120 +class CTestStepCISbcEncoderGetSetNumOfBlocks : public CTestStepCustominterfaceUnificationUnit
   1.121 +	{
   1.122 +public:
   1.123 +	CTestStepCISbcEncoderGetSetNumOfBlocks(TBool iIsGetTest);
   1.124 +	TVerdict DoTestStepL();
   1.125 +private:
   1.126 +	TBool iIsGetTest;
   1.127 +	};
   1.128 +
   1.129 +class CTestStepCISbcEncoderGetSetAllocationMethod : public CTestStepCustominterfaceUnificationUnit
   1.130 +	{
   1.131 +public:
   1.132 +	CTestStepCISbcEncoderGetSetAllocationMethod(TBool iIsGetTest);
   1.133 +	TVerdict DoTestStepL();
   1.134 +private:
   1.135 +	TBool iIsGetTest;
   1.136 +	};
   1.137 +
   1.138 +class CTestStepCISbcEncoderGetSetBitpoolSize : public CTestStepCustominterfaceUnificationUnit
   1.139 +	{
   1.140 +public:
   1.141 +	CTestStepCISbcEncoderGetSetBitpoolSize(TBool iIsGetTest);
   1.142 +	TVerdict DoTestStepL();
   1.143 +private:
   1.144 +	TBool iIsGetTest;
   1.145 +	};
   1.146 +	
   1.147 +class CTestStepCISbcEncoderApplyConfig : public CTestStepCustominterfaceUnificationUnit
   1.148 +	{
   1.149 +public:
   1.150 +	CTestStepCISbcEncoderApplyConfig();
   1.151 +	TVerdict DoTestStepL();
   1.152 +	};
   1.153 +
   1.154 +#endif