|
1 [Define] |
|
2 ChannelFrequencyNull 0 |
|
3 ChannelFrequency0 104000000 |
|
4 ChannelFrequency1 97500000 |
|
5 ChannelFrequency2 91300000 |
|
6 ChannelFrequency3 11300000 |
|
7 CBelowMinimumFrequency 34500000 |
|
8 AboveMaximumFrequency 23400000 |
|
9 |
|
10 Operator_A_MusicStoreName "Operator_A_MusicStore" |
|
11 Operator_A_MusicStoreUrl "Operator.A.MusicStore.fi" |
|
12 NetworkId_0 "Network_Id_1" |
|
13 CountryCode_0 "12345" |
|
14 |
|
15 ERadioHeadset 0 |
|
16 ERadioSpeaker 1 |
|
17 ERadioStereo 0 |
|
18 ERadioMono 1 |
|
19 |
|
20 KErrNotFound -1 |
|
21 KErrGeneral -2 |
|
22 KErrArgument -6 |
|
23 KErrDiskFull -26 |
|
24 KErrBadTestParameter -1000 |
|
25 KErrEventPending -2000 |
|
26 KErrCallbackErrorCode -2001 |
|
27 KErrUnexpectedValue -2002 |
|
28 KExpectedFrequencyChange -2003 |
|
29 KErrTimeoutController -2007 |
|
30 [Enddefine] |
|
31 |
|
32 [Test] |
|
33 title Example |
|
34 create SettingsTestModule Settings |
|
35 Settings Example pa ra me ters |
|
36 delete Settings |
|
37 [Endtest] |
|
38 |
|
39 // Settings API functions' tests |
|
40 |
|
41 [Test] |
|
42 title 1.1 Create Settings |
|
43 create SettingsTestModule Settings |
|
44 Settings CreateSettingsL Preset |
|
45 Settings DestroySettingsL |
|
46 delete Settings |
|
47 [Endtest] |
|
48 |
|
49 [Test] |
|
50 title 1.2 OOM for creation of Settings |
|
51 create SettingsTestModule Settings |
|
52 oomignorefailure ON |
|
53 loop 106 |
|
54 oomheapfailnext LOOP_COUNTER |
|
55 Settings CreateSettingsL Preset |
|
56 print LOOP_COUNTER |
|
57 endloop |
|
58 oomignorefailure OFF |
|
59 oomheaptonormal |
|
60 Settings DestroySettingsL |
|
61 delete Settings |
|
62 [Endtest] |
|
63 |
|
64 [Test] |
|
65 title 1.2a Read configurable keys |
|
66 create SettingsTestModule Settings |
|
67 Settings CreateSettingsL Preset |
|
68 Settings ReadConfigurableKeysL |
|
69 Settings DestroySettingsL |
|
70 delete Settings |
|
71 [Endtest] |
|
72 |
|
73 [Test] |
|
74 title 1.3 First time Start performed or not |
|
75 create SettingsTestModule Settings |
|
76 Settings CreateSettingsL Preset |
|
77 Settings tstResetStartCount |
|
78 Settings IsFirstTimeStart 1 |
|
79 Settings SetFirstTimeStartPerformed 1 |
|
80 Settings IsFirstTimeStart 0 |
|
81 Settings DestroySettingsL |
|
82 delete Settings |
|
83 [Endtest] |
|
84 |
|
85 [Test] |
|
86 title 1.4 Set UI Flags |
|
87 create SettingsTestModule Settings |
|
88 Settings CreateSettingsL Preset |
|
89 Settings SetUiFlags 123456789 |
|
90 Settings UiFlags 123456789 |
|
91 Settings DestroySettingsL |
|
92 delete Settings |
|
93 [Endtest] |
|
94 |
|
95 [Test] |
|
96 title 1.5 Set Headset Volume |
|
97 create SettingsTestModule Settings |
|
98 Settings CreateSettingsL Preset |
|
99 Settings SetHeadsetVolume 5 |
|
100 Settings HeadsetVolume 5 |
|
101 Settings DestroySettingsL |
|
102 delete Settings |
|
103 [Endtest] |
|
104 |
|
105 [Test] |
|
106 title 1.6 Set Speaker Volume |
|
107 create SettingsTestModule Settings |
|
108 Settings CreateSettingsL Preset |
|
109 Settings SetSpeakerVolume 6 |
|
110 Settings SpeakerVolume 6 |
|
111 Settings DestroySettingsL |
|
112 delete Settings |
|
113 [Endtest] |
|
114 |
|
115 [Test] |
|
116 title 1.7 Set Volume |
|
117 create SettingsTestModule Settings |
|
118 Settings CreateSettingsL Preset |
|
119 Settings SetVolume 7 |
|
120 Settings Volume 7 |
|
121 Settings DestroySettingsL |
|
122 delete Settings |
|
123 [Endtest] |
|
124 |
|
125 [Test] |
|
126 title 1.8 Output Mode |
|
127 create SettingsTestModule Settings |
|
128 Settings CreateSettingsL Preset |
|
129 Settings SetOutputMode ERadioStereo |
|
130 Settings OutputMode ERadioStereo |
|
131 Settings SetOutputMode ERadioMono |
|
132 Settings OutputMode ERadioMono |
|
133 Settings DestroySettingsL |
|
134 delete Settings |
|
135 [Endtest] |
|
136 |
|
137 [Test] |
|
138 title 1.9 Audio Route |
|
139 create SettingsTestModule Settings |
|
140 Settings CreateSettingsL Preset |
|
141 Settings SetAudioRoute ERadioHeadset |
|
142 Settings AudioRoute ERadioHeadset |
|
143 Settings SetAudioRoute ERadioHeadset |
|
144 Settings AudioRoute ERadioHeadset |
|
145 Settings DestroySettingsL |
|
146 delete Settings |
|
147 [Endtest] |
|
148 |
|
149 [Test] |
|
150 title 1.10 Headset Mute Status |
|
151 create SettingsTestModule Settings |
|
152 Settings CreateSettingsL Preset |
|
153 Settings SetHeadsetVolMuted 0 |
|
154 Settings IsHeadsetVolMuted 0 |
|
155 Settings SetHeadsetVolMuted 1 |
|
156 Settings IsHeadsetVolMuted 1 |
|
157 Settings DestroySettingsL |
|
158 delete Settings |
|
159 [Endtest] |
|
160 |
|
161 [Test] |
|
162 title 1.11 Speaker Mute Status |
|
163 create SettingsTestModule Settings |
|
164 Settings CreateSettingsL Preset |
|
165 Settings SetSpeakerVolMuted 0 |
|
166 Settings IsSpeakerVolMuted 0 |
|
167 Settings SetSpeakerVolMuted 1 |
|
168 Settings IsSpeakerVolMuted 1 |
|
169 Settings DestroySettingsL |
|
170 delete Settings |
|
171 [Endtest] |
|
172 |
|
173 [Test] |
|
174 title 1.12 Mute Status |
|
175 create SettingsTestModule Settings |
|
176 Settings CreateSettingsL Preset |
|
177 Settings SetVolMuted 0 |
|
178 Settings IsVolMuted 0 |
|
179 Settings SetVolMuted 1 |
|
180 Settings IsVolMuted 1 |
|
181 Settings DestroySettingsL |
|
182 delete Settings |
|
183 [Endtest] |
|
184 |
|
185 [Test] |
|
186 title 1.13 Power On Status |
|
187 create SettingsTestModule Settings |
|
188 Settings CreateSettingsL Preset |
|
189 Settings SetPowerOn 0 |
|
190 Settings IsPowerOn 0 |
|
191 Settings SetPowerOn 1 |
|
192 Settings IsPowerOn 1 |
|
193 Settings DestroySettingsL |
|
194 delete Settings |
|
195 [Endtest] |
|
196 |
|
197 [Test] |
|
198 title 1.14 Tuned Frequency |
|
199 create SettingsTestModule Settings |
|
200 Settings CreateSettingsL Preset |
|
201 Settings SetTunedFrequency ChannelFrequency1 |
|
202 Settings TunedFrequency ChannelFrequency1 |
|
203 Settings SetTunedFrequency ChannelFrequency3 |
|
204 Settings TunedFrequency ChannelFrequency3 |
|
205 Settings SetTunedFrequency BelowMinimumFrequency |
|
206 Settings SetTunedFrequency AboveMaximumFrequency |
|
207 Settings DestroySettingsL |
|
208 delete Settings |
|
209 [Endtest] |
|
210 |
|
211 [Test] |
|
212 title 1.15 Default Minimum Volume Level |
|
213 create SettingsTestModule Settings |
|
214 Settings CreateSettingsL Preset |
|
215 Settings DefaultMinVolumeLevel |
|
216 Settings DestroySettingsL |
|
217 delete Settings |
|
218 [Endtest] |
|
219 |
|
220 [Test] |
|
221 title 1.16 Regions' Count |
|
222 create SettingsTestModule Settings |
|
223 Settings CreateSettingsL Preset |
|
224 Settings CountRegions |
|
225 Settings DestroySettingsL |
|
226 delete Settings |
|
227 [Endtest] |
|
228 |
|
229 [Test] |
|
230 title 1.17 Region |
|
231 create SettingsTestModule Settings |
|
232 Settings CreateSettingsL Preset |
|
233 Settings Region |
|
234 Settings DestroySettingsL |
|
235 delete Settings |
|
236 [Endtest] |
|
237 |
|
238 [Test] |
|
239 title 1.18 Region's Identification |
|
240 create SettingsTestModule Settings |
|
241 Settings CreateSettingsL Preset |
|
242 Settings SetRegionId 2 |
|
243 Settings RegionId 2 |
|
244 Settings DestroySettingsL |
|
245 delete Settings |
|
246 [Endtest] |
|
247 |
|
248 [Test] |
|
249 title 1.19 Frequency Step Size |
|
250 create SettingsTestModule Settings |
|
251 Settings CreateSettingsL Preset |
|
252 Settings FrequencyStepSize |
|
253 Settings DestroySettingsL |
|
254 delete Settings |
|
255 [Endtest] |
|
256 |
|
257 [Test] |
|
258 title 1.20 Minimum Frequency |
|
259 create SettingsTestModule Settings |
|
260 Settings CreateSettingsL Preset |
|
261 Settings MinFrequency |
|
262 Settings DestroySettingsL |
|
263 delete Settings |
|
264 [Endtest] |
|
265 |
|
266 [Test] |
|
267 title 1.21 Maximum Frequency |
|
268 create SettingsTestModule Settings |
|
269 Settings CreateSettingsL Preset |
|
270 Settings MaxFrequency |
|
271 Settings DestroySettingsL |
|
272 delete Settings |
|
273 [Endtest] |
|
274 |
|
275 [Test] |
|
276 title 1.22 Decimal Count |
|
277 create SettingsTestModule Settings |
|
278 Settings CreateSettingsL Preset |
|
279 Settings DecimalCount |
|
280 Settings DestroySettingsL |
|
281 delete Settings |
|
282 [Endtest] |
|
283 |
|
284 [Test] |
|
285 title 1.23 Default Region |
|
286 create SettingsTestModule Settings |
|
287 Settings CreateSettingsL Preset |
|
288 Settings DefaultRegion |
|
289 Settings DestroySettingsL |
|
290 delete Settings |
|
291 [Endtest] |
|
292 |
|
293 [Test] |
|
294 title 1.24 Network Id |
|
295 create SettingsTestModule Settings |
|
296 Settings CreateSettingsL Preset |
|
297 Settings SetNetworkId NetworkId_0 |
|
298 Settings NetworkId NetworkId_0 |
|
299 Settings DestroySettingsL |
|
300 delete Settings |
|
301 [Endtest] |
|
302 |
|
303 [Test] |
|
304 title 1.25 Country Code |
|
305 create SettingsTestModule Settings |
|
306 Settings CreateSettingsL Preset |
|
307 Settings SetCountryCode CountryCode_0 |
|
308 Settings CountryCode CountryCode_0 |
|
309 Settings DestroySettingsL |
|
310 delete Settings |
|
311 [Endtest] |
|
312 |
|
313 [Test] |
|
314 title 1.26 Is Region Allowed |
|
315 create SettingsTestModule Settings |
|
316 Settings CreateSettingsL Preset |
|
317 Settings IsRegionAllowed |
|
318 Settings DestroySettingsL |
|
319 delete Settings |
|
320 [Endtest] |
|
321 |
|
322 [Test] |
|
323 title 1.27 Resolve Drive |
|
324 create SettingsTestModule Settings |
|
325 Settings CreateSettingsL Preset |
|
326 Settings ResolveDriveL |
|
327 Settings DestroySettingsL |
|
328 delete Settings |
|
329 [Endtest] |
|
330 |
|
331 [Test] |
|
332 title 1.28 Change of Region |
|
333 create SettingsTestModule Settings |
|
334 Settings CreateSettingsL Preset |
|
335 Settings SetRegionId 0 |
|
336 pause 10000 |
|
337 Settings RegionId 0 |
|
338 Settings DestroySettingsL |
|
339 delete Settings |
|
340 [Endtest] |