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: // MM_A3F_DEVSOUND_CHRTZ_INIT.script sl@0: // Syntax: sl@0: // RUN_TEST_STEP , , , sl@0: // sl@0: sl@0: LOAD_SUITE char_a3f_devsound.dll sl@0: delay 1000 sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0001 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDec: Play tone initialisation - Call InitializeL() to initialise for playing tones sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise DevSound instance to play tones. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play tones. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play tone initialisation - Call InitializeL() to initialise for playing tones sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0001, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0002 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play tone initialisation - Call CancelInitialize() to abort initialisation for tones sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play tones. sl@0: //4. Start CPeriodic to trigger timer events. sl@0: //5. Call CancelInitialize() before receiving InitializeComplete() callback. sl@0: //6. Wait 2 seconds to verify that InitializeComplete() callback is not received. sl@0: //!@SYMTestExpectedResults: sl@0: //CancelInitialize() returns KErrNone. InitializeComplete() callback shall be not received. sl@0: PRINT Play tone initialisation - Call CancelInitialize() to abort initialisation for tones sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0002, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0003 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to play tones sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise DevSound instance to play tones. sl@0: //2. After InitializeComplete() callback is received, initialise DevSound to play tones. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play tones. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to play tones sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0003, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0004 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to play audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise DevSound instance to play tones. sl@0: //2. After InitializeComplete() callback is received, initialise DevSound to play audio. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play audio. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to play audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0004, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0005 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones then reinitialise to record audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialize DevSound instance to play tones. sl@0: //2. After InitializeComplete() callback is received, initialise DevSound to record audio. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to record audio. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play tone initialisation - Call InitializeL() to play tones then reinitialise to record audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0005, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0006 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() to play tones using aTFourCC parameter sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Initialise DevSound to play tones using InitializeL() with aTFourCC parameter. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created. sl@0: //InitializeL() leaves with a KErrNotSupported. sl@0: PRINT Play tone initialisation - Call InitializeL() to play tones using aTFourCC parameter sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0006, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0007 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play tone initialisation - Call InitializeL() using a TMMFState parameter different sl@0: //to EMMFStateTonePlaying, EMMFStatePlaying or EMMFStateRecording. sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Initialise DevSound using a mode parameter different to EMMFStateTonePlaying, EMMFStatePlaying or sl@0: //EMMFStateRecording. Use ""EMMFStateConverting"" mode in initialisation. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created. sl@0: //InitializeL() leaves with a KErrNotSupported. sl@0: PRINT Play tone initialisation - Call InitializeL() using a TMMFState parameter different to EMMFStateTonePlaying, EMMFStatePlaying or EMMFStateRecording. sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0007, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0008 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise DevSound instance to play audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play audio. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play audio initialisation - Call InitializeL() to play audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0008, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0009 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play audio initialisation - Call CancelInitialize() to abort initialisation sl@0: //for playing audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a Devsound instance. sl@0: //2. Create a CPeriodic instance. sl@0: //3. Initialise a DevSound instance to play audio. sl@0: //4. Start CPeriodic to trigger timer events every 2 seconds. sl@0: //5. Call CancelInitialize() before receiving InitializeComplete() callback . sl@0: //6. On timer event, verify that InitializeComplete() callback was not received. sl@0: //!@SYMTestExpectedResults: sl@0: //CancelInitialize() returns KErrNone. sl@0: //InitializeComplete(KErrNone) callback shall be not received. sl@0: PRINT Play audio initialisation - Call CancelInitialize() to abort initialisation for playing audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0009, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0010 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to play tones sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialise a DevSound instance to play audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. After InitializeComplete() callback is received initialise DevSound to play tones. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play tones. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to play tones sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0010, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0011 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to play audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialise a DevSound instance to play audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. After InitializeComplete() callback is received initialise DevSound to play audio. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play audio. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to play audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0011, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0012 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio then reinitialise to record audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and Initialize a DevSound instance to play audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //2. After InitializeComplete() callback is received, initialise DevSound to record audio. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to record audio. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play audio initialisation - Call InitializeL() to play audio then reinitialise to record audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0012, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0013 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Play audio initialisation - Call InitializeL() to play audio using an unsupported TFourCC codec parameter sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Exception Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call InitializeL() to initialise DevSound to play audio, using an unsupported codec. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play audio sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Play audio initialisation - Call InitializeL() to play audio using an unsupported TFourCC codec parameter sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0013, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0014 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise DevSound instance to record audio. sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //!@SYMTestExpectedResults: sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Record audio initialisation - Call InitializeL() to record audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0014, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0015 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Record audio initialisation - Call CancelInitialize() to abort initialisation for recording audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Initialise DevSound to record audio. sl@0: //3. Call CancelInitialize() before InitializeComplete() callback is received. sl@0: //4. Wait 5 second to verify that InitializeComplete() callback is not received. sl@0: //!@SYMTestExpectedResults: sl@0: //CancelInitialize() returns KErrNone. sl@0: //InitializeComplete(KErrNone) callback shall be not received. sl@0: PRINT Record audio initialisation - Call CancelInitialize() to abort initialisation for recording audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0015, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0016 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to play tones sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise DevSound instance to record audio. sl@0: //2. After InitializeComplete() callback is received, initialise DevSound to play tones. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play tones. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to play tones sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0016, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0017 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to play audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialize DevSound instance to record audio. sl@0: //2. After InitializeComplete() callback is received, initialise DevSound to play audio. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play audio. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to play audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0017, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0018 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio then reinitialise to record audio sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialize DevSound instance to record audio. sl@0: //2. After InitializeComplete() callback is received, initialise DevSound to record audio. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to record audio. sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Record audio initialisation - Call InitializeL() to record audio then reinitialise to record audio sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0018, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0019 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: Record audio initialisation - Call InitializeL() to record audio (no format specification is presented) sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise DevSound instance to to record audio (default PCM16 codec used). sl@0: //1.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //!@SYMTestExpectedResults: sl@0: //InitializeComplete(KErrNone) callback was received. sl@0: PRINT Record audio initialisation - Call InitializeL() to record audio (no format specification is presented) sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0019, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0020 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - PlayData() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call PlayData() method sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound client may panic. sl@0: PRINT InitializeL() not called - PlayData() when InitializeL() was not called sl@0: RUN_PANIC_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0020, MmfDevSoundProxy 0, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0021 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call PlayDTMFStringL() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call PlayDTMFStringL(). sl@0: //!@SYMTestExpectedResults: sl@0: //PlayDTMFStringL() leaves with a KErrNotReady error sl@0: PRINT InitializeL() not called - Call PlayDTMFStringL() when InitializeL() was not called sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0021, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0022 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call PlayDualToneL() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call PlayDualToneL(). sl@0: //!@SYMTestExpectedResults: sl@0: //PlayDualToneL() leaves with a KErrNotReady error sl@0: PRINT InitializeL() not called - Call PlayDualToneL() when InitializeL() was not called sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0022, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0023 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call PlayFixedSequenceL() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call PlayFixedSequenceL(). sl@0: //!@SYMTestExpectedResults: sl@0: //PlayFixedSequenceL() leaves with a KErrNotReady error sl@0: PRINT InitializeL() not called - Call PlayFixedSequenceL() when InitializeL() was not called sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0023, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0024 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call PlayInitL() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call PlayInitL(). sl@0: //!@SYMTestExpectedResults: sl@0: //PlayInitL() leaves with a KErrNotReady error sl@0: PRINT InitializeL() not called - Call PlayInitL() when InitializeL() was not called sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0024, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0025 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call PlayToneL() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call PlayToneL(). sl@0: //!@SYMTestExpectedResults: sl@0: //PlayToneL() leaves with a KErrNotReady error sl@0: PRINT InitializeL() not called - Call PlayToneL() when InitializeL() was not called sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0025, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0026 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call PlayToneL() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call PlayToneSequenceL(). sl@0: //!@SYMTestExpectedResults: sl@0: //PlayToneSequenceL() leaves with a KErrNotReady error sl@0: PRINT InitializeL() not called - Call PlayToneL() when InitializeL() was not called sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0026, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0027 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call RecordData() when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call RecordData(). sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound client may panic. sl@0: PRINT InitializeL() not called - Call RecordData() when InitializeL() was not called sl@0: RUN_PANIC_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0027, MmfDevSoundProxy 1, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0028 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() not called - Call RecordInitL when InitializeL() was not called sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Call RecordInitL(). sl@0: //!@SYMTestExpectedResults: sl@0: //RecordInitL() leaves with a KErrNotReady error sl@0: PRINT InitializeL() not called - Call RecordInitL when InitializeL() was not called sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0028, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0029 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() to play tones called more than once sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise a DevSound instance to play tones. sl@0: //2. Call again InitializeL() to initialise DevSound to play tones before the first InitializeComplete() callback is received. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play tones sl@0: //InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady. sl@0: PRINT InitializeL() to play tones called more than once sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0029, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0030 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() to play audio called more than once sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise a DevSound instance to play audio. sl@0: //2. Call again InitializeL() to initialise DevSound to play audio before the first InitializeComplete() callback is received. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to play audio sl@0: //InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady. sl@0: PRINT InitializeL() to play audio called more than once sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0030, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0031 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() to record audio called more than once sl@0: //!@SYMTestPriority: Normal sl@0: //!@SYMTestType: Normal Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create and initialise a DevSound instance to record audio. sl@0: //2. Call again InitializeL() to initialise DevSound to record audio before receiving the first InitializeComplete() callback. sl@0: //!@SYMTestExpectedResults: sl@0: //DevSound instance was created and initialised to record audio sl@0: //InitializeComplete(KErrNone) callback for first InitializeL() call shall be received. Second InitializeL() call leaves with KErrNotReady. sl@0: PRINT InitializeL() to record audio called more than once sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0031, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0032 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Tone-The first InitializeL() leaves, then the second InitializeL() is handled normally. sl@0: //!@SYMTestPriority: sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code). sl@0: //3. Create and Initialise DevSound instance to play tones. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //!@SYMTestExpectedResults: sl@0: //InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone. sl@0: //DevSound instance was created and initialised to record audio. sl@0: PRINT InitializeL() to record audio called more than once- Tone-The first InitializeL() leaves, then the second InitializeL() is handled normally. sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0032, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0033 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Play-The first InitializeL() leaves, then the second InitializeL() is handled normally. sl@0: //!@SYMTestPriority: sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code). sl@0: //3. Create and Initialise DevSound instance to play audio. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //!@SYMTestExpectedResults: sl@0: InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone. sl@0: DevSound instance was created and initialised to record audio. sl@0: PRINT InitializeL() to record audio called more than once- Play-The first InitializeL() leaves, then the second InitializeL() is handled normally. sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0033, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: //!@SYMTestCaseID: MM-A3F-DEVSOUND-CHRTZ-INIT-0034 sl@0: //!@SYMREQ: 7951 sl@0: //!@SYMPREQ: 1540 sl@0: //!@SYMTestCaseDesc: InitializeL() to record audio called more than once- Record-The first InitializeL() leaves, then the second InitializeL() is handled normally. sl@0: //!@SYMTestPriority: sl@0: //!@SYMTestType: Alternative Usecase sl@0: //!@SYMTestActions: sl@0: //1. Create a DevSound instance. sl@0: //2. Initialise DevSound to record audio using parameters that force the function to leave (e.g. Invalid FourCC Code). sl@0: //3. Create and Initialise DevSound instance to record audio. sl@0: //3.1 Wait for InitializeComplete(KErrNone) callback response. sl@0: //!@SYMTestExpectedResults: sl@0: //InitializeL() call shall leave. Second InitializeL() should generate the InitializeComplete calback with KErrNone. sl@0: //DevSound instance was created and initialised to record audio. sl@0: PRINT InitializeL() to record audio called more than once- Record-The first InitializeL() leaves, then the second InitializeL() is handled normally. sl@0: RUN_TEST_STEP 10000, char_a3f_devsound, MM-A3F-DEVSOUND-CHRTZ-INIT-0034, c:\mm_a3f_devsound_init.ini sl@0: TEST_COMPLETE sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: sl@0: