os/mm/devsound/a3fcharacterisationtest/src/char_a3f_devsound_tonetest.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/devsound/a3fcharacterisationtest/src/char_a3f_devsound_tonetest.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,1357 @@
     1.4 +// Copyright (c) 2008-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 +//
    1.18 +
    1.19 +#ifndef CHAR_A3F_DEVSOUND_TONETEST_H
    1.20 +#define CHAR_A3F_DEVSOUND_TONETEST_H
    1.21 +
    1.22 +// system includes
    1.23 +#include "char_a3f_devsound_testbase.h"
    1.24 +#include "char_a3f_devsound_toneclient.h"
    1.25 +#include "char_a3f_devsound_playrecordclients.h"
    1.26 +
    1.27 +/*
    1.28 + *========================================================================================================
    1.29 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0001
    1.30 + */
    1.31 +class RA3FDevSoundToneSetConfigTest : public RA3FDevSoundTestBase
    1.32 +	{
    1.33 +public:
    1.34 +	static RA3FDevSoundToneSetConfigTest* NewL(const TDesC& aTestName);
    1.35 +
    1.36 +private:
    1.37 +	RA3FDevSoundToneSetConfigTest(const TDesC& aTestName);
    1.38 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
    1.39 +	void DoKickoffTestL();
    1.40 +
    1.41 +private:
    1.42 +	TInt iSampleRate;
    1.43 +	TInt iChannels;	
    1.44 +	};
    1.45 +
    1.46 +/*
    1.47 + *========================================================================================================
    1.48 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0002
    1.49 + */
    1.50 +class RA3FDevSoundToneSetPrioritySettingsTest : public RA3FDevSoundTestBase
    1.51 +	{
    1.52 +public:
    1.53 +	static RA3FDevSoundToneSetPrioritySettingsTest* NewL(const TDesC& aTestName);
    1.54 +
    1.55 +private:
    1.56 +	RA3FDevSoundToneSetPrioritySettingsTest(const TDesC& aTestName);
    1.57 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
    1.58 +	void DoKickoffTestL();
    1.59 +
    1.60 +private:
    1.61 +	TInt iPriority;
    1.62 +	};
    1.63 +
    1.64 +/*
    1.65 + *========================================================================================================
    1.66 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0003
    1.67 + */
    1.68 +class RA3FDevSoundToneSetVolumeTest : public RA3FDevSoundTestBase
    1.69 +	{
    1.70 +public:
    1.71 +	static RA3FDevSoundToneSetVolumeTest* NewL(const TDesC& aTestName);
    1.72 +
    1.73 +private:
    1.74 +	RA3FDevSoundToneSetVolumeTest(const TDesC& aTestName);
    1.75 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
    1.76 +	void DoKickoffTestL();
    1.77 +	
    1.78 +private:
    1.79 +	TInt iVolume;
    1.80 +	};
    1.81 +
    1.82 +/*
    1.83 + *========================================================================================================
    1.84 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0004
    1.85 + */
    1.86 +class RA3FDevSoundToneVolumeRampTest : public RA3FDevSoundTestBase
    1.87 +	{
    1.88 +public:
    1.89 +	static RA3FDevSoundToneVolumeRampTest* NewL(const TDesC& aTestName);
    1.90 +private:
    1.91 +	RA3FDevSoundToneVolumeRampTest(const TDesC& aTestName);
    1.92 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
    1.93 +	void DoKickoffTestL();
    1.94 +	void ToneFinished(TInt aError);
    1.95 +private:
    1.96 +	TInt iVolumeRamp;
    1.97 +	TInt iDuration; 
    1.98 +	TInt iFrequencyTone1;
    1.99 +	TTime iStartTime;
   1.100 +	TTime iEndTime;
   1.101 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.102 +	};
   1.103 +
   1.104 +/*
   1.105 + *========================================================================================================
   1.106 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0005
   1.107 + */
   1.108 +class RA3FDevSoundToneSetToneRepeatsTest : public RA3FDevSoundTestBase
   1.109 +	{
   1.110 +public:
   1.111 +	static RA3FDevSoundToneSetToneRepeatsTest* NewL(const TDesC& aTestName);
   1.112 +private:
   1.113 +	RA3FDevSoundToneSetToneRepeatsTest(const TDesC& aTestName);
   1.114 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.115 +	void DoKickoffTestL();
   1.116 +	void ToneFinished(TInt aError);
   1.117 +private:
   1.118 +	TInt iDuration; 
   1.119 +	TInt iFrequencyTone1;
   1.120 +	TInt iRepeatTrailingSilence;
   1.121 +	TInt iRepeatCount;
   1.122 +	TTime iStartTime;
   1.123 +	TTime iEndTime;
   1.124 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.125 +	};
   1.126 +
   1.127 +/*
   1.128 + *========================================================================================================
   1.129 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0006
   1.130 + */
   1.131 +class RA3FDevSoundToneSetDTMFLengthsTest : public RA3FDevSoundTestBase
   1.132 +	{
   1.133 +public:
   1.134 +	static RA3FDevSoundToneSetDTMFLengthsTest* NewL(const TDesC& aTestName);
   1.135 +private:
   1.136 +	RA3FDevSoundToneSetDTMFLengthsTest(const TDesC& aTestName);
   1.137 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.138 +	void DoKickoffTestL();
   1.139 +	void ToneFinished(TInt aError);
   1.140 +	
   1.141 +private:
   1.142 +	TBool iFirstToneFinishedCall;
   1.143 +	TInt iToneOnLength;
   1.144 +	TInt iToneOffLength;
   1.145 +	TInt iPauseLength;
   1.146 +	TBuf16<KMaxStringLength> iDTMFString;
   1.147 +	TTime iStartTime;
   1.148 +	TTime iEndTime;
   1.149 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.150 +	TInt iDTMFPauses;
   1.151 +	TInt iDTMFTones;
   1.152 +	};
   1.153 +
   1.154 +/*
   1.155 + *========================================================================================================
   1.156 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0007
   1.157 + */
   1.158 +class RA3FDevSoundToneSetVolumeWhilePlayingTest : public RA3FDevSoundTestBase
   1.159 +	{
   1.160 +public:
   1.161 +	static RA3FDevSoundToneSetVolumeWhilePlayingTest* NewL(const TDesC& aTestName);
   1.162 +private:
   1.163 +	RA3FDevSoundToneSetVolumeWhilePlayingTest(const TDesC& aTestName);
   1.164 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.165 +	void DoKickoffTestL();
   1.166 +	void DoTimerCallback();
   1.167 +	void ToneFinished(TInt aError);
   1.168 +private:
   1.169 +	TInt iDuration; 
   1.170 +	TInt iVolume;
   1.171 +	TInt iFrequencyTone1;
   1.172 +	TTime iStartTime;
   1.173 +	TTime iEndTime;
   1.174 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.175 +	};
   1.176 +
   1.177 +/*
   1.178 + *========================================================================================================
   1.179 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0008
   1.180 + */
   1.181 +class RA3FDevSoundToneSetPlayBalanceWhilePlayingTest : public RA3FDevSoundTestBase
   1.182 +	{
   1.183 +public:
   1.184 +	static RA3FDevSoundToneSetPlayBalanceWhilePlayingTest* NewL(const TDesC& aTestName);
   1.185 +private:
   1.186 +	RA3FDevSoundToneSetPlayBalanceWhilePlayingTest(const TDesC& aTestName);
   1.187 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.188 +	void DoKickoffTestL();
   1.189 +	void DoTimerCallback();
   1.190 +	void ToneFinished(TInt aError);
   1.191 +	
   1.192 +private:
   1.193 +	TInt iDuration; 
   1.194 +	TInt iVolume;
   1.195 +	TInt iFrequencyTone1;
   1.196 +	TInt  iLSpeakerBalance;
   1.197 +	TInt  iRSpeakerBalance;
   1.198 +	TTime iStartTime;
   1.199 +	TTime iEndTime;
   1.200 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.201 +	};
   1.202 +
   1.203 +/*
   1.204 + *========================================================================================================
   1.205 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0009
   1.206 + */
   1.207 +class RA3FDevSoundToneSetVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase
   1.208 +	{
   1.209 +public:
   1.210 +	static RA3FDevSoundToneSetVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName);
   1.211 +private:
   1.212 +	RA3FDevSoundToneSetVolumeWhilePausePlayingTest(const TDesC& aTestName);
   1.213 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.214 +	void DoKickoffTestL();
   1.215 +	void DoTimerCallback();
   1.216 +	void ToneFinished(TInt aError);
   1.217 +private:
   1.218 +	TInt  iDuration; 
   1.219 +	TInt  iVolume;
   1.220 +	TInt  iFrequencyTone1;
   1.221 +	TBool iTimeToEnterPauseElapsed;
   1.222 +	};
   1.223 +
   1.224 +/*
   1.225 + *========================================================================================================
   1.226 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0010
   1.227 + */
   1.228 +class RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest : public RA3FDevSoundTestBase
   1.229 +	{
   1.230 +public:
   1.231 +	static RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest* NewL(const TDesC& aTestName);
   1.232 +private:
   1.233 +	RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest(const TDesC& aTestName);
   1.234 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.235 +	void DoKickoffTestL();
   1.236 +	
   1.237 +private:
   1.238 +	TInt iVolume;
   1.239 +	TBool iReinitialized;
   1.240 +	};
   1.241 +
   1.242 +/*
   1.243 + *========================================================================================================
   1.244 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0011
   1.245 + */
   1.246 +class RA3FDevSoundToneSetVolumeRampWhilePlayingTest : public RA3FDevSoundTestBase
   1.247 +	{
   1.248 +public:
   1.249 +	static RA3FDevSoundToneSetVolumeRampWhilePlayingTest* NewL(const TDesC& aTestName);
   1.250 +private:
   1.251 +	RA3FDevSoundToneSetVolumeRampWhilePlayingTest(const TDesC& aTestName);
   1.252 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.253 +	void DoKickoffTestL();
   1.254 +	void DoTimerCallback();
   1.255 +	void ToneFinished(TInt aError);
   1.256 +
   1.257 +private:
   1.258 +	TInt iDuration; 
   1.259 +	TInt iVolume;
   1.260 +	TInt iFrequencyTone1;
   1.261 +	TInt iVolumeRamp;
   1.262 +	TBool iTonePlayedTwice;
   1.263 +	TTime iStartTime;
   1.264 +	TTime iEndTime;
   1.265 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.266 +	TInt iTimesToneFinishedCalled;
   1.267 +	};
   1.268 +
   1.269 +/*
   1.270 + *========================================================================================================
   1.271 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0012
   1.272 + */
   1.273 +class RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest : public RA3FDevSoundTestBase
   1.274 +	{
   1.275 +public:
   1.276 +	static RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest* NewL(const TDesC& aTestName);
   1.277 +private:
   1.278 +	RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest(const TDesC& aTestName);
   1.279 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.280 +	void DoKickoffTestL();
   1.281 +	void DoTimerCallback();
   1.282 +	void ToneFinished(TInt aError);
   1.283 +	
   1.284 +private:
   1.285 +	TInt iDuration; 
   1.286 +	TInt iFrequencyTone1;
   1.287 +	TInt iRepeatTrailingSilence;
   1.288 +	TInt iRepeatCount;
   1.289 +	TTime iStartTime;
   1.290 +	TTime iEndTime;
   1.291 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.292 +	};
   1.293 +
   1.294 +/*
   1.295 + *========================================================================================================
   1.296 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0013
   1.297 + */
   1.298 +class RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest : public RA3FDevSoundTestBase
   1.299 +	{
   1.300 +public:
   1.301 +	static RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest* NewL(const TDesC& aTestName);
   1.302 +private:
   1.303 +	RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest(const TDesC& aTestName);
   1.304 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.305 +	void DoKickoffTestL();
   1.306 +	void DoTimerCallback();
   1.307 +	void ToneFinished(TInt aError);
   1.308 +
   1.309 +private:
   1.310 +	TBool iFirstToneFinishedCall;
   1.311 +	TInt iToneOnLength;
   1.312 +	TInt iToneOffLength;
   1.313 +	TInt iPauseLength;
   1.314 +	TBuf16<KMaxStringLength> iDTMFString;
   1.315 +	TTime iStartTime;
   1.316 +	TTime iEndTime;
   1.317 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.318 +	TInt iDTMFPauses;
   1.319 +	TInt iDTMFTones;
   1.320 +	TInt iTotalExpectedPlayToneTime;
   1.321 +	};
   1.322 +
   1.323 +/*
   1.324 + *========================================================================================================
   1.325 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0014
   1.326 + */
   1.327 +class RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest : public RA3FDevSoundTestBase
   1.328 +	{
   1.329 +public:
   1.330 +	static RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest* NewL(const TDesC& aTestName);
   1.331 +private:
   1.332 +	RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest(const TDesC& aTestName);
   1.333 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.334 +	void DoKickoffTestL();
   1.335 +	void ToneFinished(TInt aError);
   1.336 +	
   1.337 +private:
   1.338 +	TInt iDuration; 
   1.339 +	TInt iFrequencyTone1;
   1.340 +	TInt iRepeatTrailingSilence;
   1.341 +	TInt iRepeatCount;	
   1.342 +	TTime iStartTime;
   1.343 +	TTime iEndTime;
   1.344 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.345 +	TBool iInitializedToPlayTones;
   1.346 +	};
   1.347 +	
   1.348 +/*
   1.349 + *========================================================================================================
   1.350 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0015
   1.351 + */
   1.352 +class RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest : public RA3FDevSoundTestBase
   1.353 +	{
   1.354 +public:
   1.355 +	static RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest* NewL(const TDesC& aTestName);
   1.356 +
   1.357 +private:
   1.358 +	RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest(const TDesC& aTestName);
   1.359 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.360 +	void DoKickoffTestL();
   1.361 +	void ToneFinished(TInt aError);
   1.362 +	
   1.363 +private:
   1.364 +	TBool iInitializedToPlayTones;
   1.365 +	TBuf16<KMaxStringLength> iDTMFString;
   1.366 +	TInt iToneOnLength;
   1.367 +	TInt iToneOffLength;
   1.368 +	TInt iPauseLength;
   1.369 +	TTime iStartTime;
   1.370 +	TTime iEndTime;
   1.371 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.372 +	TInt iDTMFPauses;
   1.373 +	TInt iDTMFTones;
   1.374 +	};
   1.375 +
   1.376 +/*
   1.377 + *========================================================================================================
   1.378 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0016
   1.379 + */
   1.380 +class RA3FDevSoundToneSetConfigWhilePlayingTest : public RA3FDevSoundTestBase
   1.381 +	{
   1.382 +public:
   1.383 +	static RA3FDevSoundToneSetConfigWhilePlayingTest* NewL(const TDesC& aTestName);
   1.384 +private:
   1.385 +	RA3FDevSoundToneSetConfigWhilePlayingTest(const TDesC& aTestName);
   1.386 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.387 +	void DoKickoffTestL();
   1.388 +	void DoTimerCallback();
   1.389 +	
   1.390 +private:
   1.391 +	TInt iDuration;
   1.392 +	TInt iVolume;
   1.393 +	TInt iFrequencyTone1;
   1.394 +	TInt iSampleRate;
   1.395 +	TInt iChannels;
   1.396 +	};
   1.397 +
   1.398 +/*
   1.399 + *========================================================================================================
   1.400 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0017
   1.401 + */
   1.402 +class RA3FDevSoundToneSetPriorityWhilePlayingTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver
   1.403 +	{
   1.404 +public:
   1.405 +	static RA3FDevSoundToneSetPriorityWhilePlayingTest* NewL(const TDesC& aTestName);
   1.406 +private:
   1.407 +	RA3FDevSoundToneSetPriorityWhilePlayingTest(const TDesC& aTestName);
   1.408 +	void ClientInitializeCompleteCallback(TInt aError);
   1.409 +	void ClientToneFinishedCallback(TInt aError);
   1.410 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.411 +	void DoKickoffTestL();
   1.412 +	void DoTimerCallback();
   1.413 +	void ToneFinished(TInt aError);
   1.414 +private:
   1.415 +	
   1.416 +	TInt iDuration;
   1.417 +	TInt iFrequencyTone1;
   1.418 +	};
   1.419 +
   1.420 +/*
   1.421 + *========================================================================================================
   1.422 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0018
   1.423 + */
   1.424 +class RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue : public RA3FDevSoundTestBase
   1.425 +	{
   1.426 +public:
   1.427 +	static RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue* NewL(const TDesC& aTestName);
   1.428 +
   1.429 +private:
   1.430 +	RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue(const TDesC& aTestName);
   1.431 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.432 +	void DoKickoffTestL();
   1.433 +
   1.434 +private:
   1.435 +	TInt iSampleRate;
   1.436 +	TInt iChannels;	
   1.437 +	};
   1.438 +
   1.439 +/*
   1.440 + *========================================================================================================
   1.441 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0019
   1.442 + */
   1.443 +class RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest : public RA3FDevSoundTestBase
   1.444 +	{
   1.445 +public:
   1.446 +	static RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest* NewL(const TDesC& aTestName);
   1.447 +
   1.448 +private:
   1.449 +	RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest(const TDesC& aTestName);
   1.450 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.451 +	void DoKickoffTestL();
   1.452 +
   1.453 +private:
   1.454 +	TInt iSampleRate;
   1.455 +	TInt iChannels;	
   1.456 +	};
   1.457 +
   1.458 +/*
   1.459 + *========================================================================================================
   1.460 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0020
   1.461 + */
   1.462 +class RA3FDevSoundToneSetDTMFLengthsToNegativeTest : public RA3FDevSoundTestBase
   1.463 +	{
   1.464 +public:
   1.465 +	static RA3FDevSoundToneSetDTMFLengthsToNegativeTest* NewL(const TDesC& aTestName);
   1.466 +private:
   1.467 +	RA3FDevSoundToneSetDTMFLengthsToNegativeTest(const TDesC& aTestName);
   1.468 +	void ToneFinished(TInt aError);
   1.469 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.470 +	void DoKickoffTestL();
   1.471 +	
   1.472 +private:
   1.473 +	TInt iToneOnLength;
   1.474 +	TInt iToneOffLength;
   1.475 +	TInt iPauseLength;
   1.476 +	TBuf16<KMaxStringLength> iDTMFString;
   1.477 +	TTime iStartTime;
   1.478 +	TTime iEndTime;
   1.479 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.480 +	};
   1.481 +	
   1.482 +/*
   1.483 + *========================================================================================================
   1.484 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0021
   1.485 + */
   1.486 +class RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest : public RA3FDevSoundTestBase
   1.487 +	{
   1.488 +public:
   1.489 +	static RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest* NewL(const TDesC& aTestName);
   1.490 +private:
   1.491 +	RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest(const TDesC& aTestName);
   1.492 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.493 +	void DoKickoffTestL();
   1.494 +	void DoTimerCallback();
   1.495 +	void ToneFinished(TInt aError);
   1.496 +	
   1.497 +private:
   1.498 +	TBool iFirstToneFinishedCall;
   1.499 +	TInt iToneOnLength;
   1.500 +	TInt iToneOffLength;
   1.501 +	TInt iPauseLength;
   1.502 +	TBuf16<KMaxStringLength> iDTMFString;
   1.503 +	TTime iStartTime;
   1.504 +	TTime iEndTime;
   1.505 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.506 +	};
   1.507 +
   1.508 +/*
   1.509 + *========================================================================================================
   1.510 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0022
   1.511 + */
   1.512 +class RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest : public RA3FDevSoundTestBase
   1.513 +	{
   1.514 +public:
   1.515 +	static RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest* NewL(const TDesC& aTestName);
   1.516 +private:
   1.517 +	RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest(const TDesC& aTestName);
   1.518 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.519 +	void DoKickoffTestL();
   1.520 +	void ToneFinished(TInt aError);
   1.521 +	
   1.522 +private:
   1.523 +	TInt iDuration; 
   1.524 +	TInt iFrequencyTone1;
   1.525 +	TInt iRepeatTrailingSilence;
   1.526 +	TInt iRepeatCount;	
   1.527 +	TTime iStartTime;
   1.528 +	TTime iEndTime;
   1.529 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.530 +	TBool iInitializedToPlayTones;
   1.531 +	};
   1.532 +
   1.533 +/*
   1.534 + *========================================================================================================
   1.535 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0023
   1.536 + */
   1.537 +class RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest : public RA3FDevSoundTestBase
   1.538 +	{
   1.539 +public:
   1.540 +	static RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest* NewL(const TDesC& aTestName);
   1.541 +private:
   1.542 +	RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest(const TDesC& aTestName);
   1.543 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.544 +	void DoKickoffTestL();
   1.545 +	void ToneFinished(TInt aError);
   1.546 +	void DoTimerCallback();
   1.547 +	
   1.548 +private:
   1.549 +	TInt iDuration; 
   1.550 +	TInt iFrequencyTone1;
   1.551 +	TInt iRepeatTrailingSilence;
   1.552 +	TInt iRepeatCount;	
   1.553 +	TTime iStartTime;
   1.554 +	TTime iEndTime;
   1.555 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.556 +	TBool iInitializedToPlayTones;
   1.557 +	};
   1.558 +
   1.559 +/*
   1.560 + *========================================================================================================
   1.561 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0024
   1.562 + */
   1.563 +class RA3FDevSoundToneCapsTest : public RA3FDevSoundTestBase
   1.564 +	{
   1.565 +public:
   1.566 +	static RA3FDevSoundToneCapsTest* NewL(const TDesC& aTestName);
   1.567 +private:
   1.568 +	RA3FDevSoundToneCapsTest(const TDesC& aTestName);
   1.569 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.570 +	void DoKickoffTestL();
   1.571 +
   1.572 +private:
   1.573 +	TInt iExCapRate;
   1.574 +	TInt iExCapChannels;
   1.575 +	};
   1.576 +
   1.577 +/*
   1.578 + *========================================================================================================
   1.579 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0025
   1.580 + */
   1.581 +class RA3FDevSoundToneConfigDefaultTest : public RA3FDevSoundTestBase
   1.582 +	{
   1.583 +public:
   1.584 +	static RA3FDevSoundToneConfigDefaultTest* NewL(const TDesC& aTestName);
   1.585 +private:
   1.586 +	RA3FDevSoundToneConfigDefaultTest(const TDesC& aTestName);
   1.587 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.588 +	void DoKickoffTestL();
   1.589 +	
   1.590 +private:
   1.591 +	TMMFSampleRate iExSampleRate;
   1.592 +	TInt iExCapRate;
   1.593 +	TInt iExCapChannels;
   1.594 +	};
   1.595 +	
   1.596 +/*
   1.597 + *========================================================================================================
   1.598 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0026
   1.599 + */
   1.600 +class RA3FDevSoundToneMaxVolumeTest : public RA3FDevSoundTestBase
   1.601 +	{
   1.602 +public:
   1.603 +	static RA3FDevSoundToneMaxVolumeTest* NewL(const TDesC& aTestName);
   1.604 +private:
   1.605 +	RA3FDevSoundToneMaxVolumeTest(const TDesC& aTestName);
   1.606 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.607 +	void DoKickoffTestL();
   1.608 +
   1.609 +private:
   1.610 +	TInt iExVolume;
   1.611 +	};
   1.612 +
   1.613 +/*
   1.614 + *========================================================================================================
   1.615 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0027
   1.616 + */
   1.617 +class RA3FDevSoundToneVolumeTest : public RA3FDevSoundTestBase
   1.618 +	{
   1.619 +public:
   1.620 +	static RA3FDevSoundToneVolumeTest* NewL(const TDesC& aTestName);
   1.621 +private:
   1.622 +	RA3FDevSoundToneVolumeTest(const TDesC& aTestName);
   1.623 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.624 +	void DoKickoffTestL();
   1.625 +	
   1.626 +private:
   1.627 +	TInt iExVolume;
   1.628 +	};
   1.629 +	
   1.630 +/*
   1.631 + *========================================================================================================
   1.632 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0028
   1.633 + */
   1.634 +class RA3FDevSoundToneQueryCapsWhilePlayingTest : public RA3FDevSoundTestBase
   1.635 +	{
   1.636 +public:
   1.637 +	static RA3FDevSoundToneQueryCapsWhilePlayingTest* NewL(const TDesC& aTestName);
   1.638 +private:
   1.639 +	RA3FDevSoundToneQueryCapsWhilePlayingTest(const TDesC& aTestName);
   1.640 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.641 +	void DoKickoffTestL();
   1.642 +	void DoTimerCallback();
   1.643 +	
   1.644 +private:
   1.645 +	TInt iDuration;
   1.646 +	TInt iFrequencyTone1;
   1.647 +	TInt iExCapRate;
   1.648 +	TInt iExCapChannels;
   1.649 +	};
   1.650 +	
   1.651 +/*
   1.652 + *========================================================================================================
   1.653 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0029
   1.654 + */
   1.655 +class RA3FDevSoundToneConfigWhilePlayingTest : public RA3FDevSoundTestBase
   1.656 +	{
   1.657 +public:
   1.658 +	static RA3FDevSoundToneConfigWhilePlayingTest* NewL(const TDesC& aTestName);
   1.659 +private:
   1.660 +	RA3FDevSoundToneConfigWhilePlayingTest(const TDesC& aTestName);
   1.661 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.662 +	void DoKickoffTestL();
   1.663 +	void DoTimerCallback();
   1.664 +	void ToneFinished(TInt aError);
   1.665 +	
   1.666 +private:
   1.667 +	TInt iDuration;
   1.668 +	TInt iFrequencyTone1;
   1.669 +	TInt iExCapRate;
   1.670 +	TInt iExCapChannels;
   1.671 +	TMMFSampleRate iExSampleRate;
   1.672 +	TTime iStartTime;
   1.673 +	TTime iEndTime;
   1.674 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.675 +	};
   1.676 +
   1.677 +/*
   1.678 + *========================================================================================================
   1.679 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0030
   1.680 + */
   1.681 +class RA3FDevSoundToneMaxVolumeWhilePlayingTest : public RA3FDevSoundTestBase
   1.682 +	{
   1.683 +public:
   1.684 +	static RA3FDevSoundToneMaxVolumeWhilePlayingTest* NewL(const TDesC& aTestName);
   1.685 +private:
   1.686 +	RA3FDevSoundToneMaxVolumeWhilePlayingTest(const TDesC& aTestName);
   1.687 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.688 +	void DoKickoffTestL();
   1.689 +	void DoTimerCallback();
   1.690 +	void ToneFinished(TInt aError);
   1.691 +private:
   1.692 +	TInt iDuration;
   1.693 +	TInt iFrequencyTone1;
   1.694 +	TInt iExVolume;
   1.695 +	TTime iStartTime;
   1.696 +	TTime iEndTime;
   1.697 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.698 +	};
   1.699 +
   1.700 +/*
   1.701 + *========================================================================================================
   1.702 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0031
   1.703 + */
   1.704 +class RA3FDevSoundToneVolumeWhilePlayingTest : public RA3FDevSoundTestBase
   1.705 +	{
   1.706 +public:
   1.707 +	static RA3FDevSoundToneVolumeWhilePlayingTest* NewL(const TDesC& aTestName);
   1.708 +private:
   1.709 +	RA3FDevSoundToneVolumeWhilePlayingTest(const TDesC& aTestName);
   1.710 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.711 +	void DoKickoffTestL();
   1.712 +	void DoTimerCallback();
   1.713 +	void ToneFinished(TInt aError);
   1.714 +
   1.715 +private:
   1.716 +	TInt iDuration;
   1.717 +	TInt iFrequencyTone1;
   1.718 +	TInt iExVolume;
   1.719 +	TTime iStartTime;
   1.720 +	TTime iEndTime;
   1.721 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.722 +	};
   1.723 +
   1.724 +/*
   1.725 + *========================================================================================================
   1.726 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0032
   1.727 + */
   1.728 +class RA3FDevSoundToneQueryCapsWhilePausePlayingTest : public RA3FDevSoundTestBase
   1.729 +	{
   1.730 +public:
   1.731 +	static RA3FDevSoundToneQueryCapsWhilePausePlayingTest* NewL(const TDesC& aTestName);
   1.732 +private:
   1.733 +	RA3FDevSoundToneQueryCapsWhilePausePlayingTest(const TDesC& aTestName);
   1.734 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.735 +	void DoKickoffTestL();
   1.736 +	void DoTimerCallback();
   1.737 +	void ToneFinished(TInt aError);
   1.738 +	
   1.739 +private:
   1.740 +	TInt iDuration;
   1.741 +	TInt iFrequencyTone1;
   1.742 +	TInt iExCapRate;
   1.743 +	TInt iExCapChannels;
   1.744 +	TBool iTimeToEnterPauseElapsed;
   1.745 +	};
   1.746 +
   1.747 +/*
   1.748 + *========================================================================================================
   1.749 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0033
   1.750 + */
   1.751 +class RA3FDevSoundToneConfigWhilePausePlayingTest : public RA3FDevSoundTestBase
   1.752 +	{
   1.753 +public:
   1.754 +	static RA3FDevSoundToneConfigWhilePausePlayingTest* NewL(const TDesC& aTestName);
   1.755 +private:
   1.756 +	RA3FDevSoundToneConfigWhilePausePlayingTest(const TDesC& aTestName);
   1.757 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.758 +	void DoKickoffTestL();
   1.759 +	void DoTimerCallback();
   1.760 +	void ToneFinished(TInt aError);
   1.761 +	
   1.762 +private:
   1.763 +	TInt iDuration;
   1.764 +	TInt iFrequencyTone1;
   1.765 +	TBool iTimeToEnterPauseElapsed;
   1.766 +	TInt iExCapRate;
   1.767 +	TInt iExCapChannels;
   1.768 +	TMMFSampleRate iExSampleRate;
   1.769 +	};
   1.770 +
   1.771 +/*
   1.772 + *========================================================================================================
   1.773 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0034
   1.774 + */
   1.775 +class RA3FDevSoundToneMaxVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase
   1.776 +	{
   1.777 +public:
   1.778 +	static RA3FDevSoundToneMaxVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName);
   1.779 +private:
   1.780 +	RA3FDevSoundToneMaxVolumeWhilePausePlayingTest(const TDesC& aTestName);
   1.781 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.782 +	void DoKickoffTestL();
   1.783 +	void DoTimerCallback();
   1.784 +	void ToneFinished(TInt aError);
   1.785 +	
   1.786 +private:
   1.787 +	TInt iDuration;
   1.788 +	TInt iFrequencyTone1;
   1.789 +	TInt iExVolume;
   1.790 +	TBool iTimeToEnterPauseElapsed;
   1.791 +	};
   1.792 +
   1.793 +/*
   1.794 + *========================================================================================================
   1.795 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0035
   1.796 + */
   1.797 +class RA3FDevSoundToneVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase
   1.798 +	{
   1.799 +public:
   1.800 +	static RA3FDevSoundToneVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName);
   1.801 +private:
   1.802 +	RA3FDevSoundToneVolumeWhilePausePlayingTest(const TDesC& aTestName);
   1.803 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.804 +	void DoKickoffTestL();
   1.805 +	void DoTimerCallback();
   1.806 +	void ToneFinished(TInt aError);
   1.807 +
   1.808 +private:
   1.809 +	TInt iDuration;
   1.810 +	TInt iFrequencyTone1;
   1.811 +	TInt iExVolume;
   1.812 +	TBool iTimeToEnterPauseElapsed;
   1.813 +	};
   1.814 +
   1.815 +/*
   1.816 + *========================================================================================================
   1.817 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0036
   1.818 + */
   1.819 +class RA3FDevSoundTonePlayToneOnceTest : public RA3FDevSoundTestBase
   1.820 +	{
   1.821 +public:
   1.822 +	static RA3FDevSoundTonePlayToneOnceTest* NewL(const TDesC& aTestName);
   1.823 +private:
   1.824 +	RA3FDevSoundTonePlayToneOnceTest(const TDesC& aTestName);
   1.825 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.826 +	void DoKickoffTestL();
   1.827 +	void ToneFinished(TInt aError);
   1.828 +private:
   1.829 +	TInt iDuration;
   1.830 +	TInt iFrequencyTone1;
   1.831 +	TTime iStartTime;
   1.832 +	TTime iEndTime;
   1.833 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.834 +	};
   1.835 +
   1.836 +/*
   1.837 + *========================================================================================================
   1.838 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0037
   1.839 + */
   1.840 +class RA3FDevSoundTonePlayDualToneTest : public RA3FDevSoundTestBase
   1.841 +	{
   1.842 +public:
   1.843 +	static RA3FDevSoundTonePlayDualToneTest* NewL(const TDesC& aTestName);
   1.844 +private:
   1.845 +	RA3FDevSoundTonePlayDualToneTest(const TDesC& aTestName);
   1.846 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.847 +	void DoKickoffTestL();
   1.848 +	void ToneFinished(TInt aError);
   1.849 +private:
   1.850 +	TInt iDuration;
   1.851 +	TInt iFrequencyTone1;
   1.852 +	TInt iFrequencyTone2;
   1.853 +	TTime iStartTime;
   1.854 +	TTime iEndTime;
   1.855 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.856 +	};
   1.857 +
   1.858 +/*
   1.859 + *========================================================================================================
   1.860 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0038
   1.861 + */
   1.862 +class RA3FDevSoundTonePlayDTMFToneTest : public RA3FDevSoundTestBase
   1.863 +	{
   1.864 +public:
   1.865 +	static RA3FDevSoundTonePlayDTMFToneTest* NewL(const TDesC& aTestName);
   1.866 +private:
   1.867 +	RA3FDevSoundTonePlayDTMFToneTest(const TDesC& aTestName);
   1.868 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.869 +	void DoKickoffTestL();
   1.870 +	void ToneFinished(TInt aError);
   1.871 +private:
   1.872 +	TBuf16<KMaxStringLength> iDTMFString;
   1.873 +	TBool iToneStopped;
   1.874 +	TTime iStartTime;
   1.875 +	TTime iEndTime;
   1.876 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.877 +	TInt iDTMFPauses;
   1.878 +	TInt iDTMFTones;
   1.879 +	};
   1.880 +
   1.881 +/*
   1.882 + *========================================================================================================
   1.883 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0039
   1.884 + */
   1.885 +class RA3FDevSoundTonePlayToneSequenceTest : public RA3FDevSoundTestBase
   1.886 +	{
   1.887 +public:
   1.888 +	static RA3FDevSoundTonePlayToneSequenceTest* NewL(const TDesC& aTestName);
   1.889 +private:
   1.890 +	RA3FDevSoundTonePlayToneSequenceTest(const TDesC& aTestName);
   1.891 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.892 +	void DoKickoffTestL();
   1.893 +	};
   1.894 +
   1.895 +/*
   1.896 + *========================================================================================================
   1.897 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0040
   1.898 + */
   1.899 +class RA3FDevSoundToneNewToneRequestWhilePlayingTest : public RA3FDevSoundTestBase
   1.900 +	{
   1.901 +public:
   1.902 +	static RA3FDevSoundToneNewToneRequestWhilePlayingTest* NewL(const TDesC& aTestName);
   1.903 +
   1.904 +private:
   1.905 +	RA3FDevSoundToneNewToneRequestWhilePlayingTest(const TDesC& aTestName);
   1.906 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.907 +	void DoKickoffTestL();
   1.908 +	void DoTimerCallback();
   1.909 +	void ToneFinished(TInt aError);
   1.910 +	
   1.911 +private:
   1.912 +	TInt iDuration;
   1.913 +	TInt iFrequencyTone1;
   1.914 +	TTime iStartTime;
   1.915 +	TTime iEndTime;
   1.916 +	TTimeIntervalMicroSeconds iPlayToneTime;
   1.917 +	};
   1.918 +
   1.919 +/*
   1.920 + *========================================================================================================
   1.921 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0041
   1.922 + */
   1.923 +class RA3FDevSoundTonePreemptionTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver
   1.924 +	{
   1.925 +public:
   1.926 +	static RA3FDevSoundTonePreemptionTest* NewL(const TDesC& aTestName);
   1.927 +
   1.928 +private:
   1.929 +	RA3FDevSoundTonePreemptionTest(const TDesC& aTestName);
   1.930 +	void ClientInitializeCompleteCallback(TInt aError);
   1.931 +	void ClientToneFinishedCallback(TInt aError);
   1.932 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.933 +	void DoKickoffTestL();
   1.934 +	void DoTimerCallback();
   1.935 +	void ToneFinished(TInt aError);
   1.936 +	
   1.937 +private:
   1.938 +	TInt iDuration;
   1.939 +	TInt iFrequencyTone1;
   1.940 +	};
   1.941 +
   1.942 +/*
   1.943 + *========================================================================================================
   1.944 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0042
   1.945 + */
   1.946 +class RA3FDevSoundToneRejectionTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver
   1.947 +	{
   1.948 +public:
   1.949 +	static RA3FDevSoundToneRejectionTest* NewL(const TDesC& aTestName);
   1.950 +
   1.951 +private:
   1.952 +	RA3FDevSoundToneRejectionTest(const TDesC& aTestName);
   1.953 +	void ClientInitializeCompleteCallback(TInt aError);
   1.954 +	void ClientToneFinishedCallback(TInt aError);
   1.955 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.956 +	void DoKickoffTestL();
   1.957 +	void DoTimerCallback();
   1.958 +	void ToneFinished(TInt aError);
   1.959 +	
   1.960 +private:
   1.961 +	TInt iDuration;
   1.962 +	TInt iFrequencyTone1;
   1.963 +	};
   1.964 +
   1.965 +/*
   1.966 + *========================================================================================================
   1.967 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0043
   1.968 + */
   1.969 +class RA3FDevSoundTonePlayToneOnceAndStopTest : public RA3FDevSoundTestBase
   1.970 +	{
   1.971 +public:
   1.972 +	static RA3FDevSoundTonePlayToneOnceAndStopTest* NewL(const TDesC& aTestName);
   1.973 +private:
   1.974 +	RA3FDevSoundTonePlayToneOnceAndStopTest(const TDesC& aTestName);
   1.975 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.976 +	void DoKickoffTestL();
   1.977 +	void DoTimerCallback();
   1.978 +	void ToneFinished(TInt aError);
   1.979 +	
   1.980 +private:
   1.981 +	TInt iDuration;
   1.982 +	TInt iFrequencyTone1;
   1.983 +	TBool iToneStopped;
   1.984 +	};
   1.985 +
   1.986 +/*
   1.987 + *========================================================================================================
   1.988 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0044
   1.989 + */
   1.990 +class RA3FDevSoundTonePlayDualToneOnceAndStopTest : public RA3FDevSoundTestBase
   1.991 +	{
   1.992 +public:
   1.993 +	static RA3FDevSoundTonePlayDualToneOnceAndStopTest* NewL(const TDesC& aTestName);
   1.994 +private:
   1.995 +	RA3FDevSoundTonePlayDualToneOnceAndStopTest(const TDesC& aTestName);
   1.996 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
   1.997 +	void DoKickoffTestL();
   1.998 +	void DoTimerCallback();
   1.999 +	void ToneFinished(TInt aError);
  1.1000 +	
  1.1001 +private:
  1.1002 +	TInt iDuration;
  1.1003 +	TInt iFrequencyTone1;
  1.1004 +	TInt iFrequencyTone2;
  1.1005 +	TBool iToneStopped;
  1.1006 +	};
  1.1007 +	
  1.1008 +/*
  1.1009 + *========================================================================================================
  1.1010 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0045
  1.1011 + */
  1.1012 +class RA3FDevSoundTonePlayDTMFStringOnceAndStopTest : public RA3FDevSoundTestBase
  1.1013 +	{
  1.1014 +public:
  1.1015 +	static RA3FDevSoundTonePlayDTMFStringOnceAndStopTest* NewL(const TDesC& aTestName);
  1.1016 +private:
  1.1017 +	RA3FDevSoundTonePlayDTMFStringOnceAndStopTest(const TDesC& aTestName);
  1.1018 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1019 +	void DoKickoffTestL();
  1.1020 +	void DoTimerCallback();
  1.1021 +	void ToneFinished(TInt aError);
  1.1022 +	
  1.1023 +private:
  1.1024 +	TBuf16<KMaxStringLength> iDTMFString;
  1.1025 +	TBool iToneStopped;
  1.1026 +	};
  1.1027 +
  1.1028 +/*
  1.1029 + *========================================================================================================
  1.1030 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0046
  1.1031 + */
  1.1032 +class RA3FDevSoundTonePlayToneSequenceOnceAndStopTest : public RA3FDevSoundTestBase
  1.1033 +	{
  1.1034 +public:
  1.1035 +	static RA3FDevSoundTonePlayToneSequenceOnceAndStopTest* NewL(const TDesC& aTestName);
  1.1036 +private:
  1.1037 +	RA3FDevSoundTonePlayToneSequenceOnceAndStopTest(const TDesC& aTestName);
  1.1038 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1039 +	void DoKickoffTestL();
  1.1040 +	void DoTimerCallback();
  1.1041 +	void ToneFinished(TInt aError);
  1.1042 +private:
  1.1043 +	TBool iToneStopped;
  1.1044 +	};
  1.1045 +
  1.1046 +/*
  1.1047 + *========================================================================================================
  1.1048 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0047
  1.1049 + */
  1.1050 +class RA3FDevSoundTonePlayToneOncePauseTest : public RA3FDevSoundTestBase
  1.1051 +	{
  1.1052 +public:
  1.1053 +	static RA3FDevSoundTonePlayToneOncePauseTest* NewL(const TDesC& aTestName);
  1.1054 +private:
  1.1055 +	RA3FDevSoundTonePlayToneOncePauseTest(const TDesC& aTestName);
  1.1056 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1057 +	void DoKickoffTestL();
  1.1058 +	void DoTimerCallback();
  1.1059 +	void ToneFinished(TInt aError);
  1.1060 +	
  1.1061 +private:
  1.1062 +	TInt iDuration;
  1.1063 +	TInt iFrequencyTone1;
  1.1064 +	TBool iPaused;
  1.1065 +	TInt iSamplesPlayedPaused;
  1.1066 +	
  1.1067 +	};
  1.1068 +
  1.1069 +/*
  1.1070 + *========================================================================================================
  1.1071 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0048
  1.1072 + */
  1.1073 +class RA3FDevSoundTonePlayDualToneOncePauseTest : public RA3FDevSoundTestBase
  1.1074 +	{
  1.1075 +public:
  1.1076 +	static RA3FDevSoundTonePlayDualToneOncePauseTest* NewL(const TDesC& aTestName);
  1.1077 +private:
  1.1078 +	RA3FDevSoundTonePlayDualToneOncePauseTest(const TDesC& aTestName);
  1.1079 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1080 +	void DoKickoffTestL();
  1.1081 +	void DoTimerCallback();
  1.1082 +	void ToneFinished(TInt aError);
  1.1083 +	
  1.1084 +private:
  1.1085 +	TInt iDuration;
  1.1086 +	TInt iFrequencyTone1;
  1.1087 +	TInt iFrequencyTone2;
  1.1088 +	TBool iPaused;
  1.1089 +	TInt iSamplesPlayedPaused;
  1.1090 +	};
  1.1091 +
  1.1092 +/*
  1.1093 + *========================================================================================================
  1.1094 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0049
  1.1095 + */
  1.1096 +class RA3FDevSoundTonePlayDTMFStringOncePauseTest : public RA3FDevSoundTestBase
  1.1097 +	{
  1.1098 +public:
  1.1099 +	static RA3FDevSoundTonePlayDTMFStringOncePauseTest* NewL(const TDesC& aTestName);
  1.1100 +private:
  1.1101 +	RA3FDevSoundTonePlayDTMFStringOncePauseTest(const TDesC& aTestName);
  1.1102 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1103 +	void DoKickoffTestL();
  1.1104 +	void DoTimerCallback();
  1.1105 +	void ToneFinished(TInt aError);
  1.1106 +
  1.1107 +private:
  1.1108 +	TBuf16<KMaxStringLength> iDTMFString;
  1.1109 +	TBool iPaused;
  1.1110 +	TInt iSamplesPlayedPaused;
  1.1111 +	TInt iDTMFPauses;
  1.1112 +	TInt iDTMFTones;
  1.1113 +	};
  1.1114 +
  1.1115 +/*
  1.1116 + *========================================================================================================
  1.1117 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0050
  1.1118 + */
  1.1119 +class RA3FDevSoundTonePlayToneSequenceOncePauseTest : public RA3FDevSoundTestBase
  1.1120 +	{
  1.1121 +public:
  1.1122 +	static RA3FDevSoundTonePlayToneSequenceOncePauseTest* NewL(const TDesC& aTestName);
  1.1123 +private:
  1.1124 +	RA3FDevSoundTonePlayToneSequenceOncePauseTest(const TDesC& aTestName);
  1.1125 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1126 +	void DoKickoffTestL();
  1.1127 +	void DoTimerCallback();
  1.1128 +	void ToneFinished(TInt aError);
  1.1129 +private:
  1.1130 +	TBool iPaused;
  1.1131 +	TInt iSamplesPlayedPaused;
  1.1132 +	};
  1.1133 +
  1.1134 +/*
  1.1135 + *========================================================================================================
  1.1136 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0051
  1.1137 + */
  1.1138 +class RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
  1.1139 +	{
  1.1140 +public:
  1.1141 +	static RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
  1.1142 +private:
  1.1143 +	RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest(const TDesC& aTestName);
  1.1144 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1145 +	void DoKickoffTestL();
  1.1146 +	
  1.1147 +private:
  1.1148 +	TInt iDuration;
  1.1149 +	TInt iFrequencyTone1;
  1.1150 +	};
  1.1151 +
  1.1152 +/*
  1.1153 + *========================================================================================================
  1.1154 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0052
  1.1155 + */
  1.1156 +class RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
  1.1157 +	{
  1.1158 +public:
  1.1159 +	static RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
  1.1160 +private:
  1.1161 +	RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest(const TDesC& aTestName);
  1.1162 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1163 +	void DoKickoffTestL();
  1.1164 +		
  1.1165 +private:
  1.1166 +	TInt iDuration;
  1.1167 +	TInt iFrequencyTone1;
  1.1168 +	TInt iFrequencyTone2;
  1.1169 +	};
  1.1170 +
  1.1171 +/*
  1.1172 + *========================================================================================================
  1.1173 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0053
  1.1174 + */
  1.1175 +class RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
  1.1176 +	{
  1.1177 +public:
  1.1178 +	static RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
  1.1179 +private:
  1.1180 +	RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest(const TDesC& aTestName);
  1.1181 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1182 +	void DoKickoffTestL();
  1.1183 +
  1.1184 +private:
  1.1185 +	TBuf16<KMaxStringLength> iDTMFString;
  1.1186 +	};
  1.1187 +
  1.1188 +/*
  1.1189 + *========================================================================================================
  1.1190 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0054
  1.1191 + */
  1.1192 +class RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
  1.1193 +	{
  1.1194 +public:
  1.1195 +	static RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
  1.1196 +private:
  1.1197 +	RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest(const TDesC& aTestName);
  1.1198 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1199 +	void DoKickoffTestL();
  1.1200 +	};
  1.1201 +
  1.1202 +/*
  1.1203 + *========================================================================================================
  1.1204 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0055
  1.1205 + */
  1.1206 +class RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
  1.1207 +	{
  1.1208 +public:
  1.1209 +	static RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
  1.1210 +private:
  1.1211 +	RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest(const TDesC& aTestName);
  1.1212 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1213 +	void DoKickoffTestL();
  1.1214 +	
  1.1215 +private:
  1.1216 +	TInt iDuration;
  1.1217 +	TInt iFrequencyTone1;
  1.1218 +	};
  1.1219 +
  1.1220 +/*
  1.1221 + *========================================================================================================
  1.1222 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0056
  1.1223 + */
  1.1224 +class RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
  1.1225 +	{
  1.1226 +public:
  1.1227 +	static RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
  1.1228 +private:
  1.1229 +	RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest(const TDesC& aTestName);
  1.1230 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1231 +	void DoKickoffTestL();
  1.1232 +		
  1.1233 +private:
  1.1234 +	TInt iDuration;
  1.1235 +	TInt iFrequencyTone1;
  1.1236 +	TInt iFrequencyTone2;
  1.1237 +	};
  1.1238 +
  1.1239 +/*
  1.1240 + *========================================================================================================
  1.1241 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0057
  1.1242 + */
  1.1243 +class RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
  1.1244 +	{
  1.1245 +public:
  1.1246 +	static RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
  1.1247 +private:
  1.1248 +	RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest(const TDesC& aTestName);
  1.1249 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1250 +	void DoKickoffTestL();
  1.1251 +
  1.1252 +private:
  1.1253 +	TBuf16<KMaxStringLength> iDTMFString;
  1.1254 +	};
  1.1255 +
  1.1256 +/*
  1.1257 + *========================================================================================================
  1.1258 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0058
  1.1259 + */
  1.1260 +class RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
  1.1261 +	{
  1.1262 +public:
  1.1263 +	static RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
  1.1264 +private:
  1.1265 +	RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest(const TDesC& aTestName);
  1.1266 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1267 +	void DoKickoffTestL();
  1.1268 +	};
  1.1269 +
  1.1270 +/*
  1.1271 + *========================================================================================================
  1.1272 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0059
  1.1273 + */
  1.1274 +class RA3FDevSoundTonePlayToneWithoutCallingInitializeTest : public RA3FDevSoundTestBase
  1.1275 +	{
  1.1276 +public:
  1.1277 +	static RA3FDevSoundTonePlayToneWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
  1.1278 +private:
  1.1279 +	RA3FDevSoundTonePlayToneWithoutCallingInitializeTest(const TDesC& aTestName);
  1.1280 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1281 +	void DoKickoffTestL();
  1.1282 +
  1.1283 +private:
  1.1284 +	TInt iDuration;
  1.1285 +	TInt iFrequencyTone1;
  1.1286 +	};
  1.1287 +	
  1.1288 +/*
  1.1289 + *========================================================================================================
  1.1290 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0060
  1.1291 + */
  1.1292 +class RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest : public RA3FDevSoundTestBase
  1.1293 +	{
  1.1294 +public:
  1.1295 +	static RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
  1.1296 +private:
  1.1297 +	RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest(const TDesC& aTestName);
  1.1298 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1299 +	void DoKickoffTestL();
  1.1300 +	
  1.1301 +private:
  1.1302 +	TInt iDuration;
  1.1303 +	TInt iFrequencyTone1;
  1.1304 +	TInt iFrequencyTone2;
  1.1305 +	TBuf16<KMaxStringLength> iDTMFString;
  1.1306 +	};
  1.1307 +	
  1.1308 +/*
  1.1309 + *========================================================================================================
  1.1310 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0061
  1.1311 + */
  1.1312 +class RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest : public RA3FDevSoundTestBase
  1.1313 +	{
  1.1314 +public:
  1.1315 +	static RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
  1.1316 +private:
  1.1317 +	RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest(const TDesC& aTestName);
  1.1318 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1319 +	void DoKickoffTestL();
  1.1320 +	
  1.1321 +private:
  1.1322 +	TBuf16<KMaxStringLength> iDTMFString;
  1.1323 +	};
  1.1324 +
  1.1325 +/*
  1.1326 + *========================================================================================================
  1.1327 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0062
  1.1328 + */
  1.1329 +class RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest : public RA3FDevSoundTestBase
  1.1330 +	{
  1.1331 +public:
  1.1332 +	static RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
  1.1333 +private:
  1.1334 +	RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest(const TDesC& aTestName);
  1.1335 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1336 +	void DoKickoffTestL();
  1.1337 +	};
  1.1338 +
  1.1339 +/*
  1.1340 + *========================================================================================================
  1.1341 + * MM-A3F-DEVSOUND-CHRTZ-TONE-0063
  1.1342 + */
  1.1343 +class RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest : public RA3FDevSoundTestBase
  1.1344 +	{
  1.1345 +public:
  1.1346 +	static RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest* NewL(const TDesC& aTestName);
  1.1347 +private:
  1.1348 +	RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest(const TDesC& aTestName);
  1.1349 +	void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
  1.1350 +	void DoKickoffTestL();
  1.1351 +	void ToneFinished(TInt aError);
  1.1352 +	
  1.1353 +private:
  1.1354 +	TBuf8<KMaxStringLength> iInvalidToneSequence;
  1.1355 +	};
  1.1356 +
  1.1357 +
  1.1358 +#endif //CHAR_A3F_DEVSOUND_TONETEST_H
  1.1359 +
  1.1360 +