Update contrib.
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #ifndef CHAR_A3F_DEVSOUND_TONETEST_H
17 #define CHAR_A3F_DEVSOUND_TONETEST_H
20 #include "char_a3f_devsound_testbase.h"
21 #include "char_a3f_devsound_toneclient.h"
22 #include "char_a3f_devsound_playrecordclients.h"
25 *========================================================================================================
26 * MM-A3F-DEVSOUND-CHRTZ-TONE-0001
28 class RA3FDevSoundToneSetConfigTest : public RA3FDevSoundTestBase
31 static RA3FDevSoundToneSetConfigTest* NewL(const TDesC& aTestName);
34 RA3FDevSoundToneSetConfigTest(const TDesC& aTestName);
35 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
36 void DoKickoffTestL();
44 *========================================================================================================
45 * MM-A3F-DEVSOUND-CHRTZ-TONE-0002
47 class RA3FDevSoundToneSetPrioritySettingsTest : public RA3FDevSoundTestBase
50 static RA3FDevSoundToneSetPrioritySettingsTest* NewL(const TDesC& aTestName);
53 RA3FDevSoundToneSetPrioritySettingsTest(const TDesC& aTestName);
54 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
55 void DoKickoffTestL();
62 *========================================================================================================
63 * MM-A3F-DEVSOUND-CHRTZ-TONE-0003
65 class RA3FDevSoundToneSetVolumeTest : public RA3FDevSoundTestBase
68 static RA3FDevSoundToneSetVolumeTest* NewL(const TDesC& aTestName);
71 RA3FDevSoundToneSetVolumeTest(const TDesC& aTestName);
72 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
73 void DoKickoffTestL();
80 *========================================================================================================
81 * MM-A3F-DEVSOUND-CHRTZ-TONE-0004
83 class RA3FDevSoundToneVolumeRampTest : public RA3FDevSoundTestBase
86 static RA3FDevSoundToneVolumeRampTest* NewL(const TDesC& aTestName);
88 RA3FDevSoundToneVolumeRampTest(const TDesC& aTestName);
89 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
90 void DoKickoffTestL();
91 void ToneFinished(TInt aError);
98 TTimeIntervalMicroSeconds iPlayToneTime;
102 *========================================================================================================
103 * MM-A3F-DEVSOUND-CHRTZ-TONE-0005
105 class RA3FDevSoundToneSetToneRepeatsTest : public RA3FDevSoundTestBase
108 static RA3FDevSoundToneSetToneRepeatsTest* NewL(const TDesC& aTestName);
110 RA3FDevSoundToneSetToneRepeatsTest(const TDesC& aTestName);
111 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
112 void DoKickoffTestL();
113 void ToneFinished(TInt aError);
116 TInt iFrequencyTone1;
117 TInt iRepeatTrailingSilence;
121 TTimeIntervalMicroSeconds iPlayToneTime;
125 *========================================================================================================
126 * MM-A3F-DEVSOUND-CHRTZ-TONE-0006
128 class RA3FDevSoundToneSetDTMFLengthsTest : public RA3FDevSoundTestBase
131 static RA3FDevSoundToneSetDTMFLengthsTest* NewL(const TDesC& aTestName);
133 RA3FDevSoundToneSetDTMFLengthsTest(const TDesC& aTestName);
134 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
135 void DoKickoffTestL();
136 void ToneFinished(TInt aError);
139 TBool iFirstToneFinishedCall;
143 TBuf16<KMaxStringLength> iDTMFString;
146 TTimeIntervalMicroSeconds iPlayToneTime;
152 *========================================================================================================
153 * MM-A3F-DEVSOUND-CHRTZ-TONE-0007
155 class RA3FDevSoundToneSetVolumeWhilePlayingTest : public RA3FDevSoundTestBase
158 static RA3FDevSoundToneSetVolumeWhilePlayingTest* NewL(const TDesC& aTestName);
160 RA3FDevSoundToneSetVolumeWhilePlayingTest(const TDesC& aTestName);
161 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
162 void DoKickoffTestL();
163 void DoTimerCallback();
164 void ToneFinished(TInt aError);
168 TInt iFrequencyTone1;
171 TTimeIntervalMicroSeconds iPlayToneTime;
175 *========================================================================================================
176 * MM-A3F-DEVSOUND-CHRTZ-TONE-0008
178 class RA3FDevSoundToneSetPlayBalanceWhilePlayingTest : public RA3FDevSoundTestBase
181 static RA3FDevSoundToneSetPlayBalanceWhilePlayingTest* NewL(const TDesC& aTestName);
183 RA3FDevSoundToneSetPlayBalanceWhilePlayingTest(const TDesC& aTestName);
184 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
185 void DoKickoffTestL();
186 void DoTimerCallback();
187 void ToneFinished(TInt aError);
192 TInt iFrequencyTone1;
193 TInt iLSpeakerBalance;
194 TInt iRSpeakerBalance;
197 TTimeIntervalMicroSeconds iPlayToneTime;
201 *========================================================================================================
202 * MM-A3F-DEVSOUND-CHRTZ-TONE-0009
204 class RA3FDevSoundToneSetVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase
207 static RA3FDevSoundToneSetVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName);
209 RA3FDevSoundToneSetVolumeWhilePausePlayingTest(const TDesC& aTestName);
210 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
211 void DoKickoffTestL();
212 void DoTimerCallback();
213 void ToneFinished(TInt aError);
217 TInt iFrequencyTone1;
218 TBool iTimeToEnterPauseElapsed;
222 *========================================================================================================
223 * MM-A3F-DEVSOUND-CHRTZ-TONE-0010
225 class RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest : public RA3FDevSoundTestBase
228 static RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest* NewL(const TDesC& aTestName);
230 RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest(const TDesC& aTestName);
231 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
232 void DoKickoffTestL();
236 TBool iReinitialized;
240 *========================================================================================================
241 * MM-A3F-DEVSOUND-CHRTZ-TONE-0011
243 class RA3FDevSoundToneSetVolumeRampWhilePlayingTest : public RA3FDevSoundTestBase
246 static RA3FDevSoundToneSetVolumeRampWhilePlayingTest* NewL(const TDesC& aTestName);
248 RA3FDevSoundToneSetVolumeRampWhilePlayingTest(const TDesC& aTestName);
249 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
250 void DoKickoffTestL();
251 void DoTimerCallback();
252 void ToneFinished(TInt aError);
257 TInt iFrequencyTone1;
259 TBool iTonePlayedTwice;
262 TTimeIntervalMicroSeconds iPlayToneTime;
263 TInt iTimesToneFinishedCalled;
267 *========================================================================================================
268 * MM-A3F-DEVSOUND-CHRTZ-TONE-0012
270 class RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest : public RA3FDevSoundTestBase
273 static RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest* NewL(const TDesC& aTestName);
275 RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest(const TDesC& aTestName);
276 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
277 void DoKickoffTestL();
278 void DoTimerCallback();
279 void ToneFinished(TInt aError);
283 TInt iFrequencyTone1;
284 TInt iRepeatTrailingSilence;
288 TTimeIntervalMicroSeconds iPlayToneTime;
292 *========================================================================================================
293 * MM-A3F-DEVSOUND-CHRTZ-TONE-0013
295 class RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest : public RA3FDevSoundTestBase
298 static RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest* NewL(const TDesC& aTestName);
300 RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest(const TDesC& aTestName);
301 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
302 void DoKickoffTestL();
303 void DoTimerCallback();
304 void ToneFinished(TInt aError);
307 TBool iFirstToneFinishedCall;
311 TBuf16<KMaxStringLength> iDTMFString;
314 TTimeIntervalMicroSeconds iPlayToneTime;
317 TInt iTotalExpectedPlayToneTime;
321 *========================================================================================================
322 * MM-A3F-DEVSOUND-CHRTZ-TONE-0014
324 class RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest : public RA3FDevSoundTestBase
327 static RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest* NewL(const TDesC& aTestName);
329 RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest(const TDesC& aTestName);
330 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
331 void DoKickoffTestL();
332 void ToneFinished(TInt aError);
336 TInt iFrequencyTone1;
337 TInt iRepeatTrailingSilence;
341 TTimeIntervalMicroSeconds iPlayToneTime;
342 TBool iInitializedToPlayTones;
346 *========================================================================================================
347 * MM-A3F-DEVSOUND-CHRTZ-TONE-0015
349 class RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest : public RA3FDevSoundTestBase
352 static RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest* NewL(const TDesC& aTestName);
355 RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest(const TDesC& aTestName);
356 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
357 void DoKickoffTestL();
358 void ToneFinished(TInt aError);
361 TBool iInitializedToPlayTones;
362 TBuf16<KMaxStringLength> iDTMFString;
368 TTimeIntervalMicroSeconds iPlayToneTime;
374 *========================================================================================================
375 * MM-A3F-DEVSOUND-CHRTZ-TONE-0016
377 class RA3FDevSoundToneSetConfigWhilePlayingTest : public RA3FDevSoundTestBase
380 static RA3FDevSoundToneSetConfigWhilePlayingTest* NewL(const TDesC& aTestName);
382 RA3FDevSoundToneSetConfigWhilePlayingTest(const TDesC& aTestName);
383 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
384 void DoKickoffTestL();
385 void DoTimerCallback();
390 TInt iFrequencyTone1;
396 *========================================================================================================
397 * MM-A3F-DEVSOUND-CHRTZ-TONE-0017
399 class RA3FDevSoundToneSetPriorityWhilePlayingTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver
402 static RA3FDevSoundToneSetPriorityWhilePlayingTest* NewL(const TDesC& aTestName);
404 RA3FDevSoundToneSetPriorityWhilePlayingTest(const TDesC& aTestName);
405 void ClientInitializeCompleteCallback(TInt aError);
406 void ClientToneFinishedCallback(TInt aError);
407 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
408 void DoKickoffTestL();
409 void DoTimerCallback();
410 void ToneFinished(TInt aError);
414 TInt iFrequencyTone1;
418 *========================================================================================================
419 * MM-A3F-DEVSOUND-CHRTZ-TONE-0018
421 class RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue : public RA3FDevSoundTestBase
424 static RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue* NewL(const TDesC& aTestName);
427 RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue(const TDesC& aTestName);
428 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
429 void DoKickoffTestL();
437 *========================================================================================================
438 * MM-A3F-DEVSOUND-CHRTZ-TONE-0019
440 class RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest : public RA3FDevSoundTestBase
443 static RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest* NewL(const TDesC& aTestName);
446 RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest(const TDesC& aTestName);
447 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
448 void DoKickoffTestL();
456 *========================================================================================================
457 * MM-A3F-DEVSOUND-CHRTZ-TONE-0020
459 class RA3FDevSoundToneSetDTMFLengthsToNegativeTest : public RA3FDevSoundTestBase
462 static RA3FDevSoundToneSetDTMFLengthsToNegativeTest* NewL(const TDesC& aTestName);
464 RA3FDevSoundToneSetDTMFLengthsToNegativeTest(const TDesC& aTestName);
465 void ToneFinished(TInt aError);
466 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
467 void DoKickoffTestL();
473 TBuf16<KMaxStringLength> iDTMFString;
476 TTimeIntervalMicroSeconds iPlayToneTime;
480 *========================================================================================================
481 * MM-A3F-DEVSOUND-CHRTZ-TONE-0021
483 class RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest : public RA3FDevSoundTestBase
486 static RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest* NewL(const TDesC& aTestName);
488 RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest(const TDesC& aTestName);
489 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
490 void DoKickoffTestL();
491 void DoTimerCallback();
492 void ToneFinished(TInt aError);
495 TBool iFirstToneFinishedCall;
499 TBuf16<KMaxStringLength> iDTMFString;
502 TTimeIntervalMicroSeconds iPlayToneTime;
506 *========================================================================================================
507 * MM-A3F-DEVSOUND-CHRTZ-TONE-0022
509 class RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest : public RA3FDevSoundTestBase
512 static RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest* NewL(const TDesC& aTestName);
514 RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest(const TDesC& aTestName);
515 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
516 void DoKickoffTestL();
517 void ToneFinished(TInt aError);
521 TInt iFrequencyTone1;
522 TInt iRepeatTrailingSilence;
526 TTimeIntervalMicroSeconds iPlayToneTime;
527 TBool iInitializedToPlayTones;
531 *========================================================================================================
532 * MM-A3F-DEVSOUND-CHRTZ-TONE-0023
534 class RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest : public RA3FDevSoundTestBase
537 static RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest* NewL(const TDesC& aTestName);
539 RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest(const TDesC& aTestName);
540 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
541 void DoKickoffTestL();
542 void ToneFinished(TInt aError);
543 void DoTimerCallback();
547 TInt iFrequencyTone1;
548 TInt iRepeatTrailingSilence;
552 TTimeIntervalMicroSeconds iPlayToneTime;
553 TBool iInitializedToPlayTones;
557 *========================================================================================================
558 * MM-A3F-DEVSOUND-CHRTZ-TONE-0024
560 class RA3FDevSoundToneCapsTest : public RA3FDevSoundTestBase
563 static RA3FDevSoundToneCapsTest* NewL(const TDesC& aTestName);
565 RA3FDevSoundToneCapsTest(const TDesC& aTestName);
566 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
567 void DoKickoffTestL();
575 *========================================================================================================
576 * MM-A3F-DEVSOUND-CHRTZ-TONE-0025
578 class RA3FDevSoundToneConfigDefaultTest : public RA3FDevSoundTestBase
581 static RA3FDevSoundToneConfigDefaultTest* NewL(const TDesC& aTestName);
583 RA3FDevSoundToneConfigDefaultTest(const TDesC& aTestName);
584 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
585 void DoKickoffTestL();
588 TMMFSampleRate iExSampleRate;
594 *========================================================================================================
595 * MM-A3F-DEVSOUND-CHRTZ-TONE-0026
597 class RA3FDevSoundToneMaxVolumeTest : public RA3FDevSoundTestBase
600 static RA3FDevSoundToneMaxVolumeTest* NewL(const TDesC& aTestName);
602 RA3FDevSoundToneMaxVolumeTest(const TDesC& aTestName);
603 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
604 void DoKickoffTestL();
611 *========================================================================================================
612 * MM-A3F-DEVSOUND-CHRTZ-TONE-0027
614 class RA3FDevSoundToneVolumeTest : public RA3FDevSoundTestBase
617 static RA3FDevSoundToneVolumeTest* NewL(const TDesC& aTestName);
619 RA3FDevSoundToneVolumeTest(const TDesC& aTestName);
620 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
621 void DoKickoffTestL();
628 *========================================================================================================
629 * MM-A3F-DEVSOUND-CHRTZ-TONE-0028
631 class RA3FDevSoundToneQueryCapsWhilePlayingTest : public RA3FDevSoundTestBase
634 static RA3FDevSoundToneQueryCapsWhilePlayingTest* NewL(const TDesC& aTestName);
636 RA3FDevSoundToneQueryCapsWhilePlayingTest(const TDesC& aTestName);
637 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
638 void DoKickoffTestL();
639 void DoTimerCallback();
643 TInt iFrequencyTone1;
649 *========================================================================================================
650 * MM-A3F-DEVSOUND-CHRTZ-TONE-0029
652 class RA3FDevSoundToneConfigWhilePlayingTest : public RA3FDevSoundTestBase
655 static RA3FDevSoundToneConfigWhilePlayingTest* NewL(const TDesC& aTestName);
657 RA3FDevSoundToneConfigWhilePlayingTest(const TDesC& aTestName);
658 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
659 void DoKickoffTestL();
660 void DoTimerCallback();
661 void ToneFinished(TInt aError);
665 TInt iFrequencyTone1;
668 TMMFSampleRate iExSampleRate;
671 TTimeIntervalMicroSeconds iPlayToneTime;
675 *========================================================================================================
676 * MM-A3F-DEVSOUND-CHRTZ-TONE-0030
678 class RA3FDevSoundToneMaxVolumeWhilePlayingTest : public RA3FDevSoundTestBase
681 static RA3FDevSoundToneMaxVolumeWhilePlayingTest* NewL(const TDesC& aTestName);
683 RA3FDevSoundToneMaxVolumeWhilePlayingTest(const TDesC& aTestName);
684 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
685 void DoKickoffTestL();
686 void DoTimerCallback();
687 void ToneFinished(TInt aError);
690 TInt iFrequencyTone1;
694 TTimeIntervalMicroSeconds iPlayToneTime;
698 *========================================================================================================
699 * MM-A3F-DEVSOUND-CHRTZ-TONE-0031
701 class RA3FDevSoundToneVolumeWhilePlayingTest : public RA3FDevSoundTestBase
704 static RA3FDevSoundToneVolumeWhilePlayingTest* NewL(const TDesC& aTestName);
706 RA3FDevSoundToneVolumeWhilePlayingTest(const TDesC& aTestName);
707 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
708 void DoKickoffTestL();
709 void DoTimerCallback();
710 void ToneFinished(TInt aError);
714 TInt iFrequencyTone1;
718 TTimeIntervalMicroSeconds iPlayToneTime;
722 *========================================================================================================
723 * MM-A3F-DEVSOUND-CHRTZ-TONE-0032
725 class RA3FDevSoundToneQueryCapsWhilePausePlayingTest : public RA3FDevSoundTestBase
728 static RA3FDevSoundToneQueryCapsWhilePausePlayingTest* NewL(const TDesC& aTestName);
730 RA3FDevSoundToneQueryCapsWhilePausePlayingTest(const TDesC& aTestName);
731 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
732 void DoKickoffTestL();
733 void DoTimerCallback();
734 void ToneFinished(TInt aError);
738 TInt iFrequencyTone1;
741 TBool iTimeToEnterPauseElapsed;
745 *========================================================================================================
746 * MM-A3F-DEVSOUND-CHRTZ-TONE-0033
748 class RA3FDevSoundToneConfigWhilePausePlayingTest : public RA3FDevSoundTestBase
751 static RA3FDevSoundToneConfigWhilePausePlayingTest* NewL(const TDesC& aTestName);
753 RA3FDevSoundToneConfigWhilePausePlayingTest(const TDesC& aTestName);
754 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
755 void DoKickoffTestL();
756 void DoTimerCallback();
757 void ToneFinished(TInt aError);
761 TInt iFrequencyTone1;
762 TBool iTimeToEnterPauseElapsed;
765 TMMFSampleRate iExSampleRate;
769 *========================================================================================================
770 * MM-A3F-DEVSOUND-CHRTZ-TONE-0034
772 class RA3FDevSoundToneMaxVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase
775 static RA3FDevSoundToneMaxVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName);
777 RA3FDevSoundToneMaxVolumeWhilePausePlayingTest(const TDesC& aTestName);
778 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
779 void DoKickoffTestL();
780 void DoTimerCallback();
781 void ToneFinished(TInt aError);
785 TInt iFrequencyTone1;
787 TBool iTimeToEnterPauseElapsed;
791 *========================================================================================================
792 * MM-A3F-DEVSOUND-CHRTZ-TONE-0035
794 class RA3FDevSoundToneVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase
797 static RA3FDevSoundToneVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName);
799 RA3FDevSoundToneVolumeWhilePausePlayingTest(const TDesC& aTestName);
800 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
801 void DoKickoffTestL();
802 void DoTimerCallback();
803 void ToneFinished(TInt aError);
807 TInt iFrequencyTone1;
809 TBool iTimeToEnterPauseElapsed;
813 *========================================================================================================
814 * MM-A3F-DEVSOUND-CHRTZ-TONE-0036
816 class RA3FDevSoundTonePlayToneOnceTest : public RA3FDevSoundTestBase
819 static RA3FDevSoundTonePlayToneOnceTest* NewL(const TDesC& aTestName);
821 RA3FDevSoundTonePlayToneOnceTest(const TDesC& aTestName);
822 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
823 void DoKickoffTestL();
824 void ToneFinished(TInt aError);
827 TInt iFrequencyTone1;
830 TTimeIntervalMicroSeconds iPlayToneTime;
834 *========================================================================================================
835 * MM-A3F-DEVSOUND-CHRTZ-TONE-0037
837 class RA3FDevSoundTonePlayDualToneTest : public RA3FDevSoundTestBase
840 static RA3FDevSoundTonePlayDualToneTest* NewL(const TDesC& aTestName);
842 RA3FDevSoundTonePlayDualToneTest(const TDesC& aTestName);
843 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
844 void DoKickoffTestL();
845 void ToneFinished(TInt aError);
848 TInt iFrequencyTone1;
849 TInt iFrequencyTone2;
852 TTimeIntervalMicroSeconds iPlayToneTime;
856 *========================================================================================================
857 * MM-A3F-DEVSOUND-CHRTZ-TONE-0038
859 class RA3FDevSoundTonePlayDTMFToneTest : public RA3FDevSoundTestBase
862 static RA3FDevSoundTonePlayDTMFToneTest* NewL(const TDesC& aTestName);
864 RA3FDevSoundTonePlayDTMFToneTest(const TDesC& aTestName);
865 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
866 void DoKickoffTestL();
867 void ToneFinished(TInt aError);
869 TBuf16<KMaxStringLength> iDTMFString;
873 TTimeIntervalMicroSeconds iPlayToneTime;
879 *========================================================================================================
880 * MM-A3F-DEVSOUND-CHRTZ-TONE-0039
882 class RA3FDevSoundTonePlayToneSequenceTest : public RA3FDevSoundTestBase
885 static RA3FDevSoundTonePlayToneSequenceTest* NewL(const TDesC& aTestName);
887 RA3FDevSoundTonePlayToneSequenceTest(const TDesC& aTestName);
888 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
889 void DoKickoffTestL();
893 *========================================================================================================
894 * MM-A3F-DEVSOUND-CHRTZ-TONE-0040
896 class RA3FDevSoundToneNewToneRequestWhilePlayingTest : public RA3FDevSoundTestBase
899 static RA3FDevSoundToneNewToneRequestWhilePlayingTest* NewL(const TDesC& aTestName);
902 RA3FDevSoundToneNewToneRequestWhilePlayingTest(const TDesC& aTestName);
903 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
904 void DoKickoffTestL();
905 void DoTimerCallback();
906 void ToneFinished(TInt aError);
910 TInt iFrequencyTone1;
913 TTimeIntervalMicroSeconds iPlayToneTime;
917 *========================================================================================================
918 * MM-A3F-DEVSOUND-CHRTZ-TONE-0041
920 class RA3FDevSoundTonePreemptionTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver
923 static RA3FDevSoundTonePreemptionTest* NewL(const TDesC& aTestName);
926 RA3FDevSoundTonePreemptionTest(const TDesC& aTestName);
927 void ClientInitializeCompleteCallback(TInt aError);
928 void ClientToneFinishedCallback(TInt aError);
929 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
930 void DoKickoffTestL();
931 void DoTimerCallback();
932 void ToneFinished(TInt aError);
936 TInt iFrequencyTone1;
940 *========================================================================================================
941 * MM-A3F-DEVSOUND-CHRTZ-TONE-0042
943 class RA3FDevSoundToneRejectionTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver
946 static RA3FDevSoundToneRejectionTest* NewL(const TDesC& aTestName);
949 RA3FDevSoundToneRejectionTest(const TDesC& aTestName);
950 void ClientInitializeCompleteCallback(TInt aError);
951 void ClientToneFinishedCallback(TInt aError);
952 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
953 void DoKickoffTestL();
954 void DoTimerCallback();
955 void ToneFinished(TInt aError);
959 TInt iFrequencyTone1;
963 *========================================================================================================
964 * MM-A3F-DEVSOUND-CHRTZ-TONE-0043
966 class RA3FDevSoundTonePlayToneOnceAndStopTest : public RA3FDevSoundTestBase
969 static RA3FDevSoundTonePlayToneOnceAndStopTest* NewL(const TDesC& aTestName);
971 RA3FDevSoundTonePlayToneOnceAndStopTest(const TDesC& aTestName);
972 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
973 void DoKickoffTestL();
974 void DoTimerCallback();
975 void ToneFinished(TInt aError);
979 TInt iFrequencyTone1;
984 *========================================================================================================
985 * MM-A3F-DEVSOUND-CHRTZ-TONE-0044
987 class RA3FDevSoundTonePlayDualToneOnceAndStopTest : public RA3FDevSoundTestBase
990 static RA3FDevSoundTonePlayDualToneOnceAndStopTest* NewL(const TDesC& aTestName);
992 RA3FDevSoundTonePlayDualToneOnceAndStopTest(const TDesC& aTestName);
993 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
994 void DoKickoffTestL();
995 void DoTimerCallback();
996 void ToneFinished(TInt aError);
1000 TInt iFrequencyTone1;
1001 TInt iFrequencyTone2;
1006 *========================================================================================================
1007 * MM-A3F-DEVSOUND-CHRTZ-TONE-0045
1009 class RA3FDevSoundTonePlayDTMFStringOnceAndStopTest : public RA3FDevSoundTestBase
1012 static RA3FDevSoundTonePlayDTMFStringOnceAndStopTest* NewL(const TDesC& aTestName);
1014 RA3FDevSoundTonePlayDTMFStringOnceAndStopTest(const TDesC& aTestName);
1015 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1016 void DoKickoffTestL();
1017 void DoTimerCallback();
1018 void ToneFinished(TInt aError);
1021 TBuf16<KMaxStringLength> iDTMFString;
1026 *========================================================================================================
1027 * MM-A3F-DEVSOUND-CHRTZ-TONE-0046
1029 class RA3FDevSoundTonePlayToneSequenceOnceAndStopTest : public RA3FDevSoundTestBase
1032 static RA3FDevSoundTonePlayToneSequenceOnceAndStopTest* NewL(const TDesC& aTestName);
1034 RA3FDevSoundTonePlayToneSequenceOnceAndStopTest(const TDesC& aTestName);
1035 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1036 void DoKickoffTestL();
1037 void DoTimerCallback();
1038 void ToneFinished(TInt aError);
1044 *========================================================================================================
1045 * MM-A3F-DEVSOUND-CHRTZ-TONE-0047
1047 class RA3FDevSoundTonePlayToneOncePauseTest : public RA3FDevSoundTestBase
1050 static RA3FDevSoundTonePlayToneOncePauseTest* NewL(const TDesC& aTestName);
1052 RA3FDevSoundTonePlayToneOncePauseTest(const TDesC& aTestName);
1053 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1054 void DoKickoffTestL();
1055 void DoTimerCallback();
1056 void ToneFinished(TInt aError);
1060 TInt iFrequencyTone1;
1062 TInt iSamplesPlayedPaused;
1067 *========================================================================================================
1068 * MM-A3F-DEVSOUND-CHRTZ-TONE-0048
1070 class RA3FDevSoundTonePlayDualToneOncePauseTest : public RA3FDevSoundTestBase
1073 static RA3FDevSoundTonePlayDualToneOncePauseTest* NewL(const TDesC& aTestName);
1075 RA3FDevSoundTonePlayDualToneOncePauseTest(const TDesC& aTestName);
1076 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1077 void DoKickoffTestL();
1078 void DoTimerCallback();
1079 void ToneFinished(TInt aError);
1083 TInt iFrequencyTone1;
1084 TInt iFrequencyTone2;
1086 TInt iSamplesPlayedPaused;
1090 *========================================================================================================
1091 * MM-A3F-DEVSOUND-CHRTZ-TONE-0049
1093 class RA3FDevSoundTonePlayDTMFStringOncePauseTest : public RA3FDevSoundTestBase
1096 static RA3FDevSoundTonePlayDTMFStringOncePauseTest* NewL(const TDesC& aTestName);
1098 RA3FDevSoundTonePlayDTMFStringOncePauseTest(const TDesC& aTestName);
1099 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1100 void DoKickoffTestL();
1101 void DoTimerCallback();
1102 void ToneFinished(TInt aError);
1105 TBuf16<KMaxStringLength> iDTMFString;
1107 TInt iSamplesPlayedPaused;
1113 *========================================================================================================
1114 * MM-A3F-DEVSOUND-CHRTZ-TONE-0050
1116 class RA3FDevSoundTonePlayToneSequenceOncePauseTest : public RA3FDevSoundTestBase
1119 static RA3FDevSoundTonePlayToneSequenceOncePauseTest* NewL(const TDesC& aTestName);
1121 RA3FDevSoundTonePlayToneSequenceOncePauseTest(const TDesC& aTestName);
1122 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1123 void DoKickoffTestL();
1124 void DoTimerCallback();
1125 void ToneFinished(TInt aError);
1128 TInt iSamplesPlayedPaused;
1132 *========================================================================================================
1133 * MM-A3F-DEVSOUND-CHRTZ-TONE-0051
1135 class RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
1138 static RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
1140 RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest(const TDesC& aTestName);
1141 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1142 void DoKickoffTestL();
1146 TInt iFrequencyTone1;
1150 *========================================================================================================
1151 * MM-A3F-DEVSOUND-CHRTZ-TONE-0052
1153 class RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
1156 static RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
1158 RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest(const TDesC& aTestName);
1159 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1160 void DoKickoffTestL();
1164 TInt iFrequencyTone1;
1165 TInt iFrequencyTone2;
1169 *========================================================================================================
1170 * MM-A3F-DEVSOUND-CHRTZ-TONE-0053
1172 class RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
1175 static RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
1177 RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest(const TDesC& aTestName);
1178 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1179 void DoKickoffTestL();
1182 TBuf16<KMaxStringLength> iDTMFString;
1186 *========================================================================================================
1187 * MM-A3F-DEVSOUND-CHRTZ-TONE-0054
1189 class RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase
1192 static RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName);
1194 RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest(const TDesC& aTestName);
1195 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1196 void DoKickoffTestL();
1200 *========================================================================================================
1201 * MM-A3F-DEVSOUND-CHRTZ-TONE-0055
1203 class RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
1206 static RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
1208 RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest(const TDesC& aTestName);
1209 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1210 void DoKickoffTestL();
1214 TInt iFrequencyTone1;
1218 *========================================================================================================
1219 * MM-A3F-DEVSOUND-CHRTZ-TONE-0056
1221 class RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
1224 static RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
1226 RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest(const TDesC& aTestName);
1227 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1228 void DoKickoffTestL();
1232 TInt iFrequencyTone1;
1233 TInt iFrequencyTone2;
1237 *========================================================================================================
1238 * MM-A3F-DEVSOUND-CHRTZ-TONE-0057
1240 class RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
1243 static RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
1245 RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest(const TDesC& aTestName);
1246 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1247 void DoKickoffTestL();
1250 TBuf16<KMaxStringLength> iDTMFString;
1254 *========================================================================================================
1255 * MM-A3F-DEVSOUND-CHRTZ-TONE-0058
1257 class RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase
1260 static RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName);
1262 RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest(const TDesC& aTestName);
1263 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1264 void DoKickoffTestL();
1268 *========================================================================================================
1269 * MM-A3F-DEVSOUND-CHRTZ-TONE-0059
1271 class RA3FDevSoundTonePlayToneWithoutCallingInitializeTest : public RA3FDevSoundTestBase
1274 static RA3FDevSoundTonePlayToneWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
1276 RA3FDevSoundTonePlayToneWithoutCallingInitializeTest(const TDesC& aTestName);
1277 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1278 void DoKickoffTestL();
1282 TInt iFrequencyTone1;
1286 *========================================================================================================
1287 * MM-A3F-DEVSOUND-CHRTZ-TONE-0060
1289 class RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest : public RA3FDevSoundTestBase
1292 static RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
1294 RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest(const TDesC& aTestName);
1295 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1296 void DoKickoffTestL();
1300 TInt iFrequencyTone1;
1301 TInt iFrequencyTone2;
1302 TBuf16<KMaxStringLength> iDTMFString;
1306 *========================================================================================================
1307 * MM-A3F-DEVSOUND-CHRTZ-TONE-0061
1309 class RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest : public RA3FDevSoundTestBase
1312 static RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
1314 RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest(const TDesC& aTestName);
1315 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1316 void DoKickoffTestL();
1319 TBuf16<KMaxStringLength> iDTMFString;
1323 *========================================================================================================
1324 * MM-A3F-DEVSOUND-CHRTZ-TONE-0062
1326 class RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest : public RA3FDevSoundTestBase
1329 static RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest* NewL(const TDesC& aTestName);
1331 RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest(const TDesC& aTestName);
1332 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1333 void DoKickoffTestL();
1337 *========================================================================================================
1338 * MM-A3F-DEVSOUND-CHRTZ-TONE-0063
1340 class RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest : public RA3FDevSoundTestBase
1343 static RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest* NewL(const TDesC& aTestName);
1345 RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest(const TDesC& aTestName);
1346 void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError);
1347 void DoKickoffTestL();
1348 void ToneFinished(TInt aError);
1351 TBuf8<KMaxStringLength> iInvalidToneSequence;
1355 #endif //CHAR_A3F_DEVSOUND_TONETEST_H