os/mm/mmlibs/mmfw/tsrc/mmfunittest/Actrl/TestStepActrlPlay.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/Actrl/TestStepActrlPlay.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,147 @@
     1.4 +// Copyright (c) 2002-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 +// This file contains Test step implementations for
    1.18 +// playing audio via the audio controller.
    1.19 +//
    1.20 +
    1.21 +#if (!defined __TESTSTEP_PLAY_H__)
    1.22 +#define __TESTSTEP_PLAY_H__
    1.23 +
    1.24 +#include <e32std.h>
    1.25 +#include <e32base.h>
    1.26 +
    1.27 +#include "TS_MMF_ACTRL_TestStep.h"
    1.28 +
    1.29 +/**
    1.30 + *
    1.31 + * CTestStepActrlPlay
    1.32 + * This class provides a test step to play a audio clip
    1.33 + *
    1.34 + * @lib "TSU_MMF_ACTRL_01.lib"
    1.35 + *
    1.36 + *
    1.37 + */
    1.38 +class CTestStepActrlPlay : public CTestStepActrl
    1.39 +{
    1.40 +public:
    1.41 +		CTestStepActrlPlay();
    1.42 +		~CTestStepActrlPlay();
    1.43 +		virtual TVerdict  DoTestStepL( void );
    1.44 +};
    1.45 +
    1.46 +/**
    1.47 + *
    1.48 + * CTestStepPlayT
    1.49 + * This class provides a test step to play an audio clip t times
    1.50 + *
    1.51 + * @lib "TSU_MMF_ACTRL_01.lib"
    1.52 + *
    1.53 + *
    1.54 + */
    1.55 +class CTestStepPlayT : public CTestStepActrl
    1.56 +	 {
    1.57 +public:
    1.58 +	CTestStepPlayT( TInt aTimesToPlay );
    1.59 +	virtual ~CTestStepPlayT();
    1.60 +	virtual enum TVerdict DoTestStepL();
    1.61 +private:
    1.62 +	TInt iTimesToPlay ; 
    1.63 +	};
    1.64 +
    1.65 +/**
    1.66 + *
    1.67 + * CTestStepPause
    1.68 + * This class provides a test step to play an audio clip t times
    1.69 + *
    1.70 + * @lib "TSU_MMF_ACTRL_01.lib"
    1.71 + *
    1.72 + *
    1.73 + */
    1.74 +class CTestStepPause : public CTestStepActrl
    1.75 +	 {
    1.76 +public:
    1.77 +	CTestStepPause();
    1.78 +	virtual ~CTestStepPause();
    1.79 +	virtual enum TVerdict DoTestStepL();
    1.80 +	};
    1.81 +
    1.82 +/**
    1.83 + *
    1.84 + * CTestStepStop
    1.85 + * This class provides a test step to test the stop function
    1.86 + * on the Controller
    1.87 + *
    1.88 + * @lib "TSU_MMF_ACTRL_01.lib"
    1.89 + *
    1.90 + *
    1.91 + */
    1.92 +class CTestStepStop : public CTestStepActrl
    1.93 +	 {
    1.94 +public:
    1.95 +	CTestStepStop();
    1.96 +	virtual ~CTestStepStop();
    1.97 +	virtual enum TVerdict DoTestStepL();
    1.98 +	};
    1.99 +
   1.100 +
   1.101 +// forward reference
   1.102 +class TConvParameters;
   1.103 +
   1.104 +/**
   1.105 + *
   1.106 + * CTestStepConvertFormat
   1.107 + * This class provides a test step to test format conversion
   1.108 + *
   1.109 + * @lib "TSU_MMF_ACTRL_01.lib"
   1.110 + *
   1.111 + *
   1.112 + */
   1.113 +class CTestStepConvertFormat : public CTestStepActrl
   1.114 +	 {
   1.115 +public:
   1.116 +	CTestStepConvertFormat( TUint aTestIndex );
   1.117 +	virtual ~CTestStepConvertFormat();
   1.118 +	virtual enum TVerdict DoTestStepL();
   1.119 +	TVerdict DoConvertStepL( void );
   1.120 +	virtual TVerdict DoTestStepPreambleL(void);
   1.121 +	virtual TVerdict DoTestStepPostambleL(void);
   1.122 +	void SetRefFileNameL( const TDesC& aPathNameAndExtn );
   1.123 +	TMMFFileConfig& RefFileName();
   1.124 +	TVerdict CompareFilesL(const TDesC& aFile1,const TDesC& aFile2);
   1.125 +private:
   1.126 +	const TConvParameters *iTestParameters;
   1.127 +
   1.128 +	TMMFFileConfig  iFileConfigRef;		// audio reference file 
   1.129 +	};
   1.130 +
   1.131 +/**
   1.132 + *
   1.133 + * CTestStepRampVolume
   1.134 + * This class tests the volume Ramp
   1.135 + *
   1.136 + * @lib "TSU_MMF_ACTRL_01.lib"
   1.137 + *
   1.138 + */
   1.139 +class CTestStepRampVolume : public CTestStepActrl
   1.140 +	 {
   1.141 +public:
   1.142 +	CTestStepRampVolume();
   1.143 +	virtual ~CTestStepRampVolume();
   1.144 +	virtual enum TVerdict DoTestStepL();
   1.145 +	virtual TVerdict DoTestStepPreambleL(void);
   1.146 +	virtual TVerdict DoTestStepPostambleL(void);
   1.147 +	};
   1.148 +
   1.149 +
   1.150 +#endif //(__TESTSTEP_PLAY_H__)