sl@0
|
1 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef TESTSTEPOGGCTRLPLAY_H
|
sl@0
|
17 |
#define TESTSTEPOGGCTRLPLAY_H
|
sl@0
|
18 |
|
sl@0
|
19 |
#include "tsu_mmf_oggctrl_teststep.h"
|
sl@0
|
20 |
|
sl@0
|
21 |
/**
|
sl@0
|
22 |
*
|
sl@0
|
23 |
* This class tests playing an ogg file completely and checks for playcompletion
|
sl@0
|
24 |
* event with KErrNone from the oggplaycontroller.
|
sl@0
|
25 |
*
|
sl@0
|
26 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
27 |
*
|
sl@0
|
28 |
*/
|
sl@0
|
29 |
class RTestStepOggCtrlPlay : public RTestStepOggCtrlPlayBase
|
sl@0
|
30 |
{
|
sl@0
|
31 |
public:
|
sl@0
|
32 |
RTestStepOggCtrlPlay(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
33 |
virtual TVerdict DoTestStepL();
|
sl@0
|
34 |
};
|
sl@0
|
35 |
|
sl@0
|
36 |
/**
|
sl@0
|
37 |
*
|
sl@0
|
38 |
* This class tests setting the volume on OggPlayController in Stopped, Primed and Playing
|
sl@0
|
39 |
* states and checks if the volume set is same as the volume got.
|
sl@0
|
40 |
*
|
sl@0
|
41 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
42 |
*
|
sl@0
|
43 |
*/
|
sl@0
|
44 |
class RTestStepOggCtrlVolume : public RTestStepOggCtrlPlayBase
|
sl@0
|
45 |
{
|
sl@0
|
46 |
public:
|
sl@0
|
47 |
RTestStepOggCtrlVolume(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
48 |
virtual TVerdict DoTestStepL();
|
sl@0
|
49 |
};
|
sl@0
|
50 |
|
sl@0
|
51 |
/**
|
sl@0
|
52 |
*
|
sl@0
|
53 |
* This class tests setting the PlayBalance on OggPlayController in Stopped, Primed and Playing
|
sl@0
|
54 |
* states and checks if the PlayBalance set is same as the PlayBalance got.
|
sl@0
|
55 |
*
|
sl@0
|
56 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
57 |
*
|
sl@0
|
58 |
*/
|
sl@0
|
59 |
class RTestStepOggCtrlPlayBalance : public RTestStepOggCtrlPlayBase
|
sl@0
|
60 |
{
|
sl@0
|
61 |
public:
|
sl@0
|
62 |
RTestStepOggCtrlPlayBalance(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
63 |
virtual TVerdict DoTestStepL();
|
sl@0
|
64 |
};
|
sl@0
|
65 |
|
sl@0
|
66 |
/**
|
sl@0
|
67 |
*
|
sl@0
|
68 |
* This class tests setting the Position on OggPlayController in Stopped, Primed and Playing
|
sl@0
|
69 |
* states and checks if the Position set is same as the Position got.
|
sl@0
|
70 |
*
|
sl@0
|
71 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
72 |
*
|
sl@0
|
73 |
*/
|
sl@0
|
74 |
class RTestStepOggCtrlPosition : public RTestStepOggCtrlPlayBase
|
sl@0
|
75 |
{
|
sl@0
|
76 |
public:
|
sl@0
|
77 |
RTestStepOggCtrlPosition(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
78 |
virtual TVerdict DoTestStepL();
|
sl@0
|
79 |
};
|
sl@0
|
80 |
|
sl@0
|
81 |
/**
|
sl@0
|
82 |
*
|
sl@0
|
83 |
* This class tests pause functionality of OggPlayController in Stopped, Primed and Playing
|
sl@0
|
84 |
* states and checks if the play starts from the current position during playign state
|
sl@0
|
85 |
*
|
sl@0
|
86 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
87 |
*
|
sl@0
|
88 |
*/
|
sl@0
|
89 |
class RTestStepOggCtrlPause : public RTestStepOggCtrlPlayBase
|
sl@0
|
90 |
{
|
sl@0
|
91 |
public:
|
sl@0
|
92 |
RTestStepOggCtrlPause(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
93 |
virtual TVerdict DoTestStepL();
|
sl@0
|
94 |
};
|
sl@0
|
95 |
|
sl@0
|
96 |
/**
|
sl@0
|
97 |
*
|
sl@0
|
98 |
* This class tests stop functionality of OggPlayController in Stopped, Primed and Playing
|
sl@0
|
99 |
* states and checks if the play starts from the initial position during playing state
|
sl@0
|
100 |
*
|
sl@0
|
101 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
102 |
*
|
sl@0
|
103 |
*/
|
sl@0
|
104 |
class RTestStepOggCtrlStop : public RTestStepOggCtrlPlayBase
|
sl@0
|
105 |
{
|
sl@0
|
106 |
public:
|
sl@0
|
107 |
RTestStepOggCtrlStop(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
108 |
virtual TVerdict DoTestStepL();
|
sl@0
|
109 |
};
|
sl@0
|
110 |
|
sl@0
|
111 |
/**
|
sl@0
|
112 |
*
|
sl@0
|
113 |
* This class tests metadata support of the OggPlayController.
|
sl@0
|
114 |
*
|
sl@0
|
115 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
116 |
*
|
sl@0
|
117 |
*/
|
sl@0
|
118 |
class RTestStepOggCtrlMetaData : public RTestStepOggCtrlPlayBase
|
sl@0
|
119 |
{
|
sl@0
|
120 |
public:
|
sl@0
|
121 |
RTestStepOggCtrlMetaData(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
122 |
virtual TVerdict DoTestStepL();
|
sl@0
|
123 |
};
|
sl@0
|
124 |
|
sl@0
|
125 |
/**
|
sl@0
|
126 |
*
|
sl@0
|
127 |
* This class tests PlayWindow support of the OggPlayController.
|
sl@0
|
128 |
*
|
sl@0
|
129 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
130 |
*
|
sl@0
|
131 |
*/
|
sl@0
|
132 |
class RTestStepOggCtrlPlayWindow : public RTestStepOggCtrlPlayBase
|
sl@0
|
133 |
{
|
sl@0
|
134 |
public:
|
sl@0
|
135 |
RTestStepOggCtrlPlayWindow(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
136 |
virtual TVerdict DoTestStepL();
|
sl@0
|
137 |
};
|
sl@0
|
138 |
|
sl@0
|
139 |
/**
|
sl@0
|
140 |
*
|
sl@0
|
141 |
* This class tests Getting the audio configuratin of the file using OggPlayController.
|
sl@0
|
142 |
*
|
sl@0
|
143 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
144 |
*
|
sl@0
|
145 |
*/
|
sl@0
|
146 |
class RTestStepOggCtrlGetSetConfig : public RTestStepOggCtrlPlayBase
|
sl@0
|
147 |
{
|
sl@0
|
148 |
public:
|
sl@0
|
149 |
RTestStepOggCtrlGetSetConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
150 |
virtual TVerdict DoTestStepL();
|
sl@0
|
151 |
};
|
sl@0
|
152 |
|
sl@0
|
153 |
/**
|
sl@0
|
154 |
*
|
sl@0
|
155 |
* This class tests Getting the duration of the file using OggPlayController.
|
sl@0
|
156 |
*
|
sl@0
|
157 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
158 |
*
|
sl@0
|
159 |
*/
|
sl@0
|
160 |
class RTestStepOggCtrlDuration : public RTestStepOggCtrlPlayBase
|
sl@0
|
161 |
{
|
sl@0
|
162 |
public:
|
sl@0
|
163 |
RTestStepOggCtrlDuration(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
164 |
virtual TVerdict DoTestStepL();
|
sl@0
|
165 |
};
|
sl@0
|
166 |
|
sl@0
|
167 |
//Negative Tests
|
sl@0
|
168 |
/**
|
sl@0
|
169 |
*
|
sl@0
|
170 |
* This class tests opening an invalid file using OggPlayController.
|
sl@0
|
171 |
*
|
sl@0
|
172 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
173 |
*
|
sl@0
|
174 |
*/
|
sl@0
|
175 |
class RTestStepOggCtrlPlayInvalid : public RTestStepOggCtrlPlayBase
|
sl@0
|
176 |
{
|
sl@0
|
177 |
public:
|
sl@0
|
178 |
RTestStepOggCtrlPlayInvalid(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
179 |
virtual TVerdict DoTestStepPreambleL(void);
|
sl@0
|
180 |
virtual TVerdict DoTestStepL();
|
sl@0
|
181 |
};
|
sl@0
|
182 |
|
sl@0
|
183 |
/**
|
sl@0
|
184 |
*
|
sl@0
|
185 |
* This class tests setting an invalid sourcedatatype on OggPlayController.
|
sl@0
|
186 |
*
|
sl@0
|
187 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
188 |
*
|
sl@0
|
189 |
*/
|
sl@0
|
190 |
class RTestStepOggCtrlSetInvalidConfig : public RTestStepOggCtrlPlayBase
|
sl@0
|
191 |
{
|
sl@0
|
192 |
public:
|
sl@0
|
193 |
RTestStepOggCtrlSetInvalidConfig(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
194 |
virtual TVerdict DoTestStepL();
|
sl@0
|
195 |
};
|
sl@0
|
196 |
|
sl@0
|
197 |
/**
|
sl@0
|
198 |
*
|
sl@0
|
199 |
* This class tests opening an invalid file using OggPlayController.
|
sl@0
|
200 |
*
|
sl@0
|
201 |
* @lib "TSU_MMF_OGGCTRL_01.lib"
|
sl@0
|
202 |
*
|
sl@0
|
203 |
*/
|
sl@0
|
204 |
class RTestStepOggCtrlPositionNegative : public RTestStepOggCtrlPlayBase
|
sl@0
|
205 |
{
|
sl@0
|
206 |
public:
|
sl@0
|
207 |
RTestStepOggCtrlPositionNegative(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TUid aControllerUid);
|
sl@0
|
208 |
virtual TVerdict DoTestStepL();
|
sl@0
|
209 |
};
|
sl@0
|
210 |
#endif //(TESTSTEPOGGCTRLPLAY_H)
|