os/mm/mmapitest/devsoundhaitest/scripts/multimedia-mmf-devsound-stress-automated-tones.script
Update contrib.
2 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
3 // All rights reserved.
4 // This component and the accompanying materials are made available
5 // under the terms of "Eclipse Public License v1.0"
6 // which accompanies this distribution, and is available
7 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 // Initial Contributors:
10 // Nokia Corporation - initial contribution.
18 //! @SYMTestSuiteName multimedia-mmf-devsound-stress-automated-tones
19 //! @SYMScriptTestEnvironment This test script requires a basic ROM.
21 // Tests all public elements of the CMMFDevSound
22 // classes as a means of confidence that the APIs work as expected.
24 // The purpose is to provide a regression test suite of PublishedAll
25 // APIs for: CMMFDevSound
26 // The tests are fully automated.
37 START_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001
39 //!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001
41 //! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC , TMMFState)
42 //! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
43 //! CMMFDevSound::Capabilities()
44 //! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
45 //! CMMFDevSound::PlayInitL()
47 //!@SYMCreationDate 8/25/2008
48 //!@SYMTestCaseDesc Play long ringing tone file
50 //! 1. Create Devsound Instance
51 //! 2. Open File (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_long.mp3)
52 //! 3. Initialize Devsound (Mode = EMMFStatePlaying; FourCC = MP3)
53 //! 4. Set Priority (Priority = {Priority,PriorityIncomingCall}; Preference = {PriorityPreference,PriorityPreferenceIncomingCall}; PriorityState=EMMFStatePlaying)
55 //! 6. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz)
58 //! 9. Destroy Devsound Instance
59 //!@SYMTestStatus Verified
60 //!@SYMTestPriority High
61 //!@SYMTestExpectedResults
62 //! Play long ringing tone file
65 START_TEST_BLOCK 2000 t_devsound \multimedia\mmf\devsound\multimedia-mmf-devsound-stress-automated-tones.ini
66 CREATE_OBJECT CMMFDevSound devsound1
67 COMMAND devsound1 NewL
68 COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-OpenFile_command02
69 COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-InitializeL_command03
71 COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-SetPrioritySettings_command04
72 COMMAND devsound1 Capabilities
73 COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSound-Stress-Tones-0001-0001-SetConfigL_command06
74 COMMAND devsound1 PlayInitL
76 COMMAND devsound1 CloseFile
79 END_TESTCASE MULTIMEDIA-MMF-DEVSOUND-STRESS-AUTOMATED-TONES-0001