sl@0: // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef CHAR_A3F_DEVSOUND_TONETEST_H sl@0: #define CHAR_A3F_DEVSOUND_TONETEST_H sl@0: sl@0: // system includes sl@0: #include "char_a3f_devsound_testbase.h" sl@0: #include "char_a3f_devsound_toneclient.h" sl@0: #include "char_a3f_devsound_playrecordclients.h" sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0001 sl@0: */ sl@0: class RA3FDevSoundToneSetConfigTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetConfigTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneSetConfigTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iSampleRate; sl@0: TInt iChannels; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0002 sl@0: */ sl@0: class RA3FDevSoundToneSetPrioritySettingsTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetPrioritySettingsTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneSetPrioritySettingsTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iPriority; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0003 sl@0: */ sl@0: class RA3FDevSoundToneSetVolumeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetVolumeTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneSetVolumeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iVolume; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0004 sl@0: */ sl@0: class RA3FDevSoundToneVolumeRampTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneVolumeRampTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneVolumeRampTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TInt iVolumeRamp; sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0005 sl@0: */ sl@0: class RA3FDevSoundToneSetToneRepeatsTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetToneRepeatsTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetToneRepeatsTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iRepeatTrailingSilence; sl@0: TInt iRepeatCount; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0006 sl@0: */ sl@0: class RA3FDevSoundToneSetDTMFLengthsTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetDTMFLengthsTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetDTMFLengthsTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TBool iFirstToneFinishedCall; sl@0: TInt iToneOnLength; sl@0: TInt iToneOffLength; sl@0: TInt iPauseLength; sl@0: TBuf16 iDTMFString; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TInt iDTMFPauses; sl@0: TInt iDTMFTones; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0007 sl@0: */ sl@0: class RA3FDevSoundToneSetVolumeWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetVolumeWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetVolumeWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TInt iDuration; sl@0: TInt iVolume; sl@0: TInt iFrequencyTone1; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0008 sl@0: */ sl@0: class RA3FDevSoundToneSetPlayBalanceWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetPlayBalanceWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetPlayBalanceWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iVolume; sl@0: TInt iFrequencyTone1; sl@0: TInt iLSpeakerBalance; sl@0: TInt iRSpeakerBalance; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0009 sl@0: */ sl@0: class RA3FDevSoundToneSetVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetVolumeWhilePausePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TInt iDuration; sl@0: TInt iVolume; sl@0: TInt iFrequencyTone1; sl@0: TBool iTimeToEnterPauseElapsed; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0010 sl@0: */ sl@0: class RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetVolumeThenInitializeToPlayAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iVolume; sl@0: TBool iReinitialized; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0011 sl@0: */ sl@0: class RA3FDevSoundToneSetVolumeRampWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetVolumeRampWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetVolumeRampWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iVolume; sl@0: TInt iFrequencyTone1; sl@0: TInt iVolumeRamp; sl@0: TBool iTonePlayedTwice; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TInt iTimesToneFinishedCalled; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0012 sl@0: */ sl@0: class RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetToneRepetitionsWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iRepeatTrailingSilence; sl@0: TInt iRepeatCount; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0013 sl@0: */ sl@0: class RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetDTMFLengthsWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TBool iFirstToneFinishedCall; sl@0: TInt iToneOnLength; sl@0: TInt iToneOffLength; sl@0: TInt iPauseLength; sl@0: TBuf16 iDTMFString; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TInt iDTMFPauses; sl@0: TInt iDTMFTones; sl@0: TInt iTotalExpectedPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0014 sl@0: */ sl@0: class RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetToneRepetitionsNotPlayingTonesModeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iRepeatTrailingSilence; sl@0: TInt iRepeatCount; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TBool iInitializedToPlayTones; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0015 sl@0: */ sl@0: class RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneSetDTMFLengthsNotPlayingTonesModeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TBool iInitializedToPlayTones; sl@0: TBuf16 iDTMFString; sl@0: TInt iToneOnLength; sl@0: TInt iToneOffLength; sl@0: TInt iPauseLength; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TInt iDTMFPauses; sl@0: TInt iDTMFTones; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0016 sl@0: */ sl@0: class RA3FDevSoundToneSetConfigWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetConfigWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetConfigWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iVolume; sl@0: TInt iFrequencyTone1; sl@0: TInt iSampleRate; sl@0: TInt iChannels; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0017 sl@0: */ sl@0: class RA3FDevSoundToneSetPriorityWhilePlayingTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetPriorityWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetPriorityWhilePlayingTest(const TDesC& aTestName); sl@0: void ClientInitializeCompleteCallback(TInt aError); sl@0: void ClientToneFinishedCallback(TInt aError); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0018 sl@0: */ sl@0: class RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneSetConfigTestToInvalidSampleRateValue(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iSampleRate; sl@0: TInt iChannels; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0019 sl@0: */ sl@0: class RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneSetConfigTestToInvalidChannelValueTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iSampleRate; sl@0: TInt iChannels; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0020 sl@0: */ sl@0: class RA3FDevSoundToneSetDTMFLengthsToNegativeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetDTMFLengthsToNegativeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetDTMFLengthsToNegativeTest(const TDesC& aTestName); sl@0: void ToneFinished(TInt aError); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iToneOnLength; sl@0: TInt iToneOffLength; sl@0: TInt iPauseLength; sl@0: TBuf16 iDTMFString; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0021 sl@0: */ sl@0: class RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetDTMFToneOnLengthToMinusOneTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TBool iFirstToneFinishedCall; sl@0: TInt iToneOnLength; sl@0: TInt iToneOffLength; sl@0: TInt iPauseLength; sl@0: TBuf16 iDTMFString; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0022 sl@0: */ sl@0: class RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetToneRepetitionsRepeatTrailingSilenceToNegativeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iRepeatTrailingSilence; sl@0: TInt iRepeatCount; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TBool iInitializedToPlayTones; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0023 sl@0: */ sl@0: class RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneSetToneRepetitionsRepeatCountToKMdaRepeatForeverTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: void DoTimerCallback(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iRepeatTrailingSilence; sl@0: TInt iRepeatCount; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TBool iInitializedToPlayTones; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0024 sl@0: */ sl@0: class RA3FDevSoundToneCapsTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneCapsTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneCapsTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iExCapRate; sl@0: TInt iExCapChannels; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0025 sl@0: */ sl@0: class RA3FDevSoundToneConfigDefaultTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneConfigDefaultTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneConfigDefaultTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TMMFSampleRate iExSampleRate; sl@0: TInt iExCapRate; sl@0: TInt iExCapChannels; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0026 sl@0: */ sl@0: class RA3FDevSoundToneMaxVolumeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneMaxVolumeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneMaxVolumeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iExVolume; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0027 sl@0: */ sl@0: class RA3FDevSoundToneVolumeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneVolumeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneVolumeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iExVolume; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0028 sl@0: */ sl@0: class RA3FDevSoundToneQueryCapsWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneQueryCapsWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneQueryCapsWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iExCapRate; sl@0: TInt iExCapChannels; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0029 sl@0: */ sl@0: class RA3FDevSoundToneConfigWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneConfigWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneConfigWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iExCapRate; sl@0: TInt iExCapChannels; sl@0: TMMFSampleRate iExSampleRate; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0030 sl@0: */ sl@0: class RA3FDevSoundToneMaxVolumeWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneMaxVolumeWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneMaxVolumeWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iExVolume; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0031 sl@0: */ sl@0: class RA3FDevSoundToneVolumeWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneVolumeWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneVolumeWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iExVolume; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0032 sl@0: */ sl@0: class RA3FDevSoundToneQueryCapsWhilePausePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneQueryCapsWhilePausePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneQueryCapsWhilePausePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iExCapRate; sl@0: TInt iExCapChannels; sl@0: TBool iTimeToEnterPauseElapsed; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0033 sl@0: */ sl@0: class RA3FDevSoundToneConfigWhilePausePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneConfigWhilePausePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneConfigWhilePausePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TBool iTimeToEnterPauseElapsed; sl@0: TInt iExCapRate; sl@0: TInt iExCapChannels; sl@0: TMMFSampleRate iExSampleRate; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0034 sl@0: */ sl@0: class RA3FDevSoundToneMaxVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneMaxVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneMaxVolumeWhilePausePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iExVolume; sl@0: TBool iTimeToEnterPauseElapsed; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0035 sl@0: */ sl@0: class RA3FDevSoundToneVolumeWhilePausePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneVolumeWhilePausePlayingTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundToneVolumeWhilePausePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iExVolume; sl@0: TBool iTimeToEnterPauseElapsed; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0036 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneOnceTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneOnceTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneOnceTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0037 sl@0: */ sl@0: class RA3FDevSoundTonePlayDualToneTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDualToneTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDualToneTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iFrequencyTone2; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0038 sl@0: */ sl@0: class RA3FDevSoundTonePlayDTMFToneTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDTMFToneTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDTMFToneTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TBuf16 iDTMFString; sl@0: TBool iToneStopped; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: TInt iDTMFPauses; sl@0: TInt iDTMFTones; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0039 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneSequenceTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneSequenceTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneSequenceTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0040 sl@0: */ sl@0: class RA3FDevSoundToneNewToneRequestWhilePlayingTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneNewToneRequestWhilePlayingTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneNewToneRequestWhilePlayingTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TTime iStartTime; sl@0: TTime iEndTime; sl@0: TTimeIntervalMicroSeconds iPlayToneTime; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0041 sl@0: */ sl@0: class RA3FDevSoundTonePreemptionTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePreemptionTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundTonePreemptionTest(const TDesC& aTestName); sl@0: void ClientInitializeCompleteCallback(TInt aError); sl@0: void ClientToneFinishedCallback(TInt aError); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0042 sl@0: */ sl@0: class RA3FDevSoundToneRejectionTest : public RA3FDevSoundTestBase, public MA3FDevsoundToneClientObserver sl@0: { sl@0: public: sl@0: static RA3FDevSoundToneRejectionTest* NewL(const TDesC& aTestName); sl@0: sl@0: private: sl@0: RA3FDevSoundToneRejectionTest(const TDesC& aTestName); sl@0: void ClientInitializeCompleteCallback(TInt aError); sl@0: void ClientToneFinishedCallback(TInt aError); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0043 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneOnceAndStopTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneOnceAndStopTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneOnceAndStopTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TBool iToneStopped; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0044 sl@0: */ sl@0: class RA3FDevSoundTonePlayDualToneOnceAndStopTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDualToneOnceAndStopTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDualToneOnceAndStopTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iFrequencyTone2; sl@0: TBool iToneStopped; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0045 sl@0: */ sl@0: class RA3FDevSoundTonePlayDTMFStringOnceAndStopTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDTMFStringOnceAndStopTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDTMFStringOnceAndStopTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TBuf16 iDTMFString; sl@0: TBool iToneStopped; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0046 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneSequenceOnceAndStopTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneSequenceOnceAndStopTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneSequenceOnceAndStopTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TBool iToneStopped; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0047 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneOncePauseTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneOncePauseTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneOncePauseTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TBool iPaused; sl@0: TInt iSamplesPlayedPaused; sl@0: sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0048 sl@0: */ sl@0: class RA3FDevSoundTonePlayDualToneOncePauseTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDualToneOncePauseTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDualToneOncePauseTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iFrequencyTone2; sl@0: TBool iPaused; sl@0: TInt iSamplesPlayedPaused; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0049 sl@0: */ sl@0: class RA3FDevSoundTonePlayDTMFStringOncePauseTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDTMFStringOncePauseTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDTMFStringOncePauseTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TBuf16 iDTMFString; sl@0: TBool iPaused; sl@0: TInt iSamplesPlayedPaused; sl@0: TInt iDTMFPauses; sl@0: TInt iDTMFTones; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0050 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneSequenceOncePauseTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneSequenceOncePauseTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneSequenceOncePauseTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void DoTimerCallback(); sl@0: void ToneFinished(TInt aError); sl@0: private: sl@0: TBool iPaused; sl@0: TInt iSamplesPlayedPaused; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0051 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneOnceInitializedToPlayAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0052 sl@0: */ sl@0: class RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDualToneOnceInitializedToPlayAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iFrequencyTone2; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0053 sl@0: */ sl@0: class RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDTMFStringOnceInitializedToPlayAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TBuf16 iDTMFString; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0054 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneSequenceOnceInitializedToPlayAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0055 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneOnceInitializedToRecordAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0056 sl@0: */ sl@0: class RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDualToneOnceInitializedToRecordAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iFrequencyTone2; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0057 sl@0: */ sl@0: class RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDTMFStringOnceInitializedToRecordAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TBuf16 iDTMFString; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0058 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneSequenceOnceInitializedToRecordAudioTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0059 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneWithoutCallingInitializeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneWithoutCallingInitializeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneWithoutCallingInitializeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0060 sl@0: */ sl@0: class RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDualToneWithoutCallingInitializeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TInt iDuration; sl@0: TInt iFrequencyTone1; sl@0: TInt iFrequencyTone2; sl@0: TBuf16 iDTMFString; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0061 sl@0: */ sl@0: class RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayDTMFStringWithoutCallingInitializeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: sl@0: private: sl@0: TBuf16 iDTMFString; sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0062 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneSequenceWithoutCallingInitializeTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: }; sl@0: sl@0: /* sl@0: *======================================================================================================== sl@0: * MM-A3F-DEVSOUND-CHRTZ-TONE-0063 sl@0: */ sl@0: class RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest : public RA3FDevSoundTestBase sl@0: { sl@0: public: sl@0: static RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest* NewL(const TDesC& aTestName); sl@0: private: sl@0: RA3FDevSoundTonePlayToneSequenceUsingInvalidDescriptorTest(const TDesC& aTestName); sl@0: void Fsm(TMmfDevSoundEvent aDevSoundEvent, TInt aError); sl@0: void DoKickoffTestL(); sl@0: void ToneFinished(TInt aError); sl@0: sl@0: private: sl@0: TBuf8 iInvalidToneSequence; sl@0: }; sl@0: sl@0: sl@0: #endif //CHAR_A3F_DEVSOUND_TONETEST_H sl@0: sl@0: