First public contribution.
1 // Copyright (c) 2002-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.
14 // This file contains Test step implementations for
15 // playing audio via the audio controller.
18 #if (!defined __TESTSTEP_PLAY_H__)
19 #define __TESTSTEP_PLAY_H__
24 #include "TS_MMF_ACTRL_TestStep.h"
29 * This class provides a test step to play a audio clip
31 * @lib "TSU_MMF_ACTRL_01.lib"
35 class CTestStepActrlPlay : public CTestStepActrl
39 ~CTestStepActrlPlay();
40 virtual TVerdict DoTestStepL( void );
46 * This class provides a test step to play an audio clip t times
48 * @lib "TSU_MMF_ACTRL_01.lib"
52 class CTestStepPlayT : public CTestStepActrl
55 CTestStepPlayT( TInt aTimesToPlay );
56 virtual ~CTestStepPlayT();
57 virtual enum TVerdict DoTestStepL();
65 * This class provides a test step to play an audio clip t times
67 * @lib "TSU_MMF_ACTRL_01.lib"
71 class CTestStepPause : public CTestStepActrl
75 virtual ~CTestStepPause();
76 virtual enum TVerdict DoTestStepL();
82 * This class provides a test step to test the stop function
85 * @lib "TSU_MMF_ACTRL_01.lib"
89 class CTestStepStop : public CTestStepActrl
93 virtual ~CTestStepStop();
94 virtual enum TVerdict DoTestStepL();
99 class TConvParameters;
103 * CTestStepConvertFormat
104 * This class provides a test step to test format conversion
106 * @lib "TSU_MMF_ACTRL_01.lib"
110 class CTestStepConvertFormat : public CTestStepActrl
113 CTestStepConvertFormat( TUint aTestIndex );
114 virtual ~CTestStepConvertFormat();
115 virtual enum TVerdict DoTestStepL();
116 TVerdict DoConvertStepL( void );
117 virtual TVerdict DoTestStepPreambleL(void);
118 virtual TVerdict DoTestStepPostambleL(void);
119 void SetRefFileNameL( const TDesC& aPathNameAndExtn );
120 TMMFFileConfig& RefFileName();
121 TVerdict CompareFilesL(const TDesC& aFile1,const TDesC& aFile2);
123 const TConvParameters *iTestParameters;
125 TMMFFileConfig iFileConfigRef; // audio reference file
130 * CTestStepRampVolume
131 * This class tests the volume Ramp
133 * @lib "TSU_MMF_ACTRL_01.lib"
136 class CTestStepRampVolume : public CTestStepActrl
139 CTestStepRampVolume();
140 virtual ~CTestStepRampVolume();
141 virtual enum TVerdict DoTestStepL();
142 virtual TVerdict DoTestStepPreambleL(void);
143 virtual TVerdict DoTestStepPostambleL(void);
147 #endif //(__TESTSTEP_PLAY_H__)