sl@0
|
1 |
//
|
sl@0
|
2 |
// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
3 |
// All rights reserved.
|
sl@0
|
4 |
// This component and the accompanying materials are made available
|
sl@0
|
5 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
6 |
// which accompanies this distribution, and is available
|
sl@0
|
7 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
8 |
//
|
sl@0
|
9 |
// Initial Contributors:
|
sl@0
|
10 |
// Nokia Corporation - initial contribution.
|
sl@0
|
11 |
//
|
sl@0
|
12 |
// Contributors:
|
sl@0
|
13 |
//
|
sl@0
|
14 |
// Description:
|
sl@0
|
15 |
//
|
sl@0
|
16 |
//
|
sl@0
|
17 |
//! @file
|
sl@0
|
18 |
//! @SYMTestSuiteName multimedia-mmf-devsoundext-validation-automated-p
|
sl@0
|
19 |
//! @SYMScriptTestEnvironment This test script requires a basic ROM.
|
sl@0
|
20 |
//
|
sl@0
|
21 |
// Tests all public elements of the CMMFDevSound
|
sl@0
|
22 |
// classes as a means of confidence that the APIs work as expected.
|
sl@0
|
23 |
//
|
sl@0
|
24 |
// The purpose is to provide a regression test suite of PublishedAll
|
sl@0
|
25 |
// APIs for: CMMFDevSound
|
sl@0
|
26 |
// The tests are fully automated.
|
sl@0
|
27 |
//
|
sl@0
|
28 |
|
sl@0
|
29 |
|
sl@0
|
30 |
|
sl@0
|
31 |
LOAD_SUITE t_devsoundext
|
sl@0
|
32 |
|
sl@0
|
33 |
|
sl@0
|
34 |
|
sl@0
|
35 |
|
sl@0
|
36 |
|
sl@0
|
37 |
START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0013
|
sl@0
|
38 |
|
sl@0
|
39 |
//!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0013
|
sl@0
|
40 |
//!@SYMAPI
|
sl@0
|
41 |
//! CMMFDevSound::InitializeL(MDevSoundObserver{ref}, TFourCC, TMMFState)
|
sl@0
|
42 |
//! CMMFDevSound::SetPrioritySettings(const TMMFPrioritySettings{ref})
|
sl@0
|
43 |
//! CMMFDevSound::Capabilities()
|
sl@0
|
44 |
//! CMMFDevSound::SetConfigL(const TMMFCapabilities{ref})
|
sl@0
|
45 |
//! CMMFDevSound::PlayInitL()
|
sl@0
|
46 |
//! CMMFDevSound::Stop()
|
sl@0
|
47 |
//!
|
sl@0
|
48 |
//!@SYMAuthor fperez
|
sl@0
|
49 |
//!@SYMCreationDate 7/28/2008
|
sl@0
|
50 |
//!@SYMTestCaseDesc G.729AB playback unexpected events
|
sl@0
|
51 |
//!@SYMTestActions
|
sl@0
|
52 |
//! 1. Create Devsound instance
|
sl@0
|
53 |
//! 2. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = G729)
|
sl@0
|
54 |
//! 3. Set Priority (Priority = {Priority,PriorityNormal}; Preference = {PriorityPreference,PriorityPreferenceQuality};PriorityState=EMMFStatePlaying)
|
sl@0
|
55 |
//! 4. Capabilities
|
sl@0
|
56 |
//! 5. Set Configuration(Channels = EMMFMono; Rate = EMMFSampleRate8000Hz)
|
sl@0
|
57 |
//! 6. Stop 5 seconds
|
sl@0
|
58 |
//! 7. OpenFile (Filename = {drive,mmc}\multimedia\mmf\devsound\G729AB\G729AB_8k_8kbps_mono_dtx_on.bin)
|
sl@0
|
59 |
//! 8. Play 10 seconds
|
sl@0
|
60 |
//! 9. Stop for 5 seconds (Pause=TRUE)
|
sl@0
|
61 |
//! 10. FileStartPosition
|
sl@0
|
62 |
//! 11. Stop 5 seconds
|
sl@0
|
63 |
//! 12. Stop for 5 seconds (Pause=TRUE)
|
sl@0
|
64 |
//! 13. Play 10 seconds
|
sl@0
|
65 |
//! 14. Stop
|
sl@0
|
66 |
//! 15. CloseFile
|
sl@0
|
67 |
//! 16. Delete devsound instance
|
sl@0
|
68 |
//!@SYMTestStatus Verified
|
sl@0
|
69 |
//!@SYMTestPriority High
|
sl@0
|
70 |
//!@SYMTestExpectedResults
|
sl@0
|
71 |
//! Plays a G.729AB file with unexpected events. A stop ocurrs before the play
|
sl@0
|
72 |
//!@SYMTestType CIT
|
sl@0
|
73 |
|
sl@0
|
74 |
START_TEST_BLOCK 60 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-p.ini
|
sl@0
|
75 |
CREATE_OBJECT CMMFDevSound devsound1
|
sl@0
|
76 |
COMMAND devsound1 NewL
|
sl@0
|
77 |
COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-InitializeL_command02
|
sl@0
|
78 |
OUTSTANDING
|
sl@0
|
79 |
COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-SetPrioritySettings_command03
|
sl@0
|
80 |
COMMAND devsound1 Capabilities
|
sl@0
|
81 |
COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-SetConfigL_command05
|
sl@0
|
82 |
COMMAND devsound1 Stop
|
sl@0
|
83 |
DELAY 5000000
|
sl@0
|
84 |
COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-OpenFile_command07
|
sl@0
|
85 |
COMMAND devsound1 PlayInitL
|
sl@0
|
86 |
ASYNC_DELAY 10000000
|
sl@0
|
87 |
COMMAND devsound1 Stop MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-Stop_command09
|
sl@0
|
88 |
DELAY 5000000
|
sl@0
|
89 |
COMMAND devsound1 FileStartPosition
|
sl@0
|
90 |
COMMAND devsound1 Stop
|
sl@0
|
91 |
DELAY 5000000
|
sl@0
|
92 |
COMMAND devsound1 Stop MULTIMEDIA-MMF-DevSoundExt-P-0013-0001-Stop_command12
|
sl@0
|
93 |
DELAY 5000000
|
sl@0
|
94 |
COMMAND devsound1 PlayInitL
|
sl@0
|
95 |
ASYNC_DELAY 10000000
|
sl@0
|
96 |
COMMAND devsound1 Stop
|
sl@0
|
97 |
COMMAND devsound1 CloseFile
|
sl@0
|
98 |
COMMAND devsound1 ~
|
sl@0
|
99 |
END_TEST_BLOCK
|
sl@0
|
100 |
END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0013
|
sl@0
|
101 |
|
sl@0
|
102 |
|
sl@0
|
103 |
|
sl@0
|
104 |
|
sl@0
|
105 |
START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0016
|
sl@0
|
106 |
|
sl@0
|
107 |
//!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0016
|
sl@0
|
108 |
//!@SYMAPI
|
sl@0
|
109 |
//! void InitializeL(MDevSoundObserver {ref}, TFourCC , TMMFState )
|
sl@0
|
110 |
//!@SYMAuthor jpacho
|
sl@0
|
111 |
//!@SYMCreationDate 8/11/2008
|
sl@0
|
112 |
//!@SYMTestCaseDesc Audio routing - Audio playback with different output preferences
|
sl@0
|
113 |
//!@SYMTestActions
|
sl@0
|
114 |
//! 1. Create DevSound instance
|
sl@0
|
115 |
//! 2. Create AudioOutput instance (DevSoundInstanceName = devsound1)
|
sl@0
|
116 |
//! 3. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3)
|
sl@0
|
117 |
//! 4. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3)
|
sl@0
|
118 |
//! 5. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying)
|
sl@0
|
119 |
//! 6. Capabilities
|
sl@0
|
120 |
//! 7. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz)
|
sl@0
|
121 |
//! 8. Set audio output (AudioOutput = Output_Public)
|
sl@0
|
122 |
//! 9.Start play for 10s
|
sl@0
|
123 |
//! 10. Set audio output (AudioOutput = Output_Private) .5
|
sl@0
|
124 |
//! 11. Set audio output (AudioOutput = Output_NoOutput) .5
|
sl@0
|
125 |
//! 12. Set audio output (AudioOutput = Output_Public) .5
|
sl@0
|
126 |
//! 13. Set audio output (AudioOutput = Output_Private) .5
|
sl@0
|
127 |
//! 14. Set audio output (AudioOutput = Output_Public) 1s
|
sl@0
|
128 |
//! 15. Stop playing
|
sl@0
|
129 |
//! 16. Close file
|
sl@0
|
130 |
//! 17. Destroy AudioOutput instance
|
sl@0
|
131 |
//! 18. Destroy DevSound instance
|
sl@0
|
132 |
//!@SYMTestStatus Verified
|
sl@0
|
133 |
//!@SYMTestPriority High
|
sl@0
|
134 |
//!@SYMTestExpectedResults step 9 play the sound without error callback.
|
sl@0
|
135 |
//! All the setting steps execute successufully.
|
sl@0
|
136 |
//!@SYMTestType CIT
|
sl@0
|
137 |
|
sl@0
|
138 |
START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-p.ini
|
sl@0
|
139 |
CREATE_OBJECT CMMFDevSound devsound1
|
sl@0
|
140 |
CREATE_OBJECT CAudioOutput audiooutput1
|
sl@0
|
141 |
COMMAND devsound1 NewL
|
sl@0
|
142 |
COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-NewL_command02
|
sl@0
|
143 |
COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-OpenFile_command03
|
sl@0
|
144 |
COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-InitializeL_command04
|
sl@0
|
145 |
OUTSTANDING
|
sl@0
|
146 |
COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetPrioritySettings_command05
|
sl@0
|
147 |
COMMAND devsound1 Capabilities
|
sl@0
|
148 |
COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetConfigL_command07
|
sl@0
|
149 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command08
|
sl@0
|
150 |
COMMAND devsound1 PlayInitL
|
sl@0
|
151 |
ASYNC_DELAY 10000000
|
sl@0
|
152 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command10
|
sl@0
|
153 |
DELAY 500000
|
sl@0
|
154 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command11
|
sl@0
|
155 |
DELAY 500000
|
sl@0
|
156 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command12
|
sl@0
|
157 |
DELAY 500000
|
sl@0
|
158 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command13
|
sl@0
|
159 |
DELAY 500000
|
sl@0
|
160 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0016-0001-SetAudioOutput_command14
|
sl@0
|
161 |
DELAY 1000000
|
sl@0
|
162 |
COMMAND devsound1 Stop
|
sl@0
|
163 |
DELAY 5000000
|
sl@0
|
164 |
COMMAND devsound1 CloseFile
|
sl@0
|
165 |
COMMAND audiooutput1 ~
|
sl@0
|
166 |
COMMAND devsound1 ~
|
sl@0
|
167 |
END_TEST_BLOCK
|
sl@0
|
168 |
END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0016
|
sl@0
|
169 |
|
sl@0
|
170 |
|
sl@0
|
171 |
|
sl@0
|
172 |
|
sl@0
|
173 |
START_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0017
|
sl@0
|
174 |
|
sl@0
|
175 |
//!@SYMTestCaseID MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0017
|
sl@0
|
176 |
//!@SYMAPI
|
sl@0
|
177 |
//! void InitializeL(MDevSoundObserver {ref},TFourCC , TMMFState )
|
sl@0
|
178 |
//!@SYMAuthor jpacho
|
sl@0
|
179 |
//!@SYMCreationDate 8/11/2008
|
sl@0
|
180 |
//!@SYMTestCaseDesc Audio routing - Audio playback with different output preferences when accessory is used
|
sl@0
|
181 |
//!@SYMTestActions
|
sl@0
|
182 |
//! 1. Create DevSound instance
|
sl@0
|
183 |
//! 2. Create AudioOutput instance (DevSoundInstanceName = devsound1)
|
sl@0
|
184 |
//! 3. Open file (Filename = {drive,mmc}\multimedia\mmf\devsound\MP3\MP3_44.1k_128kbps_st_Test3.mp3)
|
sl@0
|
185 |
//! 4. Initialize DevSound (Mode = EMMFStatePlaying; FourCC = MP3)
|
sl@0
|
186 |
//! 5. Set Priority (Priority = {Priority,PriorityAudioPlayback}; Preference = {PriorityPreference,PriorityPreferenceAudioPlayback};PriorityState=EMMFStatePlaying)
|
sl@0
|
187 |
//! 6. Capabilities
|
sl@0
|
188 |
//! 7. Set Configuration (Channels = EMMFStereo; Rate = EMMFSampleRate44100Hz)
|
sl@0
|
189 |
//! 8. Set audio output (AudioOutput = Output_Private)
|
sl@0
|
190 |
//! 9.Start play for 10s
|
sl@0
|
191 |
//! 10. Set audio output (AudioOutput = Output_Public) .5
|
sl@0
|
192 |
//! 11. Set audio output (AudioOutput = Output_NoOutput) .5
|
sl@0
|
193 |
//! 12. Set audio output (AudioOutput = Output_Private) .5
|
sl@0
|
194 |
//! 13. Set audio output (AudioOutput = Output_All) .5
|
sl@0
|
195 |
//! 14. Set audio output (AudioOutput = Output_Private) 1s
|
sl@0
|
196 |
//! 15. Stop playing
|
sl@0
|
197 |
//! 16. Close file
|
sl@0
|
198 |
//! 17. Destroy AudioOutput instance
|
sl@0
|
199 |
//! 18. Destroy DevSound instance
|
sl@0
|
200 |
//!@SYMTestStatus Verified
|
sl@0
|
201 |
//!@SYMTestPriority High
|
sl@0
|
202 |
//!@SYMTestExpectedResults step 9 play the sound without error callback.
|
sl@0
|
203 |
//! All the setting steps execute successufully.
|
sl@0
|
204 |
//!@SYMTestType CIT
|
sl@0
|
205 |
|
sl@0
|
206 |
START_TEST_BLOCK 90 t_devsoundext \multimedia\mmf\devsound\multimedia-mmf-devsoundext-validation-automated-p.ini
|
sl@0
|
207 |
CREATE_OBJECT CMMFDevSound devsound1
|
sl@0
|
208 |
CREATE_OBJECT CAudioOutput audiooutput1
|
sl@0
|
209 |
COMMAND devsound1 NewL
|
sl@0
|
210 |
COMMAND audiooutput1 NewL MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-NewL_command02
|
sl@0
|
211 |
COMMAND devsound1 OpenFile MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-OpenFile_command03
|
sl@0
|
212 |
COMMAND devsound1 InitializeL MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-InitializeL_command04
|
sl@0
|
213 |
OUTSTANDING
|
sl@0
|
214 |
COMMAND devsound1 SetPrioritySettings MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetPrioritySettings_command05
|
sl@0
|
215 |
COMMAND devsound1 Capabilities
|
sl@0
|
216 |
COMMAND devsound1 SetConfigL MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetConfigL_command07
|
sl@0
|
217 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command08
|
sl@0
|
218 |
COMMAND devsound1 PlayInitL
|
sl@0
|
219 |
ASYNC_DELAY 10000000
|
sl@0
|
220 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command10
|
sl@0
|
221 |
DELAY 500000
|
sl@0
|
222 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command11
|
sl@0
|
223 |
DELAY 500000
|
sl@0
|
224 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command12
|
sl@0
|
225 |
DELAY 500000
|
sl@0
|
226 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command13
|
sl@0
|
227 |
DELAY 500000
|
sl@0
|
228 |
COMMAND audiooutput1 SetAudioOutput MULTIMEDIA-MMF-DevSoundExt-P-0017-0001-SetAudioOutput_command14
|
sl@0
|
229 |
DELAY 1000000
|
sl@0
|
230 |
COMMAND devsound1 Stop
|
sl@0
|
231 |
DELAY 5000000
|
sl@0
|
232 |
COMMAND devsound1 CloseFile
|
sl@0
|
233 |
COMMAND audiooutput1 ~
|
sl@0
|
234 |
COMMAND devsound1 ~
|
sl@0
|
235 |
END_TEST_BLOCK
|
sl@0
|
236 |
END_TESTCASE MULTIMEDIA-MMF-DEVSOUNDEXT-VALIDATION-AUTOMATED-PLAYBACK-0017
|