1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmlibs/mmfw/tsrc/mmfintegrationtest/vclntavi/inc/testvideoplayer_apr.h Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,531 @@
1.4 +// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +// Header file: Declaration for Various Classes used for Audio Resource Notification tests for Video Client.
1.18 +//
1.19 +//
1.20 +
1.21 +/**
1.22 + @file Testvideoplayer_apr.h
1.23 +*/
1.24 +
1.25 +#ifndef TESTVIDEOPLAYER_APR_H
1.26 +#define TESTVIDEOPLAYER_APR_H
1.27 +
1.28 +
1.29 +#include "testvideoplayer.h"
1.30 +#include "mdaaudiosampleplayer.h"
1.31 +#include "u32hal.h"
1.32 +
1.33 +
1.34 +const TInt KSizeBuf = 256;
1.35 +const TInt KMaxEvents = 2;
1.36 +
1.37 +//------------------------------------------------------------------------------
1.38 +//********************PREQ 797 - Audio Resource Notification********************
1.39 +//------------------------------------------------------------------------------
1.40 +
1.41 +/**
1.42 + * stopActiveScheduler
1.43 + */
1.44 +static TInt stopActiveScheduler(TAny*)
1.45 + {
1.46 + CActiveScheduler::Stop();
1.47 + return KErrNone;
1.48 + }
1.49 +
1.50 +//
1.51 +//Declarations//
1.52 +//
1.53 +
1.54 +//
1.55 +//Custom Error Codes & CONST Declarations.
1.56 +//
1.57 +const TInt KErrUser = -1000;
1.58 +const TInt KErrBadResult = (KErrUser - 1);
1.59 +const TInt KMicroSecsInOneSec = 1000000;
1.60 +const TUint KSampleRate8000Hz = 8000;
1.61 +
1.62 +//
1.63 +//Forward class declarations
1.64 +//
1.65 +class CCallbackTimer;
1.66 +class CTestAVPlayerAPRCallbackSupport;
1.67 +class CVclntAviAprWillResumeTimer;
1.68 +//------------------------------------------------------------------------------
1.69 +//******************CR 0805 - Auto Pause Resume for video client*******************
1.70 +//------------------------------------------------------------------------------
1.71 +
1.72 +//
1.73 +//ENUM DECLARATIONS//
1.74 +//
1.75 +
1.76 +// Enum to describe the current state.
1.77 +enum TAVPlayerAPRState
1.78 + {
1.79 + EStateBegin = 0,
1.80 + EStateOpenAudioPlayer1,
1.81 + EStateOpenAudioPlayer2,
1.82 + EStateAudioPlaying1,
1.83 + EStateAudioPlaying2,
1.84 + EStateEndAudioPlay1,
1.85 + EStateEndAudioPlay1A,
1.86 + EStateEndAudioPlay2,
1.87 + EStateEndAudioPlay2A,
1.88 + EStateErrInUseAudioPlayer1,
1.89 + EStateErrInUseAudioPlayer2,
1.90 + EStateNotifiedAudioPlayer1,
1.91 + EStateNotifiedAudioPlayer2,
1.92 + EStateErrInUseAudioPlayer1A,
1.93 + EStateNotifiedAudioPlayer1A,
1.94 + EStateAudioPlaying2A,
1.95 + EStateAudioEndPlay2A,
1.96 + EStatePrepareVideoPlayer,
1.97 + EStateOpenVideoPlayer,
1.98 + EStateVideoPlaying,
1.99 + EStateEndVideoPlay,
1.100 + EStateErrInUseVideoPlayer,
1.101 + EStateNotifiedVideoPlayer,
1.102 + EStateErrInUseVideoPlayer1A,
1.103 + EStateNotifiedVideoPlayer1A,
1.104 + EStateVideoPlaying2A,
1.105 + EStateEndVideoPlay2A,
1.106 + EStateNoOtherPlayerNotified
1.107 + };
1.108 +
1.109 +// Enum to decide which Event has occured.
1.110 +enum TAVPlayerAPREvents
1.111 + {
1.112 + EIdlePlayer = 0,
1.113 + EMvpuoOpenComplete,
1.114 + EMvpuoPrepareComplete,
1.115 + EMvpuoFrameReady,
1.116 + EMvpuoPlayComplete,
1.117 + EMvpuoEvent,
1.118 + EMapcInitComplete1,
1.119 + EMapcInitComplete2,
1.120 + EMapcPlayComplete1,
1.121 + EMapcPlayComplete2,
1.122 + EMarncResourceAvailable1,
1.123 + EMarncResourceAvailable2,
1.124 + EMarncResourceAvailable3
1.125 + };
1.126 +
1.127 +//
1.128 +//BASE CLASS DECLARATIONS//
1.129 +//
1.130 +
1.131 +/**
1.132 + * timer support
1.133 + *
1.134 + * @class CCallBackTimer
1.135 + *
1.136 + */
1.137 +
1.138 +class CCallBackTimer : public CTimer
1.139 + {
1.140 +public:
1.141 + static CCallBackTimer* NewL(TCallBack aCallBack, TPriority aPriority = EPriorityStandard);
1.142 +private:
1.143 + virtual void RunL();
1.144 +private:
1.145 + CCallBackTimer(TCallBack aCallBack, TPriority aPriority);
1.146 +private:
1.147 + TCallBack iCallBack;
1.148 + };
1.149 +
1.150 +
1.151 +/**
1.152 + * Observer class to identify and pass events to the test step class
1.153 + *
1.154 + * @class MTestAVPlayerAPRCallback
1.155 + *
1.156 + */
1.157 +class MTestAVPlayerAPRCallback
1.158 + {
1.159 +public :
1.160 + virtual void MvpuoOpenCompleteTest(TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport) = 0;
1.161 + virtual void MvpuoPrepareCompleteTest(TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport)= 0;
1.162 + virtual void MvpuoFrameReadyTest(CFbsBitmap &aFrame, TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport)=0;
1.163 + virtual void MvpuoPlayCompleteTest(TInt aError,CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport)=0;
1.164 + virtual void MvpuoEventTest(const TMMFEvent &aEvent, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport)=0;
1.165 + virtual void MapcInitCompleteTest(TInt aError, const TTimeIntervalMicroSeconds &aDuration, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport)=0;
1.166 + virtual void MapcPlayCompleteTest(TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport)=0;
1.167 + virtual void MarncResourceAvailableTest(TUid aNotificationEventId, const TDesC8& aNotificationData, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport) = 0;
1.168 + };
1.169 +
1.170 +/**
1.171 + * Support class to pass the events to the test step class using the MTestAVPlayerAPRCallback
1.172 + *
1.173 + * @class CTestAVPlayerAPRCallbackSupport
1.174 + *
1.175 + */
1.176 +class CTestAVPlayerAPRCallbackSupport : public CBase, public MVideoPlayerUtilityObserver, public MMMFAudioResourceNotificationCallback, public MMdaAudioPlayerCallback
1.177 + {
1.178 +public :
1.179 + static CTestAVPlayerAPRCallbackSupport* NewL(MTestAVPlayerAPRCallback& aCallback);
1.180 + virtual void MvpuoOpenComplete(TInt aError);
1.181 + virtual void MvpuoPrepareComplete(TInt aError);
1.182 + virtual void MvpuoFrameReady(CFbsBitmap &aFrame, TInt aError);
1.183 + virtual void MvpuoPlayComplete(TInt aError);
1.184 + virtual void MvpuoEvent(const TMMFEvent &aEvent);
1.185 + virtual void MapcInitComplete(TInt aError, const TTimeIntervalMicroSeconds &aDuration);
1.186 + virtual void MapcPlayComplete(TInt aError);
1.187 + virtual void MarncResourceAvailable(TUid aNotificationEventId, const TDesC8& aNotificationData);
1.188 +
1.189 +protected:
1.190 + CTestAVPlayerAPRCallbackSupport(MTestAVPlayerAPRCallback& aCallback);
1.191 + void ConstructL();
1.192 +private :
1.193 + MTestAVPlayerAPRCallback& iCallback;
1.194 + };
1.195 +
1.196 +
1.197 +/**
1.198 + * Base Class for APR functionality for most APR video player tests
1.199 + *
1.200 + * @class RTestMmfVclntVideoPlayerAPR
1.201 + *
1.202 + */
1.203 +class RTestMmfVclntVideoPlayerAPR : public RTestMmfVclntAviStep, public MTestAVPlayerAPRCallback
1.204 + {
1.205 +public :
1.206 + // Constructor
1.207 + RTestMmfVclntVideoPlayerAPR(const TDesC& aTestName, const TDesC& aSectName);
1.208 +
1.209 + // Virtual methods for Preamble and Postamble.
1.210 + virtual TVerdict DoTestStepCreateL();
1.211 + virtual TVerdict DoTestStepDeleteL();
1.212 + // Virtual function to access test specific methods
1.213 + virtual TVerdict DoTestStepL();
1.214 + // Pure function to access test specific methods
1.215 + virtual TVerdict DoTestL()=0;
1.216 + // from MTestAVPlayerAPRCallback
1.217 + virtual void MvpuoOpenCompleteTest(TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.218 + virtual void MvpuoPrepareCompleteTest(TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.219 + virtual void MvpuoFrameReadyTest(CFbsBitmap &aFrame, TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.220 + virtual void MvpuoPlayCompleteTest(TInt aError,CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.221 + virtual void MvpuoEventTest(const TMMFEvent &aEvent, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.222 + virtual void MarncResourceAvailableTest(TUid aNotificationEventId, const TDesC8& aNotificationData, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.223 + virtual void MapcInitCompleteTest(TInt aError, const TTimeIntervalMicroSeconds &aDuration, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.224 + virtual void MapcPlayCompleteTest(TInt aError, CTestAVPlayerAPRCallbackSupport& aMdaVideoPlayerCallbackSupport);
1.225 +
1.226 + // Centralised State Handler
1.227 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError)=0;
1.228 + virtual TBool FsmCheck(TAVPlayerAPREvents aEventCode, TInt aError);
1.229 + virtual TInt SetCacheSize();
1.230 + virtual TInt CheckCacheError(TInt aError);
1.231 +
1.232 +protected :
1.233 + // StateInit Function
1.234 + void StateInit();
1.235 + // StateChange Function
1.236 + void StateChange(TAVPlayerAPRState aState, TAVPlayerAPREvents aExpectedEvent, TInt aExpectedError=KErrNone, TInt aEventIndex = 1);
1.237 + // check if we can go to the next state
1.238 + TInt AnalyseInput(TAVPlayerAPREvents aEventCode, TInt aError);
1.239 +protected :
1.240 +
1.241 + // CMdaAudioPlayerUtility instances
1.242 + CMdaAudioPlayerUtility* iTestAudioPlayer1;
1.243 + CMdaAudioPlayerUtility* iTestAudioPlayer2;
1.244 + // CVideoPlayerUtility instances
1.245 + CVideoPlayerUtility* iTestVideoPlayer;
1.246 + // CTestAVPlayerAPRCallbackSupport instances
1.247 + CTestAVPlayerAPRCallbackSupport* iVideoPlayerCallbackSupport1;
1.248 + CTestAVPlayerAPRCallbackSupport* iAudioPlayerCallbackSupport1;
1.249 + CTestAVPlayerAPRCallbackSupport* iAudioPlayerCallbackSupport2;
1.250 +
1.251 +
1.252 + // Other class variable declarations
1.253 + TBuf<KSizeBuf> iFilename1;
1.254 + TBuf<KSizeBuf> iFilename2;
1.255 + TBuf<KSizeBuf> iFilename3;
1.256 + TTimeIntervalMicroSeconds iPosition;
1.257 + TTimeIntervalMicroSeconds iDuration;
1.258 + TInt iError;
1.259 + TAVPlayerAPRState iState;
1.260 + TRequestStatus iRequestStatus;
1.261 + CCallBackTimer* iCallBackTimer;
1.262 + TAVPlayerAPREvents iExpectedEvent[KMaxEvents];
1.263 + TInt iExpectedError[KMaxEvents];
1.264 + TBool iCanStateChange;
1.265 + TInt iExpEventCount;
1.266 + TInt iActEventCount;
1.267 + };
1.268 +
1.269 +//
1.270 +//POSITIVE TESTS//
1.271 +//
1.272 +
1.273 +/**
1.274 + * One-time registration for same event by a player.
1.275 + *
1.276 + * RTestVclntAprRegOnce4SameEvent
1.277 + * MM-MMF-VCLNTAVIAPR-I-0001-HP
1.278 + *
1.279 + */
1.280 +class RTestVclntAprRegOnce4SameEvent : public RTestMmfVclntVideoPlayerAPR
1.281 + {
1.282 +public:
1.283 + static RTestVclntAprRegOnce4SameEvent* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.284 + virtual TVerdict DoTestL();
1.285 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.286 +
1.287 +protected:
1.288 + RTestVclntAprRegOnce4SameEvent( const TDesC& aTestName, const TDesC& aSectName );
1.289 + TVerdict PerformTestL();
1.290 + };
1.291 +
1.292 +/**
1.293 + * Register before opening Video player and receive notification of a resource available event
1.294 + *
1.295 + * RTestVclntAprRegB4Open
1.296 + * MM-MMF-VCLNTAVIAPR-I-0002-HP
1.297 + *
1.298 + */
1.299 +class RTestVclntAprRegB4Open : public RTestMmfVclntVideoPlayerAPR
1.300 + {
1.301 +public:
1.302 + static RTestVclntAprRegB4Open* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.303 + virtual TVerdict DoTestL();
1.304 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.305 +
1.306 +protected:
1.307 + RTestVclntAprRegB4Open( const TDesC& aTestName, const TDesC& aSectName );
1.308 + TVerdict PerformTestL();
1.309 + };
1.310 +
1.311 +/**
1.312 + * Register (after Open and before Play of video) , receive notification of a resource available event.
1.313 + *
1.314 + * RTestVclntAprRegAftrOpenAndB4Play
1.315 + * MM-MMF-VCLNTAVIAPR-I-0003-HP
1.316 + *
1.317 + */
1.318 +class RTestVclntAprRegAftrOpenAndB4Play : public RTestMmfVclntVideoPlayerAPR
1.319 + {
1.320 +public:
1.321 + static RTestVclntAprRegAftrOpenAndB4Play* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.322 + virtual TVerdict DoTestL();
1.323 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.324 + TTimeIntervalMicroSeconds iVidPosition;
1.325 +
1.326 +protected:
1.327 + RTestVclntAprRegAftrOpenAndB4Play( const TDesC& aTestName, const TDesC& aSectName );
1.328 + TVerdict PerformTestL();
1.329 + };
1.330 +
1.331 +/**
1.332 + * Register after the highest priority client (Audio) completes playing and receive the notification of a resource availalble event.
1.333 + *
1.334 + * RTestVclntAprRegAftrHpClntCompltPlay
1.335 + * MM-MMF-VCLNTAVIAPR-I-0004-HP
1.336 + *
1.337 + */
1.338 +class RTestVclntAprRegAftrHpClntCompltPlay : public RTestMmfVclntVideoPlayerAPR
1.339 + {
1.340 +public:
1.341 + static RTestVclntAprRegAftrHpClntCompltPlay* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.342 + virtual TVerdict DoTestL();
1.343 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.344 +
1.345 +protected:
1.346 + RTestVclntAprRegAftrHpClntCompltPlay( const TDesC& aTestName, const TDesC& aSectName );
1.347 + TVerdict PerformTestL();
1.348 + };
1.349 +
1.350 +/**
1.351 + * Receive notification by same priority players in the order of registration
1.352 + *
1.353 + * RTestVclntAprRegSamePriorityPlayers
1.354 + * MM-MMF-VCLNTAVIAPR-I-0005-HP
1.355 + *
1.356 + */
1.357 +class RTestVclntAprRegSamePriorityPlayers : public RTestMmfVclntVideoPlayerAPR
1.358 + {
1.359 +public:
1.360 + static RTestVclntAprRegSamePriorityPlayers* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.361 + virtual TVerdict DoTestL();
1.362 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.363 +
1.364 +protected:
1.365 + RTestVclntAprRegSamePriorityPlayers( const TDesC& aTestName, const TDesC& aSectName );
1.366 + TVerdict PerformTestL();
1.367 + };
1.368 +
1.369 +
1.370 +/**
1.371 + * Register (at the time of Play) and Cancellation of the notification request
1.372 + *
1.373 + * RTestVclntAprRegAtPlayAndCancelNfn
1.374 + * MM-MMF-VCLNTAVIAPR-I-0006-HP
1.375 + *
1.376 + */
1.377 +class RTestVclntAprRegAtPlayAndCancelNfn : public RTestMmfVclntVideoPlayerAPR
1.378 + {
1.379 +public:
1.380 + static RTestVclntAprRegAtPlayAndCancelNfn* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.381 + virtual TVerdict DoTestL();
1.382 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.383 +
1.384 +protected:
1.385 + RTestVclntAprRegAtPlayAndCancelNfn( const TDesC& aTestName, const TDesC& aSectName );
1.386 + TVerdict PerformTestL();
1.387 + };
1.388 +
1.389 +/**
1.390 + * Test for WillResumePlay() using 3 clients.
1.391 + *
1.392 + * RTestVclntAprTestWillResumePlay
1.393 + * MM-MMF-VCLNTAVIAPR-I-0007-HP
1.394 + *
1.395 + */
1.396 +class RTestVclntAprTestWillResumePlay : public RTestMmfVclntVideoPlayerAPR
1.397 + {
1.398 +public:
1.399 + static RTestVclntAprTestWillResumePlay* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.400 + virtual TVerdict DoTestL();
1.401 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.402 + virtual void FinishedL(); // for CVclntAviAprWillResumeTimer
1.403 +
1.404 +protected:
1.405 + RTestVclntAprTestWillResumePlay( const TDesC& aTestName, const TDesC& aSectName );
1.406 + TVerdict PerformTestL();
1.407 + CVclntAviAprWillResumeTimer* iWillResumePlayTimer;
1.408 + };
1.409 +
1.410 +/**
1.411 + *
1.412 + * CVclntAviAprWillResumeTimer
1.413 + * MM-MMF-VCLNTAVIAPR-I-0007-HP
1.414 + * - Timer for checking if no notification occurs in 5 seconds
1.415 + * after calling WillResumePlay()
1.416 + *
1.417 + */
1.418 +class CVclntAviAprWillResumeTimer : public CTimer
1.419 + {
1.420 +public:
1.421 + static CVclntAviAprWillResumeTimer* NewL(RTestVclntAprTestWillResumePlay* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
1.422 + void Start();
1.423 +protected:
1.424 + TInt RunError(TInt aError);
1.425 + void RunL();
1.426 +private:
1.427 + CVclntAviAprWillResumeTimer(RTestVclntAprTestWillResumePlay* aParent, TTimeIntervalMicroSeconds32 aWaitTime);
1.428 + RTestVclntAprTestWillResumePlay* iParent;
1.429 + TTimeIntervalMicroSeconds32 iWaitTime;
1.430 + };
1.431 +
1.432 +/**
1.433 + * APR Alloc tests (using shared heap) for Video Player utility.
1.434 + *
1.435 + * RTestVclntAprAllocUsingSharedHeap
1.436 + * MM-MMF-VCLNTAVIAPR-I-0008-HP
1.437 + *
1.438 + */
1.439 +class RTestVclntAprAllocUsingSharedHeap : public RTestMmfVclntVideoPlayerAPR
1.440 + {
1.441 +public:
1.442 + static RTestVclntAprAllocUsingSharedHeap* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.443 + void VideoPlayAllocL();
1.444 + virtual TVerdict DoTestStepL();
1.445 + virtual TVerdict DoTestL();
1.446 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.447 +
1.448 +protected:
1.449 + RTestVclntAprAllocUsingSharedHeap( const TDesC& aTestName, const TDesC& aSectName );
1.450 + TVerdict PerformTestL();
1.451 + };
1.452 +
1.453 +
1.454 +//
1.455 +//NEGATIVE TESTS//
1.456 +//
1.457 +
1.458 +/**
1.459 + * Multiple Registration (at the time of Play) and receive notification of a resource available event
1.460 + *
1.461 + * RTestVclntAprMultRegAtPlay
1.462 + * MM-MMF-VCLNTAVIAPR-I-0101-HP
1.463 + *
1.464 + */
1.465 +class RTestVclntAprMultRegAtPlay : public RTestMmfVclntVideoPlayerAPR
1.466 + {
1.467 +public:
1.468 + static RTestVclntAprMultRegAtPlay* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.469 + virtual TVerdict DoTestL();
1.470 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.471 +
1.472 +protected:
1.473 + RTestVclntAprMultRegAtPlay( const TDesC& aTestName, const TDesC& aSectName );
1.474 + TVerdict PerformTestL();
1.475 + };
1.476 +
1.477 +/**
1.478 + * Cancel when no resource Notification is requested.
1.479 + *
1.480 + * RTestVclntAprCancelNoResourceNfn
1.481 + * MM-MMF-VCLNTAVIAPR-I-0102-HP
1.482 + *
1.483 + */
1.484 + class RTestVclntAprCancelNoResourceNfn : public RTestMmfVclntVideoPlayerAPR
1.485 + {
1.486 +public:
1.487 + static RTestVclntAprCancelNoResourceNfn* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.488 + virtual TVerdict DoTestL();
1.489 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.490 +
1.491 +protected:
1.492 + RTestVclntAprCancelNoResourceNfn( const TDesC& aTestName, const TDesC& aSectName );
1.493 + TVerdict PerformTestL();
1.494 + };
1.495 +
1.496 +/**
1.497 + * Register for notification with an unsupported event type.
1.498 + *
1.499 + * RTestVclntAprRegUnsupportedEvent
1.500 + * MM-MMF-VCLNTAVIAPR-I-0103-HP
1.501 + *
1.502 + */
1.503 +class RTestVclntAprRegUnsupportedEvent : public RTestMmfVclntVideoPlayerAPR
1.504 + {
1.505 +public:
1.506 + static RTestVclntAprRegUnsupportedEvent* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.507 + virtual TVerdict DoTestL();
1.508 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.509 +
1.510 +protected:
1.511 + RTestVclntAprRegUnsupportedEvent( const TDesC& aTestName, const TDesC& aSectName );
1.512 + TVerdict PerformTestL();
1.513 + };
1.514 +
1.515 +/**
1.516 + * Cancellation of notification with an unsupported event type.
1.517 + *
1.518 + * RTestVclntAprCancelUnsupportedEvent
1.519 + * MM-MMF-VCLNTAVIAPR-I-0104-HP
1.520 + *
1.521 + */
1.522 +class RTestVclntAprCancelUnsupportedEvent : public RTestMmfVclntVideoPlayerAPR
1.523 + {
1.524 +public:
1.525 + static RTestVclntAprCancelUnsupportedEvent* NewL( const TDesC& aTestName, const TDesC& aSectName );
1.526 + virtual TVerdict DoTestL();
1.527 + virtual void Fsm(TAVPlayerAPREvents aEventCode, TInt aError);
1.528 +
1.529 +protected:
1.530 + RTestVclntAprCancelUnsupportedEvent( const TDesC& aTestName, const TDesC& aSectName );
1.531 + TVerdict PerformTestL();
1.532 + };
1.533 +
1.534 +#endif