os/mm/mmlibs/mmfw/tsrc/mmfunittest/DevSoundTest/CIPlugins/src/teststepcisbcencoder.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2007-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 TESTSTEPCISBCENCODER_H
    17 #define TESTSTEPCISBCENCODER_H
    18 
    19 #include <testframework.h>
    20 
    21 // Custom interface definitions
    22 #include <mmf/server/devsoundstandardcustominterfaces.h>
    23 #include <mmf/plugin/mmfdevsoundcustominterface.hrh>
    24 
    25 #include "devsoundciutestdevices.hrh"
    26 
    27 // Test system includes
    28 #include "tsu_mmf_devsound_ciu_step.h"
    29 #include "tsu_mmf_devsound_ciu_suite.h"
    30 
    31 class CTestStepCISbcEncoder : public CTestStepCustominterfaceUnificationUnit
    32 	{
    33 public:
    34 	CTestStepCISbcEncoder();
    35 	TVerdict DoTestStepL();
    36 	};
    37 
    38 class CTestStepCISbcEncoderGetSupportedFrequencies : public CTestStepCustominterfaceUnificationUnit
    39 	{
    40 public:
    41 	CTestStepCISbcEncoderGetSupportedFrequencies();
    42 	TVerdict DoTestStepL();
    43 private:
    44 	TBool ValidateArray(const RArray<TUint>& aArray) const;
    45 	};
    46 
    47 class CTestStepCISbcEncoderGetSupportedSubbands : public CTestStepCustominterfaceUnificationUnit
    48 	{
    49 public:
    50 	CTestStepCISbcEncoderGetSupportedSubbands();
    51 	TVerdict DoTestStepL();
    52 private:
    53 	TBool ValidateArray(const RArray<TUint>& aArray) const;
    54 	};
    55 
    56 class CTestStepCISbcEncoderGetSupportedNumOfBlocks : public CTestStepCustominterfaceUnificationUnit
    57 	{
    58 public:
    59 	CTestStepCISbcEncoderGetSupportedNumOfBlocks();
    60 	TVerdict DoTestStepL();
    61 private:
    62 	TBool ValidateArray(const RArray<TUint>& aArray) const;
    63 	};
    64 
    65 class CTestStepCISbcEncoderGetSupportedChannelModes : public CTestStepCustominterfaceUnificationUnit
    66 	{
    67 public:
    68 	CTestStepCISbcEncoderGetSupportedChannelModes();
    69 	TVerdict DoTestStepL();
    70 private:
    71 	TBool ValidateArray(const RArray<MSbcEncoderIntfc::TSbcChannelMode>& aArray) const;
    72 	};
    73 
    74 class CTestStepCISbcEncoderGetSupportedAllocationMethods : public CTestStepCustominterfaceUnificationUnit
    75 	{
    76 public:
    77 	CTestStepCISbcEncoderGetSupportedAllocationMethods();
    78 	TVerdict DoTestStepL();
    79 private:
    80 	TBool ValidateArray(const RArray<MSbcEncoderIntfc::TSbcAllocationMethod>& aArray) const;
    81 	};
    82 
    83 class CTestStepCISbcEncoderGetSupportedBitpoolRange : public CTestStepCustominterfaceUnificationUnit
    84 	{
    85 public:
    86 	CTestStepCISbcEncoderGetSupportedBitpoolRange();
    87 	TVerdict DoTestStepL();
    88 	};
    89 	
    90 class CTestStepCISbcEncoderGetSetFrequency : public CTestStepCustominterfaceUnificationUnit
    91 	{
    92 public:
    93 	CTestStepCISbcEncoderGetSetFrequency(TBool iIsGetTest);
    94 	TVerdict DoTestStepL();
    95 private:
    96 	TBool iIsGetTest;
    97 	};
    98 
    99 class CTestStepCISbcEncoderGetSetChannelMode : public CTestStepCustominterfaceUnificationUnit
   100 	{
   101 public:
   102 	CTestStepCISbcEncoderGetSetChannelMode(TBool iIsGetTest);
   103 	TVerdict DoTestStepL();
   104 private:
   105 	TBool iIsGetTest;
   106 	};
   107 
   108 class CTestStepCISbcEncoderGetSetNumOfSubbands : public CTestStepCustominterfaceUnificationUnit
   109 	{
   110 public:
   111 	CTestStepCISbcEncoderGetSetNumOfSubbands(TBool iIsGetTest);
   112 	TVerdict DoTestStepL();
   113 private:
   114 	TBool iIsGetTest;
   115 	};
   116 
   117 class CTestStepCISbcEncoderGetSetNumOfBlocks : public CTestStepCustominterfaceUnificationUnit
   118 	{
   119 public:
   120 	CTestStepCISbcEncoderGetSetNumOfBlocks(TBool iIsGetTest);
   121 	TVerdict DoTestStepL();
   122 private:
   123 	TBool iIsGetTest;
   124 	};
   125 
   126 class CTestStepCISbcEncoderGetSetAllocationMethod : public CTestStepCustominterfaceUnificationUnit
   127 	{
   128 public:
   129 	CTestStepCISbcEncoderGetSetAllocationMethod(TBool iIsGetTest);
   130 	TVerdict DoTestStepL();
   131 private:
   132 	TBool iIsGetTest;
   133 	};
   134 
   135 class CTestStepCISbcEncoderGetSetBitpoolSize : public CTestStepCustominterfaceUnificationUnit
   136 	{
   137 public:
   138 	CTestStepCISbcEncoderGetSetBitpoolSize(TBool iIsGetTest);
   139 	TVerdict DoTestStepL();
   140 private:
   141 	TBool iIsGetTest;
   142 	};
   143 	
   144 class CTestStepCISbcEncoderApplyConfig : public CTestStepCustominterfaceUnificationUnit
   145 	{
   146 public:
   147 	CTestStepCISbcEncoderApplyConfig();
   148 	TVerdict DoTestStepL();
   149 	};
   150 
   151 #endif