|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #ifndef TESTSTEPOGGCTRLPLAY_H |
|
17 #define TESTSTEPOGGCTRLPLAY_H |
|
18 |
|
19 #include "tsu_mmf_oggctrl_teststep.h" |
|
20 |
|
21 /** |
|
22 * |
|
23 * This class tests playing an ogg file completely and checks for playcompletion |
|
24 * event with KErrNone from the oggplaycontroller. |
|
25 * |
|
26 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
27 * |
|
28 */ |
|
29 class RTestStepOggCtrlPlay : public RTestStepOggCtrlPlayBase |
|
30 { |
|
31 public: |
|
32 RTestStepOggCtrlPlay(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
33 virtual TVerdict DoTestStepL(); |
|
34 }; |
|
35 |
|
36 /** |
|
37 * |
|
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. |
|
40 * |
|
41 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
42 * |
|
43 */ |
|
44 class RTestStepOggCtrlVolume : public RTestStepOggCtrlPlayBase |
|
45 { |
|
46 public: |
|
47 RTestStepOggCtrlVolume(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
48 virtual TVerdict DoTestStepL(); |
|
49 }; |
|
50 |
|
51 /** |
|
52 * |
|
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. |
|
55 * |
|
56 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
57 * |
|
58 */ |
|
59 class RTestStepOggCtrlPlayBalance : public RTestStepOggCtrlPlayBase |
|
60 { |
|
61 public: |
|
62 RTestStepOggCtrlPlayBalance(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
63 virtual TVerdict DoTestStepL(); |
|
64 }; |
|
65 |
|
66 /** |
|
67 * |
|
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. |
|
70 * |
|
71 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
72 * |
|
73 */ |
|
74 class RTestStepOggCtrlPosition : public RTestStepOggCtrlPlayBase |
|
75 { |
|
76 public: |
|
77 RTestStepOggCtrlPosition(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
78 virtual TVerdict DoTestStepL(); |
|
79 }; |
|
80 |
|
81 /** |
|
82 * |
|
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 |
|
85 * |
|
86 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
87 * |
|
88 */ |
|
89 class RTestStepOggCtrlPause : public RTestStepOggCtrlPlayBase |
|
90 { |
|
91 public: |
|
92 RTestStepOggCtrlPause(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
93 virtual TVerdict DoTestStepL(); |
|
94 }; |
|
95 |
|
96 /** |
|
97 * |
|
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 |
|
100 * |
|
101 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
102 * |
|
103 */ |
|
104 class RTestStepOggCtrlStop : public RTestStepOggCtrlPlayBase |
|
105 { |
|
106 public: |
|
107 RTestStepOggCtrlStop(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
108 virtual TVerdict DoTestStepL(); |
|
109 }; |
|
110 |
|
111 /** |
|
112 * |
|
113 * This class tests metadata support of the OggPlayController. |
|
114 * |
|
115 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
116 * |
|
117 */ |
|
118 class RTestStepOggCtrlMetaData : public RTestStepOggCtrlPlayBase |
|
119 { |
|
120 public: |
|
121 RTestStepOggCtrlMetaData(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
122 virtual TVerdict DoTestStepL(); |
|
123 }; |
|
124 |
|
125 /** |
|
126 * |
|
127 * This class tests PlayWindow support of the OggPlayController. |
|
128 * |
|
129 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
130 * |
|
131 */ |
|
132 class RTestStepOggCtrlPlayWindow : public RTestStepOggCtrlPlayBase |
|
133 { |
|
134 public: |
|
135 RTestStepOggCtrlPlayWindow(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
136 virtual TVerdict DoTestStepL(); |
|
137 }; |
|
138 |
|
139 /** |
|
140 * |
|
141 * This class tests Getting the audio configuratin of the file using OggPlayController. |
|
142 * |
|
143 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
144 * |
|
145 */ |
|
146 class RTestStepOggCtrlGetSetConfig : public RTestStepOggCtrlPlayBase |
|
147 { |
|
148 public: |
|
149 RTestStepOggCtrlGetSetConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
150 virtual TVerdict DoTestStepL(); |
|
151 }; |
|
152 |
|
153 /** |
|
154 * |
|
155 * This class tests Getting the duration of the file using OggPlayController. |
|
156 * |
|
157 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
158 * |
|
159 */ |
|
160 class RTestStepOggCtrlDuration : public RTestStepOggCtrlPlayBase |
|
161 { |
|
162 public: |
|
163 RTestStepOggCtrlDuration(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
164 virtual TVerdict DoTestStepL(); |
|
165 }; |
|
166 |
|
167 //Negative Tests |
|
168 /** |
|
169 * |
|
170 * This class tests opening an invalid file using OggPlayController. |
|
171 * |
|
172 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
173 * |
|
174 */ |
|
175 class RTestStepOggCtrlPlayInvalid : public RTestStepOggCtrlPlayBase |
|
176 { |
|
177 public: |
|
178 RTestStepOggCtrlPlayInvalid(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
179 virtual TVerdict DoTestStepPreambleL(void); |
|
180 virtual TVerdict DoTestStepL(); |
|
181 }; |
|
182 |
|
183 /** |
|
184 * |
|
185 * This class tests setting an invalid sourcedatatype on OggPlayController. |
|
186 * |
|
187 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
188 * |
|
189 */ |
|
190 class RTestStepOggCtrlSetInvalidConfig : public RTestStepOggCtrlPlayBase |
|
191 { |
|
192 public: |
|
193 RTestStepOggCtrlSetInvalidConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
194 virtual TVerdict DoTestStepL(); |
|
195 }; |
|
196 |
|
197 /** |
|
198 * |
|
199 * This class tests opening an invalid file using OggPlayController. |
|
200 * |
|
201 * @lib "TSU_MMF_OGGCTRL_01.lib" |
|
202 * |
|
203 */ |
|
204 class RTestStepOggCtrlPositionNegative : public RTestStepOggCtrlPlayBase |
|
205 { |
|
206 public: |
|
207 RTestStepOggCtrlPositionNegative(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid); |
|
208 virtual TVerdict DoTestStepL(); |
|
209 }; |
|
210 #endif //(TESTSTEPOGGCTRLPLAY_H) |