Update contrib.
1 // Copyright (c) 2006-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.
14 // Header file: Video Player Tests.
18 #ifndef TESTVIDEOPLAYER_SECDISP_H
19 #define TESTVIDEOPLAYER_SECDISP_H
21 #include "tsi_mmf_vclntavi_stepbase.h"
23 class CTestVclntAviPlayTimer;
27 * RTestVclntSetScrIdAndPlayBase
30 class RTestVclntSetScrIdAndPlayBase : public RTestVclntAviPlayerStep
33 RTestVclntSetScrIdAndPlayBase(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
35 virtual void FsmL(TVclntTestPlayEvents aEventCode) = 0;
37 virtual void FinishedL();
38 // Just to handle the behaviour of ARMV5
39 virtual void MvpuoOpenComplete(TInt aError);
41 TInt iScreenNumber; // Stores screen number
42 TInt iCurrentScreenNumber; // Stores currently active screen number
46 * Set the screen id and Play the video file.
47 * Set the invalid screen id and Play the video file.
49 * RTestVclntSetScrIdAndPlayAviFile
50 * MM-MMF-VCLNTAVI-I-0201-CP, MM-MMF-VCLNTAVI-I-0251-CP
53 class RTestVclntSetScrIdAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
56 static RTestVclntSetScrIdAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
57 virtual TVerdict DoTestStepL();
58 virtual void FsmL(TVclntTestPlayEvents aEventCode);
60 RTestVclntSetScrIdAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
65 * Set the screen id and Play video descriptor.
67 * RTestVclntSetScrIdAndPlayAviDes
68 * MM-MMF-VCLNTAVI-I-0202-CP
71 class RTestVclntSetScrIdAndPlayAviDes : public RTestVclntSetScrIdAndPlayBase
74 static RTestVclntSetScrIdAndPlayAviDes* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
75 virtual TVerdict DoTestStepL();
76 virtual TVerdict DoTestStepPreambleL();
77 virtual TVerdict DoTestStepPostambleL();
78 virtual void FsmL(TVclntTestPlayEvents aEventCode);
80 HBufC8* iVideo; // Buffer for holding video descriptor data
82 RTestVclntSetScrIdAndPlayAviDes(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber) ;
86 * Set the screen id and Play video from URL.
88 * RTestVclntSetScrIdAndPlayAviUrl
89 * MM-MMF-VCLNTAVI-I-0203-CP
93 class RTestVclntSetScrIdAndPlayAviUrl : public RTestVclntSetScrIdAndPlayBase
96 static RTestVclntSetScrIdAndPlayAviUrl* NewL(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
97 virtual TVerdict DoTestStepL();
98 virtual void FsmL(TVclntTestPlayEvents aEventCode);
100 RTestVclntSetScrIdAndPlayAviUrl(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
104 * Set the screen id and play video file, Stop.Again set the screen id and play.
105 * Set the screen id after stop and play again.
107 * RTestVclntSetScrIdAndPlayStopAviFile
108 * MM-MMF-VCLNTAVI-I-0204-CP, MM-MMF-VCLNTAVI-I-0206-CP
111 class RTestVclntSetScrIdAndPlayStopAviFile : public RTestVclntSetScrIdAndPlayBase
114 static RTestVclntSetScrIdAndPlayStopAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
115 virtual TVerdict DoTestStepL();
116 virtual void FsmL(TVclntTestPlayEvents aEventCode);
121 CTestVclntAviPlayTimer* iPlayTimer;
123 TInt iScreenNumber2; // Stores screen number
125 TFileName iFilename2;
127 RTestVclntSetScrIdAndPlayStopAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
131 * Set the screen id and play video file, Pause.Again set the screen id and play.
132 * Set the screen ID after Pause and play again.
134 * RTestVclntSetScrIdAndPlayPauseAviFile
135 * MM-MMF-VCLNTAVI-I-0205-CP, MM-MMF-VCLNTAVI-I-0207-CP
138 class RTestVclntSetScrIdAndPlayPauseAviFile : public RTestVclntSetScrIdAndPlayBase
141 static RTestVclntSetScrIdAndPlayPauseAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
142 virtual TVerdict DoTestStepL();
143 virtual void FsmL(TVclntTestPlayEvents aEventCode);
148 CTestVclntAviPlayTimer* iPlayTimer;
150 TInt iScreenNumber2; // Stores screen number
152 TFileName iFilename2;
154 RTestVclntSetScrIdAndPlayPauseAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber, TInt aScreenNumber2);
158 * Set screen ID after play complete first time and before open the second time.
160 * RTestVclntSetScrIdAfterPlayAndPlayAviFile
161 * MM-MMF-VCLNTAVI-I-0208-CP
164 class RTestVclntSetScrIdAfterPlayAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
167 static RTestVclntSetScrIdAfterPlayAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
168 virtual TVerdict DoTestStepL();
169 virtual void FsmL(TVclntTestPlayEvents aEventCode);
173 RTestVclntSetScrIdAfterPlayAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
177 * Set screen ID after Open but before play
179 * RTestVclntSetScrIdAfterOpenAndPlayAviFile
180 * MM-MMF-VCLNTAVI-I-0209-CP
183 class RTestVclntSetScrIdAfterOpenAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
186 static RTestVclntSetScrIdAfterOpenAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
187 virtual TVerdict DoTestStepL();
188 virtual void FsmL(TVclntTestPlayEvents aEventCode);
192 RTestVclntSetScrIdAfterOpenAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
196 * Set screen ID during Play
198 * RTestVclntSetScrIdDuringPlayAndPlayAviFile
199 * MM-MMF-VCLNTAVI-I-0211-CP
202 class RTestVclntSetScrIdDuringPlayAndPlayAviFile : public RTestVclntSetScrIdAndPlayBase
205 static RTestVclntSetScrIdDuringPlayAndPlayAviFile* NewL(const TDesC& aTestName,const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
206 virtual TVerdict DoTestStepL();
207 virtual void FsmL(TVclntTestPlayEvents aEventCode);
211 RTestVclntSetScrIdDuringPlayAndPlayAviFile(const TDesC& aTestName, const TDesC& aSectName,const TDesC& aKeyName, TInt aExpectedError, TInt aScreenNumber);
216 * CTestVclntAviPlayTimer
217 * - Timer for those test classes requiring timed stop
220 class CTestVclntAviPlayTimer : public CTimer
223 static CTestVclntAviPlayTimer* NewL(RTestVclntSetScrIdAndPlayBase* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
226 TInt RunError(TInt aError);
229 CTestVclntAviPlayTimer(RTestVclntSetScrIdAndPlayBase* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
230 RTestVclntSetScrIdAndPlayBase* iParent;
231 TTimeIntervalMicroSeconds32 iWaitTime;
234 #endif //TESTVIDEOPLAYER_SECDISP_H