4
|
1 |
// Copyright (c) 2007-2010 Nokia Corporation and/or its subsidiary(-ies).
|
0
|
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 |
// Header file: Video Player 2 Tests.
|
|
15 |
//
|
|
16 |
//
|
|
17 |
|
|
18 |
#ifndef TESTVIDEOPLAYER2_H
|
|
19 |
#define TESTVIDEOPLAYER2_H
|
|
20 |
|
|
21 |
#include "tsi_mmf_vclntavi_stepbase.h"
|
|
22 |
#include <surfaceeventhandler.h>
|
|
23 |
|
|
24 |
/**
|
|
25 |
* Load and play a video file using graphics surface
|
|
26 |
*
|
|
27 |
* RTestVclnt2PlayFile
|
|
28 |
*
|
|
29 |
*/
|
|
30 |
class RTestVclnt2PlayFile : public RTestVclnt2AviPlayerStep
|
|
31 |
{
|
|
32 |
public:
|
|
33 |
static RTestVclnt2PlayFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
34 |
|
|
35 |
protected:
|
|
36 |
virtual TVerdict DoTestStepPreambleL();
|
|
37 |
virtual TVerdict DoTestStepPostambleL();
|
|
38 |
|
|
39 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
|
40 |
|
|
41 |
virtual void HandleIdleL();
|
|
42 |
virtual void HandleOpenCompleteL();
|
|
43 |
virtual void HandlePrepareCompleteL();
|
|
44 |
virtual void HandlePlayCompleteL();
|
|
45 |
|
|
46 |
// called by HandlePrepareCompleteL to trigger the video playback
|
|
47 |
virtual void StartPlayback();
|
|
48 |
|
|
49 |
// constructor
|
|
50 |
RTestVclnt2PlayFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
51 |
};
|
|
52 |
#ifdef SYMBIAN_BUILD_GCE
|
|
53 |
/**
|
4
|
54 |
* Test external display feature using CMediaClientVideoDisplay.
|
|
55 |
*
|
|
56 |
* RTestMediaClientExternalDisplay
|
|
57 |
*
|
|
58 |
*/
|
|
59 |
class RTestMediaClientExternalDisplay : public RTestVclnt2AviPlayerStep
|
|
60 |
{
|
|
61 |
public:
|
|
62 |
static RTestMediaClientExternalDisplay* NewL(const TDesC& aTestName);
|
|
63 |
|
|
64 |
protected:
|
|
65 |
virtual TVerdict DoTestStepPreambleL();
|
|
66 |
virtual TVerdict DoTestStepPostambleL();
|
|
67 |
|
|
68 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
|
69 |
|
|
70 |
virtual void HandleIdleL();
|
|
71 |
virtual void HandleOpenCompleteL();
|
|
72 |
virtual void HandlePrepareCompleteL();
|
|
73 |
virtual void HandlePlayCompleteL();
|
|
74 |
|
|
75 |
// called by HandlePrepareCompleteL to trigger the video playback
|
|
76 |
virtual void StartPlayback();
|
|
77 |
|
|
78 |
// constructor
|
|
79 |
RTestMediaClientExternalDisplay(const TDesC& aTestName);
|
|
80 |
|
|
81 |
TVerdict SetInitialConnectionType();
|
|
82 |
TVerdict SetConnectionTypeNotification();
|
|
83 |
TVerdict SetExternalDisplayControl();
|
|
84 |
|
|
85 |
private:
|
|
86 |
TPtrC iInitialExternalDisplayTypeFilename;
|
|
87 |
TPtrC iNextExternalDisplayTypeFilename;
|
|
88 |
TBool iExternalDisplayControl;
|
|
89 |
};
|
|
90 |
|
|
91 |
/**
|
0
|
92 |
* Test CMediaClientVideoDisplay.This test makes sure that the new dll
|
|
93 |
* (mediaclientvideodisplay) is loaded and used.
|
|
94 |
*
|
|
95 |
* RTestMediaClientVideoDisplay
|
|
96 |
*
|
|
97 |
*/
|
|
98 |
class RTestMediaClientVideoDisplay : public RTestVclnt2AviPlayerStep
|
|
99 |
{
|
|
100 |
public:
|
|
101 |
static RTestMediaClientVideoDisplay* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
102 |
|
|
103 |
protected:
|
|
104 |
virtual TVerdict DoTestStepPreambleL();
|
|
105 |
virtual TVerdict DoTestStepPostambleL();
|
|
106 |
|
|
107 |
virtual void FsmL(TVclntTestPlayEvents aEventCode);
|
|
108 |
|
|
109 |
virtual void HandleIdleL();
|
|
110 |
virtual void HandleOpenCompleteL();
|
|
111 |
virtual void HandlePrepareCompleteL();
|
|
112 |
virtual void HandlePlayCompleteL();
|
|
113 |
|
|
114 |
// called by HandlePrepareCompleteL to trigger the video playback
|
|
115 |
virtual void StartPlayback();
|
|
116 |
|
|
117 |
// constructor
|
|
118 |
RTestMediaClientVideoDisplay(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
119 |
};
|
4
|
120 |
|
0
|
121 |
#endif
|
|
122 |
|
|
123 |
|
|
124 |
/**
|
|
125 |
* Load and play a video file using graphics surface with default window position, video
|
|
126 |
* extent and clip rect, then during playback, perform some actions specified within the
|
|
127 |
* implementation of the function DoThisActionDuringPlaybackL(). Before exiting
|
|
128 |
* DoThisActionDuringPlaybackL, SetActionPerformed() should be called to signal that
|
|
129 |
* all user action to be performed during video playback is completed.
|
|
130 |
*
|
|
131 |
* RTestVclnt2ActionDuringVideoPlayback
|
|
132 |
*
|
|
133 |
*/
|
|
134 |
class RTestVclnt2PerformActionDuringVideoPlayback : public RTestVclnt2PlayFile
|
|
135 |
{
|
|
136 |
protected:
|
|
137 |
RTestVclnt2PerformActionDuringVideoPlayback(const TDesC& aTestName,
|
|
138 |
const TDesC& aSectName,
|
|
139 |
const TDesC& aKeyName,
|
|
140 |
TInt aExpectedError);
|
|
141 |
|
|
142 |
// overriden in this class to trigger start video playback and then proceed to
|
|
143 |
// perform the action detailed within DoThisActionDuringPlaybackL
|
|
144 |
virtual void StartPlayback();
|
|
145 |
|
|
146 |
virtual void HandlePlayCompleteL();
|
|
147 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer) = 0;
|
|
148 |
|
|
149 |
private:
|
|
150 |
TInt iActionError;
|
|
151 |
};
|
|
152 |
|
|
153 |
|
|
154 |
/**
|
|
155 |
* Load and play a video file using graphics surface with specific window position, video
|
|
156 |
* extent and clip rect
|
|
157 |
*
|
|
158 |
* RTestVclnt2AddWin
|
|
159 |
*
|
|
160 |
*/
|
|
161 |
class RTestVclnt2AddWin : public RTestVclnt2PlayFile
|
|
162 |
{
|
|
163 |
public:
|
|
164 |
static RTestVclnt2AddWin* NewL(const TDesC& aTestName,
|
|
165 |
const TDesC& aSectName,
|
|
166 |
const TDesC& aKeyName,
|
|
167 |
TInt aExpectedError);
|
|
168 |
|
|
169 |
protected:
|
|
170 |
// constructor
|
|
171 |
RTestVclnt2AddWin(const TDesC& aTestName,
|
|
172 |
const TDesC& aSectName,
|
|
173 |
const TDesC& aKeyName,
|
|
174 |
TInt aExpectedError);
|
|
175 |
|
|
176 |
virtual void HandlePrepareCompleteL();
|
|
177 |
};
|
|
178 |
|
|
179 |
|
|
180 |
/**
|
|
181 |
* Load and play a video file using graphics surface, then change the display window during playback
|
|
182 |
*
|
|
183 |
* RTestVclnt2RemoveWin
|
|
184 |
*
|
|
185 |
*/
|
|
186 |
class RTestVclnt2RemoveWin : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
187 |
{
|
|
188 |
public:
|
|
189 |
static RTestVclnt2RemoveWin* NewL(const TDesC& aTestName,
|
|
190 |
const TDesC& aSectName,
|
|
191 |
const TDesC& aKeyName,
|
|
192 |
TInt aExpectedError,
|
|
193 |
TBool aAddBack);
|
|
194 |
|
|
195 |
protected:
|
|
196 |
virtual void HandlePrepareCompleteL();
|
|
197 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
198 |
|
|
199 |
private:
|
|
200 |
// constructor
|
|
201 |
RTestVclnt2RemoveWin(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TBool aAddBack);
|
|
202 |
|
|
203 |
private:
|
|
204 |
/** If true, Add the display back again after removing it. */
|
|
205 |
TBool iAddBack;
|
|
206 |
};
|
|
207 |
|
|
208 |
|
|
209 |
/**
|
|
210 |
* Load and play a video file using graphics surface, then change the window position during playback
|
|
211 |
*
|
|
212 |
* RTestVclnt2WinPos
|
|
213 |
*
|
|
214 |
*/
|
|
215 |
class RTestVclnt2WinPos : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
216 |
{
|
|
217 |
public:
|
|
218 |
static RTestVclnt2WinPos* NewL(const TDesC& aTestName,
|
|
219 |
const TDesC& aSectName,
|
|
220 |
const TDesC& aKeyName,
|
|
221 |
TInt aExpectedError);
|
|
222 |
|
|
223 |
protected:
|
|
224 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
225 |
|
|
226 |
private:
|
|
227 |
RTestVclnt2WinPos(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
228 |
};
|
|
229 |
|
|
230 |
|
|
231 |
/**
|
|
232 |
* Load and play a video file using graphics surface, then change the video extent during playback
|
|
233 |
*
|
|
234 |
* RTestVclnt2VideoExt
|
|
235 |
*
|
|
236 |
*/
|
|
237 |
class RTestVclnt2VideoExt : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
238 |
{
|
|
239 |
public:
|
|
240 |
static RTestVclnt2VideoExt* NewL(const TDesC& aTestName,
|
|
241 |
const TDesC& aSectName,
|
|
242 |
const TDesC& aKeyName,
|
|
243 |
TInt aExpectedError);
|
|
244 |
|
|
245 |
protected:
|
|
246 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
247 |
|
|
248 |
private:
|
|
249 |
// constructor
|
|
250 |
RTestVclnt2VideoExt(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
251 |
};
|
|
252 |
|
|
253 |
|
|
254 |
/**
|
|
255 |
* Load and play a video file using graphics surface, then change the clipping rect during playback
|
|
256 |
*
|
|
257 |
* RTestVclnt2ClipRect
|
|
258 |
*
|
|
259 |
*/
|
|
260 |
class RTestVclnt2ClipRect : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
261 |
{
|
|
262 |
public:
|
|
263 |
static RTestVclnt2ClipRect* NewL(const TDesC& aTestName,
|
|
264 |
const TDesC& aSectName,
|
|
265 |
const TDesC& aKeyName,
|
|
266 |
TInt aExpectedError);
|
|
267 |
|
|
268 |
protected:
|
|
269 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
270 |
|
|
271 |
private:
|
|
272 |
RTestVclnt2ClipRect(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
273 |
};
|
|
274 |
|
|
275 |
|
|
276 |
/**
|
|
277 |
* Load and play a video file using graphics surface, then change the scale factor during playback
|
|
278 |
*
|
|
279 |
* RTestVclnt2Scale
|
|
280 |
*
|
|
281 |
*/
|
|
282 |
class RTestVclnt2Scale : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
283 |
{
|
|
284 |
public:
|
|
285 |
static RTestVclnt2Scale* NewL(const TDesC& aTestName,
|
|
286 |
const TDesC& aSectName,
|
|
287 |
const TDesC& aKeyName,
|
|
288 |
TInt aExpectedError);
|
|
289 |
|
|
290 |
protected:
|
|
291 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
292 |
|
|
293 |
virtual void HandlePrepareCompleteL();
|
|
294 |
|
|
295 |
private:
|
|
296 |
// constructor
|
|
297 |
RTestVclnt2Scale(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
298 |
};
|
|
299 |
|
|
300 |
/**
|
|
301 |
* Load a video file, set the crop region and then play video using graphics surface with non-default window
|
|
302 |
* clipping rect or video extent
|
|
303 |
*
|
|
304 |
* RTestVclnt2Viewport
|
|
305 |
*
|
|
306 |
*/
|
|
307 |
class RTestVclnt2Viewport : public RTestVclnt2PlayFile
|
|
308 |
{
|
|
309 |
public:
|
|
310 |
static RTestVclnt2Viewport* NewL(const TDesC& aTestName,
|
|
311 |
const TDesC& aSectName,
|
|
312 |
const TDesC& aKeyName,
|
|
313 |
const TSize& aViewportSize,
|
|
314 |
TInt aExpectedError = KErrNone);
|
|
315 |
|
|
316 |
protected:
|
|
317 |
virtual void HandlePrepareCompleteL();
|
|
318 |
|
|
319 |
private:
|
|
320 |
void HandlePrepareCompleteL(const TRect& aCropRegion, const TRect& aVideoExtent, const TRect& aClipRect);
|
|
321 |
|
|
322 |
// constructor
|
|
323 |
RTestVclnt2Viewport(const TDesC& aTestName,
|
|
324 |
const TDesC& aSectName,
|
|
325 |
const TDesC& aKeyName,
|
|
326 |
const TSize& aViewportSize,
|
|
327 |
TInt aExpectedError);
|
|
328 |
|
|
329 |
protected:
|
|
330 |
TSize iViewportSize;
|
|
331 |
};
|
|
332 |
|
|
333 |
/**
|
|
334 |
* Load a video file, set an invalid crop region and then play video using graphics surface
|
|
335 |
*
|
|
336 |
* RTestVclnt2InvalidViewport
|
|
337 |
*
|
|
338 |
*/
|
|
339 |
class RTestVclnt2InvalidViewport : public RTestVclnt2PlayFile
|
|
340 |
{
|
|
341 |
public:
|
|
342 |
static RTestVclnt2InvalidViewport* NewL(const TDesC& aTestName,
|
|
343 |
const TDesC& aSectName,
|
|
344 |
const TDesC& aKeyName,
|
|
345 |
TInt aExpectedError = KErrNone);
|
|
346 |
|
|
347 |
protected:
|
|
348 |
virtual void HandlePrepareCompleteL();
|
|
349 |
|
|
350 |
private:
|
|
351 |
// constructor
|
|
352 |
RTestVclnt2InvalidViewport(const TDesC& aTestName,
|
|
353 |
const TDesC& aSectName,
|
|
354 |
const TDesC& aKeyName,
|
|
355 |
TInt aExpectedError);
|
|
356 |
};
|
|
357 |
|
|
358 |
/**
|
|
359 |
* Load and play a video file using graphics surface with rotation set
|
|
360 |
*
|
|
361 |
* RTestVclnt2Rotation
|
|
362 |
*
|
|
363 |
*/
|
|
364 |
class RTestVclnt2Rotation : public RTestVclnt2PlayFile
|
|
365 |
{
|
|
366 |
public:
|
|
367 |
static RTestVclnt2Rotation* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
368 |
|
|
369 |
protected:
|
|
370 |
virtual void HandlePrepareCompleteL();
|
|
371 |
|
|
372 |
private:
|
|
373 |
// constructor
|
|
374 |
RTestVclnt2Rotation(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError) ;
|
|
375 |
};
|
|
376 |
|
|
377 |
|
|
378 |
/**
|
|
379 |
* Load and play a video file using graphics surface with specific crop region, autoscale,
|
|
380 |
* video extent and clip rect settings.
|
|
381 |
*
|
|
382 |
* RTestVclnt2Settings
|
|
383 |
*
|
|
384 |
*/
|
|
385 |
class RTestVclnt2Settings : public RTestVclnt2PlayFile
|
|
386 |
{
|
|
387 |
public:
|
|
388 |
static RTestVclnt2Settings* NewL(const TDesC& aTestName,
|
|
389 |
const TDesC& aSectName,
|
|
390 |
const TDesC& aKeyName,
|
|
391 |
TInt aExpectedError = KErrNone);
|
|
392 |
|
|
393 |
protected:
|
|
394 |
virtual void HandlePrepareCompleteL();
|
|
395 |
|
|
396 |
private:
|
|
397 |
// constructor
|
|
398 |
RTestVclnt2Settings(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError) ;
|
|
399 |
};
|
|
400 |
|
|
401 |
/**
|
|
402 |
* Load and play a video file using graphics surface with specific crop region, content alignment,
|
|
403 |
* scale factor, video extent and clip rect settings. The video clip will be playbacked multiple times,
|
|
404 |
* each with a different combination of the settings.
|
|
405 |
*
|
|
406 |
* RTestVclnt2SettingsAndAlignments
|
|
407 |
*
|
|
408 |
*/
|
|
409 |
class RTestVclnt2SettingsAndAlignments : public RTestVclnt2PlayFile
|
|
410 |
{
|
|
411 |
public:
|
|
412 |
static RTestVclnt2SettingsAndAlignments* NewL(const TDesC& aTestName,
|
|
413 |
const TDesC& aSectName,
|
|
414 |
const TDesC& aKeyName,
|
|
415 |
TInt aExpectedError = KErrNone);
|
|
416 |
|
|
417 |
protected:
|
|
418 |
virtual void HandlePrepareCompleteL();
|
|
419 |
virtual void HandlePlayCompleteL();
|
|
420 |
virtual TVerdict DoTestStepPreambleL();
|
|
421 |
|
|
422 |
private:
|
|
423 |
// constructor
|
|
424 |
RTestVclnt2SettingsAndAlignments(const TDesC& aTestName,
|
|
425 |
const TDesC& aSectName,
|
|
426 |
const TDesC& aKeyName,
|
|
427 |
TInt aExpectedError);
|
|
428 |
|
|
429 |
// helpers
|
|
430 |
void AddDisplayWindowL(const TRect& aCropRegion);
|
|
431 |
void SetCropRegionL(TRect& aCropRegion);
|
|
432 |
void SetContentOffsetL();
|
|
433 |
void SetScaleFactorL();
|
|
434 |
void SetContentAlignmentL();
|
|
435 |
|
|
436 |
private:
|
|
437 |
TInt iCount;
|
|
438 |
};
|
|
439 |
|
|
440 |
|
|
441 |
/**
|
|
442 |
* Load and play a video file using graphics surface on a second display
|
|
443 |
*
|
|
444 |
* RTestVclnt2SecDisplay
|
|
445 |
*
|
|
446 |
*/
|
|
447 |
class RTestVclnt2SecDisplay : public RTestVclnt2PlayFile
|
|
448 |
{
|
|
449 |
public:
|
|
450 |
static RTestVclnt2SecDisplay* NewL(const TDesC& aTestName,
|
|
451 |
const TDesC& aSectName,
|
|
452 |
const TDesC& aKeyName,
|
|
453 |
TInt aExpectedError = KErrNone);
|
|
454 |
|
|
455 |
protected:
|
|
456 |
// test framework
|
|
457 |
virtual TVerdict DoTestStepPreambleL();
|
|
458 |
virtual TVerdict DoTestStepPostambleL();
|
|
459 |
|
|
460 |
virtual void HandlePrepareCompleteL();
|
|
461 |
|
|
462 |
private:
|
|
463 |
// constructor
|
|
464 |
RTestVclnt2SecDisplay(const TDesC& aTestName,
|
|
465 |
const TDesC& aSectName,
|
|
466 |
const TDesC& aKeyName,
|
|
467 |
TInt aExpectedError);
|
|
468 |
|
|
469 |
private:
|
|
470 |
CWsScreenDevice* iSecondScreen;
|
|
471 |
};
|
|
472 |
|
|
473 |
|
|
474 |
/**
|
|
475 |
* Load and play a video file using graphics surface, then pause the video and attempt
|
|
476 |
* to change the crop region and continue to playback the video.
|
|
477 |
*
|
|
478 |
* RTestVclnt2CropRectPause
|
|
479 |
*
|
|
480 |
*/
|
|
481 |
class RTestVclnt2CropRectPause : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
482 |
{
|
|
483 |
public:
|
|
484 |
static RTestVclnt2CropRectPause* NewL(const TDesC& aTestName,
|
|
485 |
const TDesC& aSectName,
|
|
486 |
const TDesC& aKeyName,
|
|
487 |
TInt aExpectedError = KErrNone);
|
|
488 |
|
|
489 |
protected:
|
|
490 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayfser);
|
|
491 |
|
|
492 |
private:
|
|
493 |
RTestVclnt2CropRectPause(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
|
|
494 |
};
|
|
495 |
|
|
496 |
|
|
497 |
/**
|
|
498 |
* Load and play a video file using graphics surface with overlay graphics on top of video picture
|
|
499 |
*
|
|
500 |
* RTestVclnt2Overlay
|
|
501 |
*
|
|
502 |
*/
|
|
503 |
class RTestVclnt2Overlay : public RTestVclnt2PlayFile
|
|
504 |
{
|
|
505 |
public:
|
|
506 |
static RTestVclnt2Overlay* NewL(const TDesC& aTestName,
|
|
507 |
const TDesC& aSectName,
|
|
508 |
const TDesC& aKeyName,
|
|
509 |
TInt aExpectedError);
|
|
510 |
|
|
511 |
protected:
|
|
512 |
// constructor
|
|
513 |
RTestVclnt2Overlay(const TDesC& aTestName,
|
|
514 |
const TDesC& aSectName,
|
|
515 |
const TDesC& aKeyName,
|
|
516 |
TInt aExpectedError);
|
|
517 |
|
|
518 |
virtual TVerdict DoTestStepPreambleL();
|
|
519 |
virtual TVerdict DoTestStepPostambleL();
|
|
520 |
|
|
521 |
virtual void HandlePrepareCompleteL();
|
|
522 |
|
|
523 |
private:
|
|
524 |
CFont* iFont;
|
|
525 |
};
|
|
526 |
|
|
527 |
/**
|
|
528 |
* Load and play a video file using graphics surface and attempting to add the same display window twice
|
|
529 |
* using default values
|
|
530 |
*
|
|
531 |
* RTestVclnt2AddWin2
|
|
532 |
*
|
|
533 |
*/
|
|
534 |
class RTestVclnt2AddWin2 : public RTestVclnt2PlayFile
|
|
535 |
{
|
|
536 |
public:
|
|
537 |
static RTestVclnt2AddWin2* NewL(const TDesC& aTestName,
|
|
538 |
const TDesC& aSectName,
|
|
539 |
const TDesC& aKeyName,
|
|
540 |
TInt aExpectedError);
|
|
541 |
|
|
542 |
protected:
|
|
543 |
// constructor
|
|
544 |
RTestVclnt2AddWin2(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
|
|
545 |
|
|
546 |
virtual void HandlePrepareCompleteL();
|
|
547 |
};
|
|
548 |
|
|
549 |
/**
|
|
550 |
* Load and play a video file using graphics surface and attempting to add the display window with specific
|
|
551 |
* settings then add the same display window using default values again
|
|
552 |
*
|
|
553 |
* RTestVclnt2AddWin2WithSettings
|
|
554 |
*
|
|
555 |
*/
|
|
556 |
class RTestVclnt2AddWin2WithSettings : public RTestVclnt2PlayFile
|
|
557 |
{
|
|
558 |
public:
|
|
559 |
static RTestVclnt2AddWin2WithSettings* NewL(const TDesC& aTestName,
|
|
560 |
const TDesC& aSectName,
|
|
561 |
const TDesC& aKeyName,
|
|
562 |
TInt aExpectedError);
|
|
563 |
|
|
564 |
protected:
|
|
565 |
// constructor
|
|
566 |
RTestVclnt2AddWin2WithSettings(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
|
|
567 |
|
|
568 |
// state machine
|
|
569 |
virtual void HandlePrepareCompleteL();
|
|
570 |
};
|
|
571 |
|
|
572 |
/**
|
|
573 |
* Load and play a video file using graphics surface and set content offset and/or content alignment
|
|
574 |
*
|
|
575 |
* RTestVclnt2ContOffset
|
|
576 |
*
|
|
577 |
*/
|
|
578 |
class RTestVclnt2ContOffset : public RTestVclnt2PlayFile
|
|
579 |
{
|
|
580 |
public:
|
|
581 |
static RTestVclnt2ContOffset* NewL(const TDesC& aTestName,
|
|
582 |
const TDesC& aSectName,
|
|
583 |
const TDesC& aKeyName,
|
|
584 |
TInt aExpectedError);
|
|
585 |
|
|
586 |
protected:
|
|
587 |
// state machine
|
|
588 |
virtual void HandlePrepareCompleteL();
|
|
589 |
|
|
590 |
private:
|
|
591 |
// constructor
|
|
592 |
RTestVclnt2ContOffset(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
|
|
593 |
};
|
|
594 |
|
|
595 |
/**
|
|
596 |
* Load and play a video file using graphics surface and set content offset during playback
|
|
597 |
*
|
|
598 |
* RTestVclnt2ContOffsetAtPlay
|
|
599 |
*
|
|
600 |
*/
|
|
601 |
class RTestVclnt2ContOffsetAtPlay : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
602 |
{
|
|
603 |
public:
|
|
604 |
static RTestVclnt2ContOffsetAtPlay* NewL(const TDesC& aTestName,
|
|
605 |
const TDesC& aSectName,
|
|
606 |
const TDesC& aKeyName,
|
|
607 |
TInt aExpectedError);
|
|
608 |
|
|
609 |
protected:
|
|
610 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
611 |
|
|
612 |
private:
|
|
613 |
// constructor
|
|
614 |
RTestVclnt2ContOffsetAtPlay(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
|
|
615 |
};
|
|
616 |
|
|
617 |
/**
|
|
618 |
* Load and play a video file using graphics surface and set content aligment during playback
|
|
619 |
*
|
|
620 |
* RTestVclnt2Align
|
|
621 |
*
|
|
622 |
*/
|
|
623 |
class RTestVclnt2Align : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
624 |
{
|
|
625 |
public:
|
|
626 |
static RTestVclnt2Align* NewL(const TDesC& aTestName,
|
|
627 |
const TDesC& aSectName,
|
|
628 |
const TDesC& aKeyName,
|
|
629 |
TInt aExpectedError);
|
|
630 |
|
|
631 |
protected:
|
|
632 |
virtual void HandlePrepareCompleteL();
|
|
633 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
634 |
|
|
635 |
private:
|
|
636 |
// constructor
|
|
637 |
RTestVclnt2Align(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
|
|
638 |
};
|
|
639 |
|
|
640 |
/**
|
|
641 |
* Load and play a video file using graphics surface and set auto scale
|
|
642 |
*
|
|
643 |
* RTestVclnt2AutoScale
|
|
644 |
*
|
|
645 |
*/
|
|
646 |
class RTestVclnt2AutoScale : public RTestVclnt2PerformActionDuringVideoPlayback
|
|
647 |
{
|
|
648 |
public:
|
|
649 |
static RTestVclnt2AutoScale* NewL(const TDesC& aTestName,
|
|
650 |
const TDesC& aSectName,
|
|
651 |
const TDesC& aKeyName,
|
|
652 |
TInt aExpectedError);
|
|
653 |
|
|
654 |
protected:
|
|
655 |
virtual void HandlePrepareCompleteL();
|
|
656 |
virtual void DoThisActionDuringPlaybackL(CVideoPlayerUtility2& aPlayer);
|
|
657 |
|
|
658 |
private:
|
|
659 |
RTestVclnt2AutoScale(const TDesC& aTestName, const TDesC& aSectName, const TDesC& aKeyName, TInt aExpectedError);
|
|
660 |
};
|
|
661 |
|
|
662 |
/**
|
|
663 |
* Load and play a video file using graphics surface
|
|
664 |
*
|
|
665 |
* RTestVclnt2PlayFile
|
|
666 |
*
|
|
667 |
*/
|
|
668 |
class RTestVclnt2OldController : public RTestVclnt2PlayFile
|
|
669 |
{
|
|
670 |
public:
|
|
671 |
static RTestVclnt2OldController* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
672 |
|
|
673 |
protected:
|
|
674 |
virtual void HandleIdleL();
|
|
675 |
virtual void HandlePrepareCompleteL();
|
|
676 |
|
|
677 |
private:
|
|
678 |
RTestVclnt2OldController(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
679 |
};
|
|
680 |
|
|
681 |
/**
|
|
682 |
* Without opening a file, try doing surface related functions
|
|
683 |
*
|
|
684 |
* RTestVclnt2NoFile
|
|
685 |
*
|
|
686 |
*/
|
|
687 |
class RTestVclnt2NoFile : public RTestVclnt2PlayFile
|
|
688 |
{
|
|
689 |
public:
|
|
690 |
static RTestVclnt2NoFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
691 |
|
|
692 |
protected:
|
|
693 |
virtual void HandleIdleL();
|
|
694 |
|
|
695 |
private:
|
|
696 |
RTestVclnt2NoFile(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
697 |
};
|
|
698 |
|
|
699 |
/**
|
|
700 |
* Attempt to play video without display
|
|
701 |
*
|
|
702 |
* RTestVclnt2PlayAfterRemoveWin
|
|
703 |
*
|
|
704 |
*/
|
|
705 |
class RTestVclnt2PlayAfterRemoveWin : public RTestVclnt2PlayFile
|
|
706 |
{
|
|
707 |
public:
|
|
708 |
static RTestVclnt2PlayAfterRemoveWin* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
709 |
|
|
710 |
protected:
|
|
711 |
virtual void HandlePrepareCompleteL();
|
|
712 |
virtual void HandlePlayCompleteL();
|
|
713 |
|
|
714 |
private:
|
|
715 |
RTestVclnt2PlayAfterRemoveWin(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
716 |
|
|
717 |
private:
|
|
718 |
TInt iPlayAttempt;
|
|
719 |
};
|
|
720 |
|
|
721 |
/**
|
|
722 |
* Use surface utility API without GCE support
|
|
723 |
*
|
|
724 |
* RTestVclnt2NoGce
|
|
725 |
*
|
|
726 |
*/
|
|
727 |
class RTestVclnt2NoGce : public RTestVclnt2PlayFile
|
|
728 |
{
|
|
729 |
public:
|
|
730 |
static RTestVclnt2NoGce* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
731 |
|
|
732 |
protected:
|
|
733 |
virtual void HandleIdleL();
|
|
734 |
virtual void HandleOpenCompleteL();
|
|
735 |
|
|
736 |
private:
|
|
737 |
RTestVclnt2NoGce(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
738 |
};
|
|
739 |
|
|
740 |
/**
|
|
741 |
* Alloc tests (using Client heap) for Video Player utility 2.
|
|
742 |
*
|
|
743 |
* RTestVclnt2Alloc
|
|
744 |
*
|
|
745 |
*/
|
|
746 |
class RTestVclnt2Alloc : public RTestVclnt2PlayFile
|
|
747 |
{
|
|
748 |
public:
|
|
749 |
static RTestVclnt2Alloc* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
750 |
virtual TVerdict DoTestStepL();
|
|
751 |
|
|
752 |
protected:
|
|
753 |
virtual TVerdict DoTestStepPreambleL();
|
|
754 |
virtual TVerdict PerformTestL();
|
|
755 |
|
|
756 |
private:
|
|
757 |
RTestVclnt2Alloc(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
758 |
};
|
|
759 |
|
|
760 |
class RTestVclnt2InvalidScaleFactor : public RTestVclnt2PlayFile
|
|
761 |
{
|
|
762 |
public:
|
|
763 |
static RTestVclnt2InvalidScaleFactor* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
764 |
|
|
765 |
protected:
|
|
766 |
// From RTestVclnt2PlayFile
|
|
767 |
void HandlePrepareCompleteL();
|
|
768 |
|
|
769 |
private:
|
|
770 |
RTestVclnt2InvalidScaleFactor(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError);
|
|
771 |
};
|
|
772 |
|
|
773 |
#endif // TESTVIDEOPLAYER2_H
|