Update contrib.
1 // Copyright (c) 2005-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.
16 #ifndef TESTSTEPOGGCTRLPLAY_H
17 #define TESTSTEPOGGCTRLPLAY_H
19 #include "tsu_mmf_oggctrl_teststep.h"
23 * This class tests playing an ogg file completely and checks for playcompletion
24 * event with KErrNone from the oggplaycontroller.
26 * @lib "TSU_MMF_OGGCTRL_01.lib"
29 class RTestStepOggCtrlPlay : public RTestStepOggCtrlPlayBase
32 RTestStepOggCtrlPlay(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
33 virtual TVerdict DoTestStepL();
38 * This class tests setting the volume on OggPlayController in Stopped, Primed and Playing
39 * states and checks if the volume set is same as the volume got.
41 * @lib "TSU_MMF_OGGCTRL_01.lib"
44 class RTestStepOggCtrlVolume : public RTestStepOggCtrlPlayBase
47 RTestStepOggCtrlVolume(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
48 virtual TVerdict DoTestStepL();
53 * This class tests setting the PlayBalance on OggPlayController in Stopped, Primed and Playing
54 * states and checks if the PlayBalance set is same as the PlayBalance got.
56 * @lib "TSU_MMF_OGGCTRL_01.lib"
59 class RTestStepOggCtrlPlayBalance : public RTestStepOggCtrlPlayBase
62 RTestStepOggCtrlPlayBalance(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
63 virtual TVerdict DoTestStepL();
68 * This class tests setting the Position on OggPlayController in Stopped, Primed and Playing
69 * states and checks if the Position set is same as the Position got.
71 * @lib "TSU_MMF_OGGCTRL_01.lib"
74 class RTestStepOggCtrlPosition : public RTestStepOggCtrlPlayBase
77 RTestStepOggCtrlPosition(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
78 virtual TVerdict DoTestStepL();
83 * This class tests pause functionality of OggPlayController in Stopped, Primed and Playing
84 * states and checks if the play starts from the current position during playign state
86 * @lib "TSU_MMF_OGGCTRL_01.lib"
89 class RTestStepOggCtrlPause : public RTestStepOggCtrlPlayBase
92 RTestStepOggCtrlPause(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
93 virtual TVerdict DoTestStepL();
98 * This class tests stop functionality of OggPlayController in Stopped, Primed and Playing
99 * states and checks if the play starts from the initial position during playing state
101 * @lib "TSU_MMF_OGGCTRL_01.lib"
104 class RTestStepOggCtrlStop : public RTestStepOggCtrlPlayBase
107 RTestStepOggCtrlStop(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
108 virtual TVerdict DoTestStepL();
113 * This class tests metadata support of the OggPlayController.
115 * @lib "TSU_MMF_OGGCTRL_01.lib"
118 class RTestStepOggCtrlMetaData : public RTestStepOggCtrlPlayBase
121 RTestStepOggCtrlMetaData(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
122 virtual TVerdict DoTestStepL();
127 * This class tests PlayWindow support of the OggPlayController.
129 * @lib "TSU_MMF_OGGCTRL_01.lib"
132 class RTestStepOggCtrlPlayWindow : public RTestStepOggCtrlPlayBase
135 RTestStepOggCtrlPlayWindow(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
136 virtual TVerdict DoTestStepL();
141 * This class tests Getting the audio configuratin of the file using OggPlayController.
143 * @lib "TSU_MMF_OGGCTRL_01.lib"
146 class RTestStepOggCtrlGetSetConfig : public RTestStepOggCtrlPlayBase
149 RTestStepOggCtrlGetSetConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
150 virtual TVerdict DoTestStepL();
155 * This class tests Getting the duration of the file using OggPlayController.
157 * @lib "TSU_MMF_OGGCTRL_01.lib"
160 class RTestStepOggCtrlDuration : public RTestStepOggCtrlPlayBase
163 RTestStepOggCtrlDuration(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
164 virtual TVerdict DoTestStepL();
170 * This class tests opening an invalid file using OggPlayController.
172 * @lib "TSU_MMF_OGGCTRL_01.lib"
175 class RTestStepOggCtrlPlayInvalid : public RTestStepOggCtrlPlayBase
178 RTestStepOggCtrlPlayInvalid(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
179 virtual TVerdict DoTestStepPreambleL(void);
180 virtual TVerdict DoTestStepL();
185 * This class tests setting an invalid sourcedatatype on OggPlayController.
187 * @lib "TSU_MMF_OGGCTRL_01.lib"
190 class RTestStepOggCtrlSetInvalidConfig : public RTestStepOggCtrlPlayBase
193 RTestStepOggCtrlSetInvalidConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
194 virtual TVerdict DoTestStepL();
199 * This class tests opening an invalid file using OggPlayController.
201 * @lib "TSU_MMF_OGGCTRL_01.lib"
204 class RTestStepOggCtrlPositionNegative : public RTestStepOggCtrlPlayBase
207 RTestStepOggCtrlPositionNegative(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
208 virtual TVerdict DoTestStepL();
210 #endif //(TESTSTEPOGGCTRLPLAY_H)