sl@0
|
1 |
// Copyright (c) 2006-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 |
// Header file: Video Player Tests.
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
|
sl@0
|
18 |
#ifndef TESTVIDEOPLAYER_SECDISP_H
|
sl@0
|
19 |
#define TESTVIDEOPLAYER_SECDISP_H
|
sl@0
|
20 |
|
sl@0
|
21 |
#include "tsi_mmf_vclntavi_stepbase.h"
|
sl@0
|
22 |
|
sl@0
|
23 |
class CTestVclntAviPlayTimer;
|
sl@0
|
24 |
|
sl@0
|
25 |
/**
|
sl@0
|
26 |
*
|
sl@0
|
27 |
* RTestVclntSetScrIdAndPlayBase
|
sl@0
|
28 |
*
|
sl@0
|
29 |
*/
|
sl@0
|
30 |
class RTestVclntSetScrIdAndPlayBase : public RTestVclntAviPlayerStep
|
sl@0
|
31 |
{
|
sl@0
|
32 |
public:
|
sl@0
|
33 |
RTestVclntSetScrIdAndPlayBase(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
34 |
|
sl@0
|
35 |
virtual void FsmL(TVclntTestPlayEvents aEventCode) = 0;
|
sl@0
|
36 |
// timer handling
|
sl@0
|
37 |
virtual void FinishedL();
|
sl@0
|
38 |
// Just to handle the behaviour of ARMV5
|
sl@0
|
39 |
virtual void MvpuoOpenComplete(TInt aError);
|
sl@0
|
40 |
protected:
|
sl@0
|
41 |
TInt iScreenNumber; // Stores screen number
|
sl@0
|
42 |
TInt iCurrentScreenNumber; // Stores currently active screen number
|
sl@0
|
43 |
};
|
sl@0
|
44 |
|
sl@0
|
45 |
/**
|
sl@0
|
46 |
* Set the screen id and Play the video file.
|
sl@0
|
47 |
* Set the invalid screen id and Play the video file.
|
sl@0
|
48 |
*
|
sl@0
|
49 |
* RTestVclntSetScrIdAndPlayAviFile
|
sl@0
|
50 |
* MM-MMF-VCLNTAVI-I-0201-CP, MM-MMF-VCLNTAVI-I-0251-CP
|
sl@0
|
51 |
*
|
sl@0
|
52 |
*/
|
sl@0
|
53 |
class RTestVclntSetScrIdAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
54 |
{
|
sl@0
|
55 |
public:
|
sl@0
|
56 |
static RTestVclntSetScrIdAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
57 |
virtual TVerdict DoTestStepL();
|
sl@0
|
58 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
59 |
private:
|
sl@0
|
60 |
RTestVclntSetScrIdAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
61 |
};
|
sl@0
|
62 |
|
sl@0
|
63 |
|
sl@0
|
64 |
/**
|
sl@0
|
65 |
* Set the screen id and Play video descriptor.
|
sl@0
|
66 |
*
|
sl@0
|
67 |
* RTestVclntSetScrIdAndPlayAviDes
|
sl@0
|
68 |
* MM-MMF-VCLNTAVI-I-0202-CP
|
sl@0
|
69 |
*
|
sl@0
|
70 |
*/
|
sl@0
|
71 |
class RTestVclntSetScrIdAndPlayAviDes : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
72 |
{
|
sl@0
|
73 |
public:
|
sl@0
|
74 |
static RTestVclntSetScrIdAndPlayAviDes* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
75 |
virtual TVerdict DoTestStepL();
|
sl@0
|
76 |
virtual TVerdict DoTestStepPreambleL();
|
sl@0
|
77 |
virtual TVerdict DoTestStepPostambleL();
|
sl@0
|
78 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
79 |
protected:
|
sl@0
|
80 |
HBufC8* iVideo; // Buffer for holding video descriptor data
|
sl@0
|
81 |
private:
|
sl@0
|
82 |
RTestVclntSetScrIdAndPlayAviDes(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber) ;
|
sl@0
|
83 |
} ;
|
sl@0
|
84 |
|
sl@0
|
85 |
/**
|
sl@0
|
86 |
* Set the screen id and Play video from URL.
|
sl@0
|
87 |
*
|
sl@0
|
88 |
* RTestVclntSetScrIdAndPlayAviUrl
|
sl@0
|
89 |
* MM-MMF-VCLNTAVI-I-0203-CP
|
sl@0
|
90 |
*
|
sl@0
|
91 |
*/
|
sl@0
|
92 |
|
sl@0
|
93 |
class RTestVclntSetScrIdAndPlayAviUrl : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
94 |
{
|
sl@0
|
95 |
public:
|
sl@0
|
96 |
static RTestVclntSetScrIdAndPlayAviUrl* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
97 |
virtual TVerdict DoTestStepL();
|
sl@0
|
98 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
99 |
private:
|
sl@0
|
100 |
RTestVclntSetScrIdAndPlayAviUrl(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
101 |
};
|
sl@0
|
102 |
|
sl@0
|
103 |
/**
|
sl@0
|
104 |
* Set the screen id and play video file, Stop.Again set the screen id and play.
|
sl@0
|
105 |
* Set the screen id after stop and play again.
|
sl@0
|
106 |
*
|
sl@0
|
107 |
* RTestVclntSetScrIdAndPlayStopAviFile
|
sl@0
|
108 |
* MM-MMF-VCLNTAVI-I-0204-CP, MM-MMF-VCLNTAVI-I-0206-CP
|
sl@0
|
109 |
*
|
sl@0
|
110 |
*/
|
sl@0
|
111 |
class RTestVclntSetScrIdAndPlayStopAviFile : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
112 |
{
|
sl@0
|
113 |
public:
|
sl@0
|
114 |
static RTestVclntSetScrIdAndPlayStopAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
|
sl@0
|
115 |
virtual TVerdict DoTestStepL();
|
sl@0
|
116 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
117 |
|
sl@0
|
118 |
// timer handling
|
sl@0
|
119 |
void FinishedL();
|
sl@0
|
120 |
protected:
|
sl@0
|
121 |
CTestVclntAviPlayTimer* iPlayTimer;
|
sl@0
|
122 |
TBool iRestarted;
|
sl@0
|
123 |
TInt iScreenNumber2; // Stores screen number
|
sl@0
|
124 |
TInt iCountNumber;
|
sl@0
|
125 |
TFileName iFilename2;
|
sl@0
|
126 |
private:
|
sl@0
|
127 |
RTestVclntSetScrIdAndPlayStopAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
|
sl@0
|
128 |
};
|
sl@0
|
129 |
|
sl@0
|
130 |
/**
|
sl@0
|
131 |
* Set the screen id and play video file, Pause.Again set the screen id and play.
|
sl@0
|
132 |
* Set the screen ID after Pause and play again.
|
sl@0
|
133 |
*
|
sl@0
|
134 |
* RTestVclntSetScrIdAndPlayPauseAviFile
|
sl@0
|
135 |
* MM-MMF-VCLNTAVI-I-0205-CP, MM-MMF-VCLNTAVI-I-0207-CP
|
sl@0
|
136 |
*
|
sl@0
|
137 |
*/
|
sl@0
|
138 |
class RTestVclntSetScrIdAndPlayPauseAviFile : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
139 |
{
|
sl@0
|
140 |
public:
|
sl@0
|
141 |
static RTestVclntSetScrIdAndPlayPauseAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
|
sl@0
|
142 |
virtual TVerdict DoTestStepL();
|
sl@0
|
143 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
144 |
|
sl@0
|
145 |
// timer handling
|
sl@0
|
146 |
void FinishedL();
|
sl@0
|
147 |
protected:
|
sl@0
|
148 |
CTestVclntAviPlayTimer* iPlayTimer;
|
sl@0
|
149 |
TBool iRestarted;
|
sl@0
|
150 |
TInt iScreenNumber2; // Stores screen number
|
sl@0
|
151 |
TInt iCountNumber;
|
sl@0
|
152 |
TFileName iFilename2;
|
sl@0
|
153 |
private:
|
sl@0
|
154 |
RTestVclntSetScrIdAndPlayPauseAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
|
sl@0
|
155 |
};
|
sl@0
|
156 |
|
sl@0
|
157 |
/**
|
sl@0
|
158 |
* Set screen ID after play complete first time and before open the second time.
|
sl@0
|
159 |
*
|
sl@0
|
160 |
* RTestVclntSetScrIdAfterPlayAndPlayAviFile
|
sl@0
|
161 |
* MM-MMF-VCLNTAVI-I-0208-CP
|
sl@0
|
162 |
*
|
sl@0
|
163 |
*/
|
sl@0
|
164 |
class RTestVclntSetScrIdAfterPlayAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
165 |
{
|
sl@0
|
166 |
public:
|
sl@0
|
167 |
static RTestVclntSetScrIdAfterPlayAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
168 |
virtual TVerdict DoTestStepL();
|
sl@0
|
169 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
170 |
protected:
|
sl@0
|
171 |
TInt iCountNumber;
|
sl@0
|
172 |
private:
|
sl@0
|
173 |
RTestVclntSetScrIdAfterPlayAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
174 |
};
|
sl@0
|
175 |
|
sl@0
|
176 |
/**
|
sl@0
|
177 |
* Set screen ID after Open but before play
|
sl@0
|
178 |
*
|
sl@0
|
179 |
* RTestVclntSetScrIdAfterOpenAndPlayAviFile
|
sl@0
|
180 |
* MM-MMF-VCLNTAVI-I-0209-CP
|
sl@0
|
181 |
*
|
sl@0
|
182 |
*/
|
sl@0
|
183 |
class RTestVclntSetScrIdAfterOpenAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
184 |
{
|
sl@0
|
185 |
public:
|
sl@0
|
186 |
static RTestVclntSetScrIdAfterOpenAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
187 |
virtual TVerdict DoTestStepL();
|
sl@0
|
188 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
189 |
protected:
|
sl@0
|
190 |
TInt iCountNumber;
|
sl@0
|
191 |
private:
|
sl@0
|
192 |
RTestVclntSetScrIdAfterOpenAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
193 |
};
|
sl@0
|
194 |
|
sl@0
|
195 |
/**
|
sl@0
|
196 |
* Set screen ID during Play
|
sl@0
|
197 |
*
|
sl@0
|
198 |
* RTestVclntSetScrIdDuringPlayAndPlayAviFile
|
sl@0
|
199 |
* MM-MMF-VCLNTAVI-I-0211-CP
|
sl@0
|
200 |
*
|
sl@0
|
201 |
*/
|
sl@0
|
202 |
class RTestVclntSetScrIdDuringPlayAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
|
sl@0
|
203 |
{
|
sl@0
|
204 |
public:
|
sl@0
|
205 |
static RTestVclntSetScrIdDuringPlayAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
206 |
virtual TVerdict DoTestStepL();
|
sl@0
|
207 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
sl@0
|
208 |
protected:
|
sl@0
|
209 |
TInt iCountNumber;
|
sl@0
|
210 |
private:
|
sl@0
|
211 |
RTestVclntSetScrIdDuringPlayAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
|
sl@0
|
212 |
};
|
sl@0
|
213 |
|
sl@0
|
214 |
/**
|
sl@0
|
215 |
*
|
sl@0
|
216 |
* CTestVclntAviPlayTimer
|
sl@0
|
217 |
* - Timer for those test classes requiring timed stop
|
sl@0
|
218 |
*
|
sl@0
|
219 |
*/
|
sl@0
|
220 |
class CTestVclntAviPlayTimer : public CTimer
|
sl@0
|
221 |
{
|
sl@0
|
222 |
public:
|
sl@0
|
223 |
static CTestVclntAviPlayTimer* NewL(RTestVclntSetScrIdAndPlayBase* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
|
sl@0
|
224 |
void Start();
|
sl@0
|
225 |
protected:
|
sl@0
|
226 |
TInt RunError(TInt aError);
|
sl@0
|
227 |
void RunL();
|
sl@0
|
228 |
private:
|
sl@0
|
229 |
CTestVclntAviPlayTimer(RTestVclntSetScrIdAndPlayBase* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
|
sl@0
|
230 |
RTestVclntSetScrIdAndPlayBase* iParent;
|
sl@0
|
231 |
TTimeIntervalMicroSeconds32 iWaitTime;
|
sl@0
|
232 |
};
|
sl@0
|
233 |
|
sl@0
|
234 |
#endif //TESTVIDEOPLAYER_SECDISP_H
|