os/mm/devsound/a3fintegrationtest/src/tsi_a3f_devsound_play.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/a3fintegrationtest/src/tsi_a3f_devsound_play.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,622 @@
     1.4 +// Copyright (c) 2007-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 +// Declarations of Integration test step classes for A3F DevSound Play cases.
    1.18 +// 
    1.19 +//
    1.20 +
    1.21 +#ifndef TSI_A3F_DEVSOUND_PLAY_H
    1.22 +#define TSI_A3F_DEVSOUND_PLAY_H
    1.23 +
    1.24 +// User includes
    1.25 +#include "tsi_a3f_devsound_teststep.h"
    1.26 +
    1.27 +/*
    1.28 + *
    1.29 + * RTestStepA3FDevSoundPlayBase
    1.30 + *
    1.31 + */
    1.32 +class RTestStepA3FDevSoundPlayBase : public RAsyncTestStep,
    1.33 +									 public MDevSoundObserver
    1.34 +	{
    1.35 +public:
    1.36 +	// From RAsyncTestStep
    1.37 +	virtual void KickoffTestL();
    1.38 +	virtual void CloseTest();
    1.39 +
    1.40 +protected:
    1.41 +	RTestStepA3FDevSoundPlayBase(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
    1.42 +	RTestStepA3FDevSoundPlayBase(const TDesC& aTestName, const TDesC& aSectName);
    1.43 +	RTestStepA3FDevSoundPlayBase(const TDesC& aTestName, const TFourCC& aInputDataType);
    1.44 +	RTestStepA3FDevSoundPlayBase(const TDesC& aTestName);
    1.45 +
    1.46 +	virtual void DoKickoffTestL();
    1.47 +
    1.48 +	// Executes the playing events of DevSound using a Finite State Machine
    1.49 +	virtual void Fsm(TDevSoundPlayEvents aDevSoundEvent, TInt aError);
    1.50 +
    1.51 +	// From MDevSoundObserver
    1.52 +	virtual void InitializeComplete(TInt aError);
    1.53 +	virtual void ToneFinished(TInt aError);
    1.54 +	virtual void BufferToBeFilled(CMMFBuffer* aBuffer);
    1.55 +	virtual void PlayError(TInt aError);
    1.56 +	virtual void BufferToBeEmptied(CMMFBuffer* aBuffer);
    1.57 +	virtual void RecordError(TInt aError);
    1.58 +	virtual void ConvertError(TInt aError);
    1.59 +	virtual void DeviceMessage(TUid aMessageType, const TDesC8& aMsg);
    1.60 +
    1.61 +	// Timer Callback
    1.62 +	static TInt TimerCallback(TAny*);
    1.63 +	virtual void DoTimerCallback();
    1.64 +
    1.65 +	TUint ConvertDesToTMMFSampleRate(const TDesC& aSampleRateString);
    1.66 +	TUint ConvertDesToTMMFMonoStereo(const TDesC& aMonoStereoString);
    1.67 +	void DisplayCodecInfo();
    1.68 +	void SetSampleRateAndChannelMode();
    1.69 +	void CheckConfigAndFourCCUsage();
    1.70 +
    1.71 +protected:
    1.72 +	RFs iFs;
    1.73 +	RFile iFile;
    1.74 +	CMMFDevSound* iMMFDevSound;
    1.75 +	CMMFBuffer* iBuffer;
    1.76 +	CPeriodic* iTimer;
    1.77 +	TCallBack iCallBack;
    1.78 +	TFourCC iInputDataType; // datatype (FourCC) of the Decoder
    1.79 +	TBuf<KNameSize> iSectName;
    1.80 +	TPtrC iFilename;
    1.81 +	TPtrC iSampleRate;
    1.82 +	TPtrC iMonoStereo;
    1.83 +	TDevSoundPlayState iPlayState;
    1.84 +	TInt iBufferCount;
    1.85 +	TBool iConfig;
    1.86 +	TBool iInvalidConfig;
    1.87 +	TBool iUseFourCC;
    1.88 +
    1.89 +	};
    1.90 +
    1.91 +/*
    1.92 + *
    1.93 + * RStepA3FDevSoundPlaySimple
    1.94 + *
    1.95 + */
    1.96 +class RStepA3FDevSoundPlaySimple : public RTestStepA3FDevSoundPlayBase
    1.97 +	{
    1.98 +public:
    1.99 +	static RStepA3FDevSoundPlaySimple* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.100 +	static RStepA3FDevSoundPlaySimple* NewL(const TDesC& aTestName, const TDesC& aSectName);
   1.101 +
   1.102 +private:
   1.103 +	RStepA3FDevSoundPlaySimple(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.104 +	RStepA3FDevSoundPlaySimple(const TDesC& aTestName, const TDesC& aSectName);
   1.105 +
   1.106 +	};
   1.107 +
   1.108 +/*
   1.109 + *
   1.110 + *	RStepA3FDevSoundPlayEmpty
   1.111 + *
   1.112 + */
   1.113 +class RStepA3FDevSoundPlayEmpty : public RTestStepA3FDevSoundPlayBase
   1.114 +	{
   1.115 +public:
   1.116 +	static RStepA3FDevSoundPlayEmpty* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.117 +
   1.118 +private:
   1.119 +	RStepA3FDevSoundPlayEmpty(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.120 +
   1.121 +	// From RTestStepA3FDevSoundPlayBase
   1.122 +	virtual void Fsm(TDevSoundPlayEvents aDevSoundEvent, TInt aError);
   1.123 +
   1.124 +	};
   1.125 +
   1.126 +/*
   1.127 + *
   1.128 + *	RStepA3FDevSoundPlayInvalidConfig
   1.129 + *
   1.130 + */
   1.131 +class RStepA3FDevSoundPlayInvalidConfig : public RTestStepA3FDevSoundPlayBase
   1.132 +	{
   1.133 +public:
   1.134 +	static RStepA3FDevSoundPlayInvalidConfig* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.135 +
   1.136 +private:
   1.137 +	RStepA3FDevSoundPlayInvalidConfig(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.138 +
   1.139 +	// From RAsyncTestStep
   1.140 +	virtual void KickoffTestL();
   1.141 +
   1.142 +	// From MDevSoundObserver
   1.143 +	virtual void PlayError(TInt aError);
   1.144 +
   1.145 +	};
   1.146 +
   1.147 +/*
   1.148 + *
   1.149 + * RStepA3FDevSoundPlayInvalidFourCC
   1.150 + *
   1.151 + */
   1.152 +class RStepA3FDevSoundPlayInvalidFourCC : public RTestStepA3FDevSoundPlayBase
   1.153 +	{
   1.154 +public:
   1.155 +	static RStepA3FDevSoundPlayInvalidFourCC* NewL(const TDesC& aTestName, const TFourCC& aInputDataType);
   1.156 +
   1.157 +private:
   1.158 +	RStepA3FDevSoundPlayInvalidFourCC(const TDesC& aTestName, const TFourCC& aInputDataType);
   1.159 +
   1.160 +	// From RAsyncTestStep
   1.161 +	virtual void KickoffTestL();
   1.162 +
   1.163 +	// From RTestStepA3FDevSoundPlayBase
   1.164 +	virtual void Fsm(TDevSoundPlayEvents aDevSoundEvent, TInt aError);
   1.165 +
   1.166 +	};
   1.167 +
   1.168 +/*
   1.169 + *
   1.170 + * RStepA3FDevSoundInitializeWithHwDeviceUID
   1.171 + *
   1.172 + */
   1.173 +class RStepA3FDevSoundInitializeWithHwDeviceUID : public RTestStepA3FDevSoundPlayBase
   1.174 +	{
   1.175 +public:
   1.176 +	static RStepA3FDevSoundInitializeWithHwDeviceUID* NewL(const TDesC& aTestName);
   1.177 +
   1.178 +private:
   1.179 +	RStepA3FDevSoundInitializeWithHwDeviceUID(const TDesC& aTestName);
   1.180 +
   1.181 +	// From RAsyncTestStep
   1.182 +	virtual void KickoffTestL();
   1.183 +
   1.184 +	// From RTestStepA3FDevSoundPlayBase
   1.185 +	virtual void Fsm(TDevSoundPlayEvents aDevSoundEvent, TInt aError);
   1.186 +
   1.187 +	};
   1.188 +
   1.189 +/**
   1.190 + *
   1.191 + *	RStepA3FDevSoundReadConfigDuringPlay
   1.192 + */
   1.193 +class RStepA3FDevSoundReadConfigDuringPlay : public RTestStepA3FDevSoundPlayBase
   1.194 +	{
   1.195 +public:
   1.196 +	static RStepA3FDevSoundReadConfigDuringPlay* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.197 +
   1.198 +private:
   1.199 +	RStepA3FDevSoundReadConfigDuringPlay(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.200 +
   1.201 +	// From MDevSoundObserver
   1.202 +	virtual void BufferToBeFilled(CMMFBuffer* aBuffer);
   1.203 +
   1.204 +	};
   1.205 +
   1.206 +/*
   1.207 + *
   1.208 + * RStepA3FDevSoundSetVolPlayStopGetVol
   1.209 + *
   1.210 + */
   1.211 +class RStepA3FDevSoundSetVolPlayStopGetVol : public RTestStepA3FDevSoundPlayBase
   1.212 +	{
   1.213 +public:
   1.214 +	static RStepA3FDevSoundSetVolPlayStopGetVol* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.215 +
   1.216 +private:
   1.217 +	RStepA3FDevSoundSetVolPlayStopGetVol(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.218 +
   1.219 +	// From RTestStepA3FDevSoundPlayBase
   1.220 +	virtual void DoKickoffTestL();
   1.221 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.222 +	virtual void DoTimerCallback();
   1.223 +
   1.224 +private:
   1.225 +	TInt iSetVolume;
   1.226 +	TInt iVolDuringStopped;
   1.227 +	TBool iCheckTimer;
   1.228 +
   1.229 +	};
   1.230 +
   1.231 +/*
   1.232 + *
   1.233 + * RStepA3FDevSoundFlushBuffersPaused
   1.234 + *
   1.235 + */
   1.236 +class RStepA3FDevSoundFlushBuffersPaused : public RTestStepA3FDevSoundPlayBase
   1.237 +	{
   1.238 +public:
   1.239 +	static RStepA3FDevSoundFlushBuffersPaused* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.240 +
   1.241 +private:
   1.242 +	RStepA3FDevSoundFlushBuffersPaused(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.243 +
   1.244 +	// From RTestStepA3FDevSoundPlayBase
   1.245 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.246 +	virtual void DoTimerCallback();
   1.247 +
   1.248 +	// From MDevSoundObserver
   1.249 +	void BufferToBeFilled(CMMFBuffer* aBuffer);
   1.250 +
   1.251 +private:
   1.252 +	TBool iCheckTimer;
   1.253 +
   1.254 +	};
   1.255 +
   1.256 +/*
   1.257 + *
   1.258 + * RStepA3FDevSoundInvalidStatePlay
   1.259 + *
   1.260 + */
   1.261 +class RStepA3FDevSoundInvalidStatePlay : public RTestStepA3FDevSoundPlayBase
   1.262 +	{
   1.263 +public:
   1.264 +	static RStepA3FDevSoundInvalidStatePlay* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.265 +
   1.266 +private:
   1.267 +	RStepA3FDevSoundInvalidStatePlay(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.268 +
   1.269 +	// From RAsyncTestStep
   1.270 +	virtual void KickoffTestL();
   1.271 +
   1.272 +	// From RTestStepA3FDevSoundPlayBase
   1.273 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.274 +
   1.275 +	// From MDevSoundObserver
   1.276 +	virtual void BufferToBeFilled(CMMFBuffer* aBuffer);
   1.277 +	virtual void PlayError(TInt aError);
   1.278 +
   1.279 +	};
   1.280 +
   1.281 +/*
   1.282 + *
   1.283 + * RStepA3FDevSoundFlushBuffersPlaying
   1.284 + *
   1.285 + */
   1.286 +class RStepA3FDevSoundFlushBuffersPlaying : public RTestStepA3FDevSoundPlayBase
   1.287 +	{
   1.288 +public:
   1.289 +	static RStepA3FDevSoundFlushBuffersPlaying* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.290 +
   1.291 +private:
   1.292 +	RStepA3FDevSoundFlushBuffersPlaying(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.293 +
   1.294 +	// From RTestStepA3FDevSoundPlayBase
   1.295 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.296 +
   1.297 +	};
   1.298 +
   1.299 +/*
   1.300 + *
   1.301 + * RStepA3FDevSoundInitializeWhilePlaying
   1.302 + *
   1.303 + */
   1.304 +class RStepA3FDevSoundInitializeWhilePlaying : public RTestStepA3FDevSoundPlayBase
   1.305 +	{
   1.306 +public:
   1.307 +	static RStepA3FDevSoundInitializeWhilePlaying* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.308 +
   1.309 +private:
   1.310 +	RStepA3FDevSoundInitializeWhilePlaying(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.311 +
   1.312 +	// From RTestStepA3FDevSoundPlayBase
   1.313 +	void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.314 +	void DoTimerCallback();
   1.315 +
   1.316 +private:
   1.317 +	TBool iCheckTimer;
   1.318 +
   1.319 +	};
   1.320 +
   1.321 +/*
   1.322 + *
   1.323 + * RStepA3FDevSoundSetBalanceDuringPlay
   1.324 + *
   1.325 + */
   1.326 +class RStepA3FDevSoundSetBalanceDuringPlay : public RTestStepA3FDevSoundPlayBase
   1.327 +	{
   1.328 +public:
   1.329 +	static RStepA3FDevSoundSetBalanceDuringPlay* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.330 +
   1.331 +private:
   1.332 +	RStepA3FDevSoundSetBalanceDuringPlay(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.333 +
   1.334 +	// From RTestStepA3FDevSoundPlayBase
   1.335 +	virtual void DoKickoffTestL();
   1.336 +
   1.337 +	// From MDevSoundObserver
   1.338 +	virtual void BufferToBeFilled(CMMFBuffer* aBuffer);
   1.339 +
   1.340 +private:
   1.341 +	TInt iPlaybalanceLeft;
   1.342 +	TInt iPlaybalanceRight;
   1.343 +
   1.344 +	};
   1.345 +
   1.346 +/*
   1.347 + *
   1.348 + * RStepA3FDevSoundPlayStopMultipleTimes
   1.349 + *
   1.350 + */
   1.351 +class RStepA3FDevSoundPlayStopMultipleTimes : public RTestStepA3FDevSoundPlayBase
   1.352 +	{
   1.353 +public:
   1.354 +	static RStepA3FDevSoundPlayStopMultipleTimes* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.355 +
   1.356 +private:
   1.357 +
   1.358 +	RStepA3FDevSoundPlayStopMultipleTimes(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.359 +
   1.360 +	// From RTestStepA3FDevSoundPlayBase
   1.361 +	virtual void DoKickoffTestL();
   1.362 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.363 +	virtual void DoTimerCallback();
   1.364 +
   1.365 +private:
   1.366 +	TInt iRepeatCount;
   1.367 +	TInt iRepeatCounter;
   1.368 +	TBool iCheckTimer;
   1.369 +
   1.370 +	};
   1.371 +
   1.372 +/*
   1.373 + *
   1.374 + * RStepA3FDevSoundPlayEOFPlayMultipleTimes
   1.375 + *
   1.376 + */
   1.377 +class RStepA3FDevSoundPlayEOFPlayMultipleTimes : public RTestStepA3FDevSoundPlayBase
   1.378 +	{
   1.379 +public:
   1.380 +	static RStepA3FDevSoundPlayEOFPlayMultipleTimes* NewL(const TDesC& aTestName, const TDesC& aSectName);
   1.381 +
   1.382 +private:
   1.383 +	RStepA3FDevSoundPlayEOFPlayMultipleTimes(const TDesC& aTestName, const TDesC& aSectName);
   1.384 +
   1.385 +	// From RTestStepA3FDevSoundPlayBase
   1.386 +	virtual void DoKickoffTestL();
   1.387 +
   1.388 +	// From MDevSoundObserver
   1.389 +	virtual void PlayError(TInt aError);
   1.390 +
   1.391 +private:
   1.392 +	TInt iRepeatCount;
   1.393 +	TInt iRepeatCounter;
   1.394 +
   1.395 +	};
   1.396 +
   1.397 +/*
   1.398 + *
   1.399 + * RStepA3FDevSoundInititalizeDuringInitialize
   1.400 + *
   1.401 + */
   1.402 +class RStepA3FDevSoundInititalizeDuringInitialize : public RTestStepA3FDevSoundPlayBase
   1.403 +	{
   1.404 +public:
   1.405 +	static RStepA3FDevSoundInititalizeDuringInitialize* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.406 +
   1.407 +private:
   1.408 +	RStepA3FDevSoundInititalizeDuringInitialize(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.409 +
   1.410 +	// From RAsyncTestStep
   1.411 +	virtual void KickoffTestL();
   1.412 +
   1.413 +	// From RTestStepA3FDevSoundPlayBase
   1.414 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.415 +
   1.416 +	// From MDevSoundObserver
   1.417 +	virtual void InitializeComplete(TInt aError);
   1.418 +
   1.419 +private:
   1.420 +	TInt iSecondInitErr;
   1.421 +
   1.422 +	};
   1.423 +
   1.424 +/*
   1.425 + *
   1.426 + * RStepA3FDevSoundPlayInitDuringPlayInit
   1.427 + *
   1.428 + */
   1.429 +class RStepA3FDevSoundPlayInitDuringPlayInit : public RTestStepA3FDevSoundPlayBase
   1.430 +	{
   1.431 +public:
   1.432 +	static RStepA3FDevSoundPlayInitDuringPlayInit* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.433 +
   1.434 +private:
   1.435 +	RStepA3FDevSoundPlayInitDuringPlayInit(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.436 +
   1.437 +	// From RASyncTestStep
   1.438 +	virtual void KickoffTestL();
   1.439 +
   1.440 +	// From RTestStepA3FDevSoundPlayBase
   1.441 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.442 +
   1.443 +	// From MDevSoundObserver
   1.444 +	virtual void BufferToBeFilled(CMMFBuffer* aBuffer);
   1.445 +
   1.446 +private:
   1.447 +	TInt iFirstPlayInitErr;
   1.448 +	TInt iSecondPlayInitErr;
   1.449 +
   1.450 +	};
   1.451 +
   1.452 +/*
   1.453 + *
   1.454 + * RStepA3FDevSoundVolumeCrop
   1.455 + *
   1.456 + */
   1.457 +class RStepA3FDevSoundVolumeCrop : public RTestStepA3FDevSoundPlayBase
   1.458 +	{
   1.459 +public:
   1.460 +	static RStepA3FDevSoundVolumeCrop* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.461 +
   1.462 +private:
   1.463 +	RStepA3FDevSoundVolumeCrop(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.464 +
   1.465 +	// From RAsyncTestStep
   1.466 +	virtual void KickoffTestL();
   1.467 +
   1.468 +	// From RTestStepA3FDevSoundPlayBase
   1.469 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.470 +
   1.471 +private:
   1.472 +	TInt iIncreaseMaxVolume;
   1.473 +	TInt iMinVolume;
   1.474 +
   1.475 +	};
   1.476 +
   1.477 +/*
   1.478 + *
   1.479 + * RStepA3FDevSoundInitializeForConverting
   1.480 + *
   1.481 + */
   1.482 +class RStepA3FDevSoundInitializeForConverting : public RTestStepA3FDevSoundPlayBase
   1.483 +	{
   1.484 +public:
   1.485 +	static RStepA3FDevSoundInitializeForConverting* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.486 +
   1.487 +private:
   1.488 +	RStepA3FDevSoundInitializeForConverting(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.489 +
   1.490 +	// From RAsyncTestStep
   1.491 +	virtual void KickoffTestL();
   1.492 +
   1.493 +	// From RTestStepA3FDevSoundPlayBase
   1.494 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.495 +
   1.496 +	};
   1.497 +
   1.498 +/*
   1.499 + *
   1.500 + * RStepA3FDevSoundGetSampleNumsDuringPlayStop
   1.501 + *
   1.502 + */
   1.503 +class RStepA3FDevSoundGetSampleNumsAfterStop : public RTestStepA3FDevSoundPlayBase
   1.504 +	{
   1.505 +public:
   1.506 +	static RStepA3FDevSoundGetSampleNumsAfterStop* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.507 +
   1.508 +private:
   1.509 +	RStepA3FDevSoundGetSampleNumsAfterStop(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.510 +
   1.511 +	// From RTestStepA3FDevSoundPlayBase
   1.512 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.513 +	virtual void DoTimerCallback();
   1.514 +
   1.515 +private:
   1.516 +	TBool iCheckTimer;
   1.517 +
   1.518 +	};
   1.519 +
   1.520 +/*
   1.521 + *
   1.522 + * RStepA3FDevSoundCancelInitializePlay
   1.523 + *
   1.524 + */
   1.525 +class RStepA3FDevSoundCancelInitializePlay : public RTestStepA3FDevSoundPlayBase
   1.526 +	{
   1.527 +public:
   1.528 +	static RStepA3FDevSoundCancelInitializePlay* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.529 +
   1.530 +private:
   1.531 +	RStepA3FDevSoundCancelInitializePlay(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.532 +
   1.533 +	// From RTestStepA3FDevSoundPlayBase
   1.534 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.535 +	virtual void DoTimerCallback();
   1.536 +	virtual void KickoffTestL();
   1.537 +	
   1.538 +	// From MDevSoundObserver
   1.539 +	virtual void InitializeComplete(TInt aError);
   1.540 +	
   1.541 +	};	
   1.542 +
   1.543 +/*
   1.544 + *
   1.545 + * RStepA3FDevSoundNegCancelInitializePlay
   1.546 + *
   1.547 + */
   1.548 +class RStepA3FDevSoundNegCancelInitializePlay : public RTestStepA3FDevSoundPlayBase
   1.549 +	{
   1.550 +public:
   1.551 +	static RStepA3FDevSoundNegCancelInitializePlay* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.552 +
   1.553 +private:
   1.554 +	RStepA3FDevSoundNegCancelInitializePlay(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.555 +
   1.556 +	// From RTestStepA3FDevSoundPlayBase
   1.557 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.558 +	virtual void KickoffTestL();
   1.559 +	
   1.560 +	// From MDevSoundObserver
   1.561 +	virtual void InitializeComplete(TInt aError);
   1.562 +
   1.563 +	};
   1.564 +
   1.565 +/*
   1.566 + *
   1.567 + * RStepA3FDevSoundEmptyBuffersInCreatedState
   1.568 + *
   1.569 + */
   1.570 +class RStepA3FDevSoundEmptyBuffersInCreatedState : public RTestStepA3FDevSoundPlayBase
   1.571 +	{
   1.572 +public:
   1.573 +	static RStepA3FDevSoundEmptyBuffersInCreatedState* NewL(const TDesC& aTestName);
   1.574 +
   1.575 +private:
   1.576 +	RStepA3FDevSoundEmptyBuffersInCreatedState(const TDesC& aTestName);
   1.577 +
   1.578 +	// From RTestStepA3FDevSoundPlayBase
   1.579 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.580 +	virtual void KickoffTestL();
   1.581 +	
   1.582 +	};
   1.583 +
   1.584 +/*
   1.585 + *
   1.586 + * RStepA3FDevSoundEmptyBuffersInInitializedState
   1.587 + *
   1.588 + */
   1.589 +class RStepA3FDevSoundEmptyBuffersInInitializedState : public RTestStepA3FDevSoundPlayBase
   1.590 +	{
   1.591 +public:
   1.592 +	static RStepA3FDevSoundEmptyBuffersInInitializedState* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.593 +
   1.594 +private:
   1.595 +	RStepA3FDevSoundEmptyBuffersInInitializedState(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.596 +
   1.597 +	// From RTestStepA3FDevSoundPlayBase
   1.598 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.599 +	virtual void KickoffTestL();
   1.600 +
   1.601 +	};
   1.602 +	
   1.603 +/*
   1.604 + *
   1.605 + * RStepA3FDevSoundEmptyBuffersInInitializingState
   1.606 + *
   1.607 + */
   1.608 +class RStepA3FDevSoundEmptyBuffersInInitializingState : public RTestStepA3FDevSoundPlayBase
   1.609 +	{
   1.610 +public:
   1.611 +	static RStepA3FDevSoundEmptyBuffersInInitializingState* NewL(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.612 +
   1.613 +private:
   1.614 +	RStepA3FDevSoundEmptyBuffersInInitializingState(const TDesC& aTestName, const TDesC& aSectName, const TFourCC& aInputDataType);
   1.615 +
   1.616 +	// From RTestStepA3FDevSoundPlayBase
   1.617 +	virtual void Fsm(TDevSoundPlayEvents aEventCode, TInt aError);
   1.618 +	virtual void KickoffTestL();
   1.619 +	
   1.620 +	// From MDevSoundObserver
   1.621 +	virtual void InitializeComplete(TInt aError);
   1.622 +
   1.623 +	};
   1.624 +	
   1.625 +#endif // TSI_A3F_DEVSOUND_PLAY_H