|
1 /* |
|
2 * Copyright (c) 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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: CaeTestVideoSettings.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "CaeTestVideoSettings.h" |
|
19 #include <f32file.h> |
|
20 |
|
21 |
|
22 |
|
23 CCaeTestVideoSettings::CCaeTestVideoSettings() |
|
24 { |
|
25 } |
|
26 |
|
27 |
|
28 CCaeTestVideoSettings::~CCaeTestVideoSettings() |
|
29 { |
|
30 } |
|
31 |
|
32 |
|
33 void CCaeTestVideoSettings::setUpL() |
|
34 { |
|
35 iSettingsClient = CCaeTestSettingsClient::NewL(); |
|
36 |
|
37 iSettingsClient->SetFileNameBase( KFileNameBase ); |
|
38 } |
|
39 |
|
40 //_LIT(KVideoFileName, "videoclip.3gp"); |
|
41 |
|
42 void CCaeTestVideoSettings::tearDown() |
|
43 { |
|
44 delete iSettingsClient; |
|
45 iSettingsClient = 0; |
|
46 } |
|
47 |
|
48 |
|
49 // |
|
50 // Own test functions. |
|
51 // |
|
52 // The framework will do for a test function: |
|
53 // |
|
54 // setUpL(); |
|
55 // TRAPD(leaveCode, 'myTestFunction()'); |
|
56 // "Report leave error or assertion failure for 'myTestFunction()'". |
|
57 // tearDown(); |
|
58 // |
|
59 |
|
60 |
|
61 /********************************************************/ |
|
62 /* VIDEO RECORDING DIGITAL ZOOM VALUE */ |
|
63 /********************************************************/ |
|
64 |
|
65 void CCaeTestVideoSettings::TestDigiZoomVal2L() |
|
66 { |
|
67 // Group: Settings |
|
68 // |
|
69 // ID: CAE.SET-VR.SETZOOMVALUEL.008 |
|
70 // |
|
71 // Action : Test out-of-bounds digital zoom value. |
|
72 // |
|
73 // Output : OK. |
|
74 |
|
75 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
76 |
|
77 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
78 |
|
79 TCamAppEngineInfo info; |
|
80 iSettingsClient->GetInfo( info ); |
|
81 |
|
82 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom + 1 ); |
|
83 |
|
84 //iSettingsClient->SetVideoFileName( _L("cae_digizoom_val_2.3gp") ); |
|
85 |
|
86 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared ) ); |
|
87 assertL( err != KErrNone ); |
|
88 } |
|
89 |
|
90 void CCaeTestVideoSettings::TestDigiZoomNegVal1L() |
|
91 { |
|
92 // Group: Settings |
|
93 // |
|
94 // ID: CAE.SET-VR.SETZOOMVALUEL.009 |
|
95 // |
|
96 // Action : Test digital zoom. |
|
97 // |
|
98 // Output : OK. |
|
99 |
|
100 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
101 |
|
102 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
103 |
|
104 iSettingsClient->SetDigiZoomValue( -1 ); |
|
105 |
|
106 //iSettingsClient->SetVideoFileName( _L("cae_digizoom_val_-1.3gp") ); |
|
107 |
|
108 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared ) ); |
|
109 assertL( err != KErrNone ); |
|
110 } |
|
111 |
|
112 /********************************************************/ |
|
113 /* VIDEO RECORDING DIGITAL ZOOM MODE */ |
|
114 /********************************************************/ |
|
115 |
|
116 void CCaeTestVideoSettings::TestDigiZoomMode0L() |
|
117 { |
|
118 // Group: Settings |
|
119 // |
|
120 // ID: CAE.SET-VR.SETZOOMMODEL.006 |
|
121 // |
|
122 // Action : Test digital zoom mode. |
|
123 // |
|
124 // Output : OK. |
|
125 |
|
126 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
127 |
|
128 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
129 |
|
130 iSettingsClient->SetZoomMode( 0 ); |
|
131 |
|
132 iSettingsClient->SetVideoFileName( _L("cae_digizoom_mode_0.3gp") ); |
|
133 |
|
134 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared );//verify if is correct action |
|
135 } |
|
136 |
|
137 void CCaeTestVideoSettings::TestOpticalZoomMode1L() |
|
138 { |
|
139 // Group: Settings |
|
140 // |
|
141 // ID: CAE.SET-VR.SETZOOMMODEL.007 |
|
142 // |
|
143 // Action : Test optical zoom mode. |
|
144 // |
|
145 // Output : OK. |
|
146 |
|
147 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
148 |
|
149 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
150 |
|
151 iSettingsClient->SetZoomMode( 1 ); |
|
152 |
|
153 //iSettingsClient->SetVideoFileName( _L("cae_digizoom_mode_1.3gp") ); |
|
154 |
|
155 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared ) );//verify if is correct action |
|
156 assertL( err != KErrNone );//verify if is correct action |
|
157 } |
|
158 |
|
159 void CCaeTestVideoSettings::TestOpticalDigiZoomMode2L() |
|
160 { |
|
161 // Group: Settings |
|
162 // |
|
163 // ID: CAE.SET-VR.SETZOOMMODEL.008 |
|
164 // |
|
165 // Action : Test optical digital zoom mode. |
|
166 // |
|
167 // Output : OK. |
|
168 |
|
169 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
170 |
|
171 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
172 |
|
173 iSettingsClient->SetZoomMode( 2 ); |
|
174 |
|
175 //iSettingsClient->SetVideoFileName( _L("cae_digizoom_mode_2.3gp") ); |
|
176 |
|
177 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared ) );//verify if is correct action |
|
178 assertL( err != KErrNone );//verify if is correct action |
|
179 } |
|
180 |
|
181 void CCaeTestVideoSettings::TestDigiZoomNegMode1L() |
|
182 { |
|
183 // Group: Settings |
|
184 // |
|
185 // ID: CAE.SET-VR.SETZOOMMODEL.009 |
|
186 // |
|
187 // Action : Test digital zoom mode. |
|
188 // |
|
189 // Output : OK. |
|
190 |
|
191 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
192 |
|
193 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
194 |
|
195 iSettingsClient->SetZoomMode( -1 ); |
|
196 |
|
197 //iSettingsClient->SetVideoFileName( _L("cae_digizoom_mode_-1.3gp") ); |
|
198 |
|
199 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared ) );//verify if is correct action |
|
200 assertL( err != KErrNone ); |
|
201 } |
|
202 |
|
203 /********************************************************/ |
|
204 /* VIDEO RECORDING BRIGHTNESS */ |
|
205 /********************************************************/ |
|
206 |
|
207 void CCaeTestVideoSettings::TestBrightness0L() |
|
208 { |
|
209 // Group: Settings. |
|
210 // |
|
211 // ID: CAE.SET-VR.SETBRIGHTNESSL.009 |
|
212 // |
|
213 // Action : Test brightness setting with video recording and viewfinding. |
|
214 // |
|
215 // Output : No leave. |
|
216 |
|
217 TCamAppEngineInfo info; |
|
218 iSettingsClient->GetInfo( info ); |
|
219 |
|
220 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
221 |
|
222 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
223 |
|
224 iSettingsClient->SetBrightness( 0 ); |
|
225 |
|
226 iSettingsClient->SetVideoFileName( _L("cae_brightness_0.3gp") ); |
|
227 |
|
228 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenVideoPrepared ) ); |
|
229 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
230 { |
|
231 assertL( err == KErrNone ); |
|
232 } |
|
233 else |
|
234 { |
|
235 assertL( err == KErrNotSupported ); |
|
236 } |
|
237 } |
|
238 |
|
239 void CCaeTestVideoSettings::TestBrightness100L() |
|
240 { |
|
241 // Group: Settings. |
|
242 // |
|
243 // ID: CAE.SET-VR.SETBRIGHTNESSL.010 |
|
244 // |
|
245 // Action : Test brightness setting with video recording and viewfinding. |
|
246 // |
|
247 // Output : No leave. |
|
248 |
|
249 TCamAppEngineInfo info; |
|
250 iSettingsClient->GetInfo( info ); |
|
251 |
|
252 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
253 |
|
254 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
255 |
|
256 iSettingsClient->SetBrightness( 100 ); |
|
257 |
|
258 //iSettingsClient->SetVideoFileName( _L("cae_brightness_100.3gp") ); |
|
259 |
|
260 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenVideoPrepared ) ); |
|
261 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
262 { |
|
263 assertL( err == KErrNone ); |
|
264 } |
|
265 else |
|
266 { |
|
267 assertL( err == KErrNotSupported ); |
|
268 } |
|
269 } |
|
270 |
|
271 void CCaeTestVideoSettings::TestBrightnessNeg100L() |
|
272 { |
|
273 // Group: Settings. |
|
274 // |
|
275 // ID: CAE.SET-VR.SETBRIGHTNESSL.011 |
|
276 // |
|
277 // Action : Test brightness setting with video recording and viewfinding. |
|
278 // |
|
279 // Output : No leave. |
|
280 |
|
281 TCamAppEngineInfo info; |
|
282 iSettingsClient->GetInfo( info ); |
|
283 |
|
284 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
285 |
|
286 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
287 |
|
288 iSettingsClient->SetBrightness( -100 ); |
|
289 |
|
290 //iSettingsClient->SetVideoFileName( _L("cae_brightness_-100.3gp") ); |
|
291 |
|
292 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenVideoPrepared ) ); |
|
293 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
294 { |
|
295 assertL( err == KErrNone ); |
|
296 } |
|
297 else |
|
298 { |
|
299 assertL( err == KErrNotSupported ); |
|
300 } |
|
301 } |
|
302 |
|
303 void CCaeTestVideoSettings::TestBrightness101L() |
|
304 { |
|
305 // Group: Settings. |
|
306 // |
|
307 // ID: CAE.SET-VR.SETBRIGHTNESSL.012 |
|
308 // |
|
309 // Action : Test brightness setting with video recording and viewfinding. |
|
310 // |
|
311 // Output : Leave. |
|
312 |
|
313 TCamAppEngineInfo info; |
|
314 iSettingsClient->GetInfo( info ); |
|
315 |
|
316 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
317 |
|
318 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
319 |
|
320 iSettingsClient->SetBrightness( 101 ); |
|
321 |
|
322 //iSettingsClient->SetVideoFileName( _L("cae_brightness_101.3gp") ); |
|
323 |
|
324 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenVideoPrepared ) ); |
|
325 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
326 { |
|
327 assertL( err == KErrNotSupported ); |
|
328 } |
|
329 else |
|
330 { |
|
331 assertL( err == KErrNotSupported ); |
|
332 } |
|
333 } |
|
334 |
|
335 void CCaeTestVideoSettings::TestBrightnessNeg101L() |
|
336 { |
|
337 // Group: Settings. |
|
338 // |
|
339 // ID: CAE.SET-VR.SETBRIGHTNESSL.013 |
|
340 // |
|
341 // Action : Test brightness setting with video recording and viewfinding. |
|
342 // |
|
343 // Output : Leave. |
|
344 |
|
345 TCamAppEngineInfo info; |
|
346 iSettingsClient->GetInfo( info ); |
|
347 |
|
348 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
349 |
|
350 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
351 |
|
352 iSettingsClient->SetBrightness( -101 ); |
|
353 |
|
354 //iSettingsClient->SetVideoFileName( _L("cae_brightness_-101.3gp") ); |
|
355 |
|
356 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenVideoPrepared ) ); |
|
357 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
358 { |
|
359 assertL( err == KErrNotSupported ); |
|
360 } |
|
361 else |
|
362 { |
|
363 assertL( err == KErrNotSupported ); |
|
364 } |
|
365 } |
|
366 |
|
367 /********************************************************/ |
|
368 /* VIDEO RECORDING CONTRAST */ |
|
369 /********************************************************/ |
|
370 |
|
371 void CCaeTestVideoSettings::TestContrast0L() |
|
372 { |
|
373 // Group: Settings. |
|
374 // |
|
375 // ID: CAE.SET-VR.SETCONTRASTL.009 |
|
376 // |
|
377 // Action : Test contrast setting with video recording and viewfinding. |
|
378 // |
|
379 // Output : No leave if supported. Leave if not supported. |
|
380 |
|
381 TCamAppEngineInfo info; |
|
382 iSettingsClient->GetInfo( info ); |
|
383 |
|
384 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
385 |
|
386 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
387 |
|
388 iSettingsClient->SetContrast( 0 ); |
|
389 |
|
390 iSettingsClient->SetVideoFileName( _L("cae_contrast_0.3gp") ); |
|
391 |
|
392 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenVideoPrepared ) ); |
|
393 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
394 { |
|
395 assertL( err == KErrNone ); |
|
396 } |
|
397 else |
|
398 { |
|
399 assertL( err == KErrNotSupported ); |
|
400 } |
|
401 } |
|
402 |
|
403 void CCaeTestVideoSettings::TestContrast100L() |
|
404 { |
|
405 // Group: Settings. |
|
406 // |
|
407 // ID: CAE.SET-VR.SETCONTRASTL.010 |
|
408 // |
|
409 // Action : Test contrast setting with video recording and viewfinding. |
|
410 // |
|
411 // Output : No leave if supported. Leave if not supported. |
|
412 |
|
413 TCamAppEngineInfo info; |
|
414 iSettingsClient->GetInfo( info ); |
|
415 |
|
416 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
417 |
|
418 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
419 |
|
420 iSettingsClient->SetContrast( 100 ); |
|
421 |
|
422 //iSettingsClient->SetVideoFileName( _L("cae_contrast_100.3gp") ); |
|
423 |
|
424 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenVideoPrepared ) ); |
|
425 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
426 { |
|
427 assertL( err == KErrNone ); |
|
428 } |
|
429 else |
|
430 { |
|
431 assertL( err == KErrNotSupported ); |
|
432 } |
|
433 } |
|
434 |
|
435 void CCaeTestVideoSettings::TestContrastNeg100L() |
|
436 { |
|
437 // Group: Settings. |
|
438 // |
|
439 // ID: CAE.SET-VR.SETCONTRASTL.011 |
|
440 // |
|
441 // Action : Test contrast setting with video recording and viewfinding. |
|
442 // |
|
443 // Output : No leave if supported. Leave if not supported. |
|
444 |
|
445 TCamAppEngineInfo info; |
|
446 iSettingsClient->GetInfo( info ); |
|
447 |
|
448 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
449 |
|
450 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
451 |
|
452 iSettingsClient->SetContrast( -100 ); |
|
453 |
|
454 //iSettingsClient->SetVideoFileName( _L("cae_contrast_-100.3gp") ); |
|
455 |
|
456 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenVideoPrepared ) ); |
|
457 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
458 { |
|
459 assertL( err == KErrNone ); |
|
460 } |
|
461 else |
|
462 { |
|
463 assertL( err == KErrNotSupported ); |
|
464 } |
|
465 } |
|
466 |
|
467 void CCaeTestVideoSettings::TestContrast101L() |
|
468 { |
|
469 // Group: Settings. |
|
470 // |
|
471 // ID: CAE.SET-VR.SETCONTRASTL.012 |
|
472 // |
|
473 // Action : Test contrast setting with video recording and viewfinding. |
|
474 // |
|
475 // Output : Leave. |
|
476 |
|
477 TCamAppEngineInfo info; |
|
478 iSettingsClient->GetInfo( info ); |
|
479 |
|
480 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
481 |
|
482 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
483 |
|
484 iSettingsClient->SetContrast( 101 ); |
|
485 |
|
486 //iSettingsClient->SetVideoFileName( _L("cae_contrast_101.3gp") ); |
|
487 |
|
488 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenVideoPrepared ) ); |
|
489 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
490 { |
|
491 assertL( err == KErrNotSupported ); |
|
492 } |
|
493 else |
|
494 { |
|
495 assertL( err == KErrNotSupported ); |
|
496 } |
|
497 } |
|
498 |
|
499 void CCaeTestVideoSettings::TestContrastNeg101L() |
|
500 { |
|
501 // Group: Settings. |
|
502 // |
|
503 // ID: CAE.SET-VR.SETCONTRASTL.013 |
|
504 // |
|
505 // Action : Test contrast setting with video recording and viewfinding. |
|
506 // |
|
507 // Output : Leave. |
|
508 |
|
509 TCamAppEngineInfo info; |
|
510 iSettingsClient->GetInfo( info ); |
|
511 |
|
512 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
513 |
|
514 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
515 |
|
516 iSettingsClient->SetContrast( -101 ); |
|
517 |
|
518 //iSettingsClient->SetVideoFileName( _L("cae_contrast_-101.3gp") ); |
|
519 |
|
520 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenVideoPrepared ) ); |
|
521 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
522 { |
|
523 assertL( err == KErrNotSupported ); |
|
524 } |
|
525 else |
|
526 { |
|
527 assertL( err == KErrNotSupported ); |
|
528 } |
|
529 } |
|
530 |
|
531 |
|
532 /********************************************************/ |
|
533 /* VIDEO RECORDING EXPOSURE MODE */ |
|
534 /********************************************************/ |
|
535 |
|
536 |
|
537 void CCaeTestVideoSettings::TestExposureMode2L() |
|
538 { |
|
539 // Group: Settings. |
|
540 // |
|
541 // ID: CAE.SET-VR.SETEXPOSUREMODEL.010 |
|
542 // |
|
543 // Action : Test exposure mode 2. |
|
544 // |
|
545 // Output : No leave if the mode is supported. Leave if not supported. |
|
546 |
|
547 const TInt KSetVal = 2; |
|
548 |
|
549 TCamAppEngineInfo info; |
|
550 iSettingsClient->GetInfo( info ); |
|
551 |
|
552 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
553 |
|
554 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
555 |
|
556 iSettingsClient->SetExposureMode( KSetVal ); |
|
557 |
|
558 iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_2.3gp") ); |
|
559 |
|
560 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoPrepared ) ); |
|
561 if ( KSetVal & info.iExposureModesSupported ) |
|
562 { |
|
563 assertL( err == KErrNone ); |
|
564 } |
|
565 else |
|
566 { |
|
567 assertL( err != KErrNone ); |
|
568 } |
|
569 } |
|
570 |
|
571 void CCaeTestVideoSettings::TestExposureMode4L() |
|
572 { |
|
573 // Group: Settings. |
|
574 // |
|
575 // ID: CAE.SET-VR.SETEXPOSUREMODEL.011 |
|
576 // |
|
577 // Action : Test exposure mode 4 |
|
578 // |
|
579 // Output : No leave if the mode is supported. Leave if not supported. |
|
580 |
|
581 const TInt KSetVal = 4; |
|
582 |
|
583 TCamAppEngineInfo info; |
|
584 iSettingsClient->GetInfo( info ); |
|
585 |
|
586 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
587 |
|
588 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
589 |
|
590 iSettingsClient->SetExposureMode( KSetVal ); |
|
591 |
|
592 iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_4.3gp") ); |
|
593 |
|
594 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoPrepared ) ); |
|
595 if ( KSetVal & info.iExposureModesSupported ) |
|
596 { |
|
597 assertL( err == KErrNone ); |
|
598 } |
|
599 else |
|
600 { |
|
601 assertL( err != KErrNone ); |
|
602 } |
|
603 } |
|
604 |
|
605 void CCaeTestVideoSettings::TestExposureModeNeg1L() |
|
606 { |
|
607 // Group: Settings. |
|
608 // |
|
609 // ID: CAE.SET-VR.SETEXPOSUREMODEL.012 |
|
610 // |
|
611 // Action : Test invalid exposure mode |
|
612 // |
|
613 // Output : Leave. |
|
614 |
|
615 const TInt KSetVal = -1; |
|
616 |
|
617 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
618 |
|
619 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
620 |
|
621 iSettingsClient->SetExposureMode( KSetVal ); |
|
622 |
|
623 //iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_-1.3gp") ); |
|
624 |
|
625 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoPrepared ) ); |
|
626 assertL( err == KErrNotSupported ); |
|
627 } |
|
628 |
|
629 void CCaeTestVideoSettings::TestExposureMode5L() |
|
630 { |
|
631 // Group: Settings. |
|
632 // |
|
633 // ID: CAE.SET-VR.SETEXPOSUREMODEL.013 |
|
634 // |
|
635 // Action : Test combined exposure modes. |
|
636 // |
|
637 // Output : Leave. |
|
638 |
|
639 const TInt KSetVal = 5; |
|
640 |
|
641 TCamAppEngineInfo info; |
|
642 iSettingsClient->GetInfo( info ); |
|
643 |
|
644 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
645 |
|
646 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
647 |
|
648 iSettingsClient->SetExposureMode( KSetVal ); |
|
649 |
|
650 // iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_5.3gp") ); |
|
651 |
|
652 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoPrepared ) ); |
|
653 if ( KSetVal & info.iExposureModesSupported ) |
|
654 { |
|
655 assertL( err != KErrNotSupported ); |
|
656 } |
|
657 else |
|
658 { |
|
659 assertL( err == KErrNotSupported ); |
|
660 } |
|
661 } |
|
662 |
|
663 /********************************************************/ |
|
664 /* VIDEO RECORDING WHITE BALANCE MODE */ |
|
665 /********************************************************/ |
|
666 |
|
667 void CCaeTestVideoSettings::TestWhiteBalanceMode1L() |
|
668 { |
|
669 // Group: Settings. |
|
670 // |
|
671 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.011 |
|
672 // |
|
673 // Action : Test white balance setting with video recording and viewfinding. |
|
674 // |
|
675 // Output : No leave if the mode is supported. Leave if not supported. |
|
676 |
|
677 const TInt KSetVal = 1; |
|
678 |
|
679 TCamAppEngineInfo info; |
|
680 iSettingsClient->GetInfo( info ); |
|
681 |
|
682 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
683 |
|
684 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
685 |
|
686 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
687 |
|
688 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_1.3gp") ); |
|
689 |
|
690 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
691 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
692 { |
|
693 assertL( err == KErrNone ); |
|
694 } |
|
695 else |
|
696 { |
|
697 assertL( err == KErrNotSupported ); |
|
698 } |
|
699 } |
|
700 |
|
701 void CCaeTestVideoSettings::TestWhiteBalanceMode2L() |
|
702 { |
|
703 // Group: Settings. |
|
704 // |
|
705 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.012 |
|
706 // |
|
707 // Action : Test white balance setting with video recording and viewfinding. |
|
708 // |
|
709 // Output : No leave if the mode is supported. Leave if not supported. |
|
710 |
|
711 const TInt KSetVal = 2; |
|
712 |
|
713 TCamAppEngineInfo info; |
|
714 iSettingsClient->GetInfo( info ); |
|
715 |
|
716 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
717 |
|
718 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
719 |
|
720 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
721 |
|
722 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_2.3gp") ); |
|
723 |
|
724 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
725 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
726 { |
|
727 assertL( err == KErrNone ); |
|
728 } |
|
729 else |
|
730 { |
|
731 assertL( err == KErrNotSupported ); |
|
732 } |
|
733 } |
|
734 |
|
735 void CCaeTestVideoSettings::TestWhiteBalanceMode4L() |
|
736 { |
|
737 // Group: Settings. |
|
738 // |
|
739 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.013 |
|
740 // |
|
741 // Action : Test white balance setting with video recording and viewfinding. |
|
742 // |
|
743 // Output : No leave if the mode is supported. Leave if not supported. |
|
744 |
|
745 const TInt KSetVal = 4; |
|
746 |
|
747 TCamAppEngineInfo info; |
|
748 iSettingsClient->GetInfo( info ); |
|
749 |
|
750 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
751 |
|
752 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
753 |
|
754 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
755 |
|
756 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_4.3gp") ); |
|
757 |
|
758 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
759 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
760 { |
|
761 assertL( err == KErrNone ); |
|
762 } |
|
763 else |
|
764 { |
|
765 assertL( err == KErrNotSupported ); |
|
766 } |
|
767 } |
|
768 |
|
769 void CCaeTestVideoSettings::TestWhiteBalanceMode8L() |
|
770 { |
|
771 // Group: Settings. |
|
772 // |
|
773 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.014 |
|
774 // |
|
775 // Action : Test white balance setting with video recording and viewfinding. |
|
776 // |
|
777 // Output : No leave if the mode is supported. Leave if not supported. |
|
778 |
|
779 const TInt KSetVal = 8; |
|
780 |
|
781 TCamAppEngineInfo info; |
|
782 iSettingsClient->GetInfo( info ); |
|
783 |
|
784 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
785 |
|
786 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
787 |
|
788 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
789 |
|
790 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_8.3gp") ); |
|
791 |
|
792 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
793 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
794 { |
|
795 assertL( err == KErrNone ); |
|
796 } |
|
797 else |
|
798 { |
|
799 assertL( err == KErrNotSupported ); |
|
800 } |
|
801 } |
|
802 |
|
803 void CCaeTestVideoSettings::TestWhiteBalanceMode10L() |
|
804 { |
|
805 // Group: Settings. |
|
806 // |
|
807 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.015 |
|
808 // |
|
809 // Action : Test white balance setting with video recording and viewfinding. |
|
810 // |
|
811 // Output : No leave if the mode is supported. Leave if not supported. |
|
812 |
|
813 const TInt KSetVal = 0x10; |
|
814 |
|
815 TCamAppEngineInfo info; |
|
816 iSettingsClient->GetInfo( info ); |
|
817 |
|
818 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
819 |
|
820 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
821 |
|
822 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
823 |
|
824 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_10.3gp") ); |
|
825 |
|
826 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
827 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
828 { |
|
829 assertL( err == KErrNone ); |
|
830 } |
|
831 else |
|
832 { |
|
833 assertL( err == KErrNotSupported ); |
|
834 } |
|
835 } |
|
836 |
|
837 void CCaeTestVideoSettings::TestWhiteBalanceModeNeg1L() |
|
838 { |
|
839 // Group: Settings. |
|
840 // |
|
841 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.016 |
|
842 // |
|
843 // Action : Test white balance setting with video recording and viewfinding. |
|
844 // |
|
845 // Output : Leave. |
|
846 |
|
847 const TInt KSetVal = -1; |
|
848 |
|
849 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
850 |
|
851 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
852 |
|
853 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
854 |
|
855 //iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_-1.3gp") ); |
|
856 |
|
857 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
858 assertL( err != KErrNone ); |
|
859 } |
|
860 |
|
861 void CCaeTestVideoSettings::TestWhiteBalanceMode5L() |
|
862 { |
|
863 // Group: Settings. |
|
864 // |
|
865 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.017 |
|
866 // |
|
867 // Action : Test white balance setting with video recording and viewfinding. |
|
868 // |
|
869 // Output : Leave. |
|
870 |
|
871 const TInt KSetVal = 5; |
|
872 |
|
873 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
874 |
|
875 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
876 |
|
877 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
878 |
|
879 //iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_5.3gp") ); |
|
880 |
|
881 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
882 assertL( err != KErrNone ); |
|
883 } |
|
884 |
|
885 void CCaeTestVideoSettings::TestWhiteBalanceMode12L() |
|
886 { |
|
887 // Group: Settings. |
|
888 // |
|
889 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.018 |
|
890 // |
|
891 // Action : Test white balance setting with video recording and viewfinding. |
|
892 // |
|
893 // Output : Leave. |
|
894 |
|
895 const TInt KSetVal = 0x12; // illegal combination of cloudy & flash |
|
896 |
|
897 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
898 |
|
899 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
900 |
|
901 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
902 |
|
903 //iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_12.3gp") ); |
|
904 |
|
905 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ) ); |
|
906 assertL( err != KErrNone ); |
|
907 } |
|
908 |
|
909 /********************************************************/ |
|
910 /* VIDEO RECORDING FLASH MODE */ |
|
911 /********************************************************/ |
|
912 |
|
913 void CCaeTestVideoSettings::TestFlashMode0L() |
|
914 { |
|
915 // Group: Settings. |
|
916 // |
|
917 // ID: CAE.SET-VR.SETFLASHMODEL.009 |
|
918 // |
|
919 // Action : Test flash mode setting with video recording and viewfinding. |
|
920 // |
|
921 // Output : No leave. |
|
922 |
|
923 const TInt KSetVal = 0; |
|
924 |
|
925 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
926 |
|
927 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
928 |
|
929 iSettingsClient->SetFlashMode( KSetVal ); |
|
930 |
|
931 iSettingsClient->SetVideoFileName( _L("cae_flash_mode_0.3gp") ); |
|
932 |
|
933 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoPrepared ); |
|
934 } |
|
935 |
|
936 void CCaeTestVideoSettings::TestFlashMode1L() |
|
937 { |
|
938 // Group: Settings. |
|
939 // |
|
940 // ID: CAE.SET-VR.SETFLASHMODEL.010 |
|
941 // |
|
942 // Action : Test flash mode setting with video recording and viewfinding. |
|
943 // |
|
944 // Output : No leave if the mode is supported. Leave if not supported. |
|
945 |
|
946 const TInt KSetVal = 1; |
|
947 |
|
948 TCamAppEngineInfo info; |
|
949 iSettingsClient->GetInfo( info ); |
|
950 |
|
951 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
952 |
|
953 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
954 |
|
955 iSettingsClient->SetFlashMode( KSetVal ); |
|
956 |
|
957 iSettingsClient->SetVideoFileName( _L("cae_flash_mode_1.3gp") ); |
|
958 |
|
959 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoPrepared ) ); |
|
960 if ( KSetVal & info.iFlashModesSupported ) |
|
961 { |
|
962 assertL( err == KErrNone ); |
|
963 } |
|
964 else |
|
965 { |
|
966 assertL( err == KErrNotSupported ); |
|
967 } |
|
968 } |
|
969 |
|
970 void CCaeTestVideoSettings::TestFlashMode2L() |
|
971 { |
|
972 // Group: Settings. |
|
973 // |
|
974 // ID: CAE.SET-VR.SETFLASHMODEL.011 |
|
975 // |
|
976 // Action : Test flash mode setting with video recording and viewfinding. |
|
977 // |
|
978 // Output : No leave if the mode is supported. Leave if not supported. |
|
979 |
|
980 const TInt KSetVal = 2; |
|
981 |
|
982 TCamAppEngineInfo info; |
|
983 iSettingsClient->GetInfo( info ); |
|
984 |
|
985 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
986 |
|
987 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
988 |
|
989 iSettingsClient->SetFlashMode( KSetVal ); |
|
990 |
|
991 iSettingsClient->SetVideoFileName( _L("cae_flash_mode_2.3gp") ); |
|
992 |
|
993 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoPrepared ) ); |
|
994 if ( KSetVal & info.iFlashModesSupported ) |
|
995 { |
|
996 assertL( err == KErrNone ); |
|
997 } |
|
998 else |
|
999 { |
|
1000 assertL( err == KErrNotSupported ); |
|
1001 } |
|
1002 } |
|
1003 |
|
1004 void CCaeTestVideoSettings::TestFlashMode4L() |
|
1005 { |
|
1006 // Group: Settings. |
|
1007 // |
|
1008 // ID: CAE.SET-VR.SETFLASHMODEL.012 |
|
1009 // |
|
1010 // Action : Test flash mode setting with video recording and viewfinding. |
|
1011 // |
|
1012 // Output : No leave if the mode is supported. Leave if not supported. |
|
1013 |
|
1014 const TInt KSetVal = 4; |
|
1015 |
|
1016 TCamAppEngineInfo info; |
|
1017 iSettingsClient->GetInfo( info ); |
|
1018 |
|
1019 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1020 |
|
1021 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1022 |
|
1023 iSettingsClient->SetFlashMode( KSetVal ); |
|
1024 |
|
1025 iSettingsClient->SetVideoFileName( _L("cae_flash_mode_4.3gp") ); |
|
1026 |
|
1027 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoPrepared ) ); |
|
1028 if ( KSetVal & info.iFlashModesSupported ) |
|
1029 { |
|
1030 assertL( err == KErrNone ); |
|
1031 } |
|
1032 else |
|
1033 { |
|
1034 assertL( err == KErrNotSupported ); |
|
1035 } |
|
1036 } |
|
1037 |
|
1038 void CCaeTestVideoSettings::TestFlashMode8L() |
|
1039 { |
|
1040 // Group: Settings. |
|
1041 // |
|
1042 // ID: CAE.SET-VR.SETFLASHMODEL.013 |
|
1043 // |
|
1044 // Action : Test flash mode setting with video recording and viewfinding. |
|
1045 // |
|
1046 // Output : No leave if the mode is supported. Leave if not supported. |
|
1047 |
|
1048 const TInt KSetVal = 8; |
|
1049 |
|
1050 TCamAppEngineInfo info; |
|
1051 iSettingsClient->GetInfo( info ); |
|
1052 |
|
1053 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1054 |
|
1055 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1056 |
|
1057 iSettingsClient->SetFlashMode( KSetVal ); |
|
1058 |
|
1059 iSettingsClient->SetVideoFileName( _L("cae_flash_mode_8.3gp") ); |
|
1060 |
|
1061 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoPrepared ) ); |
|
1062 if ( KSetVal & info.iFlashModesSupported ) |
|
1063 { |
|
1064 assertL( err == KErrNone ); |
|
1065 } |
|
1066 else |
|
1067 { |
|
1068 assertL( err == KErrNotSupported ); |
|
1069 } |
|
1070 } |
|
1071 |
|
1072 void CCaeTestVideoSettings::TestFlashModeNeg1L() |
|
1073 { |
|
1074 // Group: Settings. |
|
1075 // |
|
1076 // ID: CAE.SET-VR.SETFLASHMODEL.014 |
|
1077 // |
|
1078 // Action : Test flash mode setting with video recording and viewfinding. |
|
1079 // |
|
1080 // Output : Leave. |
|
1081 |
|
1082 const TInt KSetVal = -1; |
|
1083 |
|
1084 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1085 |
|
1086 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1087 |
|
1088 iSettingsClient->SetFlashMode( KSetVal ); |
|
1089 |
|
1090 //iSettingsClient->SetVideoFileName( _L("cae_flash_mode_-1.3gp") ); |
|
1091 |
|
1092 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoPrepared ) ); |
|
1093 assertL( err != KErrNone ); |
|
1094 } |
|
1095 |
|
1096 void CCaeTestVideoSettings::TestFlashMode5L() |
|
1097 { |
|
1098 // Group: Settings. |
|
1099 // |
|
1100 // ID: CAE.SET-VR.SETFLASHMODEL.015 |
|
1101 // |
|
1102 // Action : Test flash mode setting with video recording and viewfinding. |
|
1103 // |
|
1104 // Output : Leave. |
|
1105 |
|
1106 const TInt KSetVal = 5; |
|
1107 |
|
1108 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1109 |
|
1110 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1111 |
|
1112 iSettingsClient->SetFlashMode( KSetVal ); |
|
1113 |
|
1114 //iSettingsClient->SetVideoFileName( _L("cae_flash_mode_5.3gp") ); |
|
1115 |
|
1116 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoPrepared ) ); |
|
1117 assertL( err != KErrNone ); |
|
1118 } |
|
1119 |
|
1120 /********************************************************/ |
|
1121 /* VIDEO RECORDING CLIP MAX SIZE */ |
|
1122 /********************************************************/ |
|
1123 |
|
1124 void CCaeTestVideoSettings::TestVideoClipMaxSize0L() |
|
1125 { |
|
1126 // Group: Settings. |
|
1127 // |
|
1128 //ID: CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.001 |
|
1129 // |
|
1130 // Action : Test video clip max size setting with video recording. |
|
1131 // |
|
1132 // Output : No leave. |
|
1133 |
|
1134 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1135 |
|
1136 iSettingsClient->SetTimeout( 5000000 ); |
|
1137 |
|
1138 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1139 |
|
1140 iSettingsClient->SetVideoClipMaxSize( 0 ); |
|
1141 |
|
1142 iSettingsClient->SetVideoFileName( _L("cae_clip_max_size_0.3gp") ); |
|
1143 |
|
1144 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetClipMaxSizeWhenVideoPrepared ); |
|
1145 } |
|
1146 |
|
1147 void CCaeTestVideoSettings::TestVideoClipMaxSizeNeg1L() |
|
1148 { |
|
1149 // Group: Settings. |
|
1150 // |
|
1151 //ID: CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.003 |
|
1152 // |
|
1153 // Action : Test video clip max size setting with video recording. |
|
1154 // |
|
1155 // Output : No leave. |
|
1156 |
|
1157 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1158 |
|
1159 iSettingsClient->SetTimeout( 5000000 ); |
|
1160 |
|
1161 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1162 |
|
1163 iSettingsClient->SetVideoClipMaxSize( -1 ); |
|
1164 |
|
1165 iSettingsClient->SetVideoFileName( _L("cae_clip_max_size_-1.3gp") ); |
|
1166 |
|
1167 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetClipMaxSizeWhenVideoPrepared ); |
|
1168 } |
|
1169 |
|
1170 /* |
|
1171 void CCaeTestVideoSettings::TestVideoClipMaxSize10001L() |
|
1172 { |
|
1173 // Group: Settings. |
|
1174 // |
|
1175 //ID: CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.004 |
|
1176 // |
|
1177 // Action : Test video clip max size setting with video recording. |
|
1178 // |
|
1179 // Output : No leave. |
|
1180 |
|
1181 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1182 |
|
1183 iSettingsClient->SetTimeout( 10000000 ); |
|
1184 |
|
1185 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1186 |
|
1187 iSettingsClient->SetVideoClipMaxSize( 10001 ); |
|
1188 |
|
1189 iSettingsClient->SetVideoFileName( _L("cae_clip_max_size_10001.3gp") ); |
|
1190 |
|
1191 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetClipMaxSizeWhenVideoPrepared ) ); |
|
1192 assertL( err == KErrCompletion ); |
|
1193 } |
|
1194 */ |
|
1195 |
|
1196 /********************************************************/ |
|
1197 /* VIDEO RECORDING AUDIO */ |
|
1198 /********************************************************/ |
|
1199 |
|
1200 void CCaeTestVideoSettings::TestVideoAudioETrueL() |
|
1201 { |
|
1202 // Group: Settings. |
|
1203 // |
|
1204 // ID: CAE.SET-VR.SETVIDEOAUDIO.001 |
|
1205 // |
|
1206 // Action : Test audio enable setting with video recording and viewfinding. |
|
1207 // |
|
1208 // Output : No leave. |
|
1209 |
|
1210 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1211 |
|
1212 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1213 |
|
1214 iSettingsClient->SetVideoAudio( ETrue ); |
|
1215 |
|
1216 iSettingsClient->SetVideoFileName( _L("cae_video_audio_true.3gp") ); |
|
1217 |
|
1218 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetAudioWhenVideoPrepared ); |
|
1219 } |
|
1220 |
|
1221 void CCaeTestVideoSettings::TestVideoAudioEFalseL() |
|
1222 { |
|
1223 // Group: Settings. |
|
1224 // |
|
1225 // ID: CAE.SET-VR.SETVIDEOAUDIO.002 |
|
1226 // |
|
1227 // Action : Test audio enable setting with video recording and viewfinding. |
|
1228 // |
|
1229 // Output : No leave. |
|
1230 |
|
1231 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1232 |
|
1233 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1234 |
|
1235 iSettingsClient->SetVideoAudio( EFalse ); |
|
1236 |
|
1237 iSettingsClient->SetVideoFileName( _L("cae_video_audio_false.3gp") ); |
|
1238 |
|
1239 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetAudioWhenVideoPrepared ); |
|
1240 } |
|
1241 |
|
1242 |
|
1243 /********************************************************/ |
|
1244 /* VIDEO RECORDING */ |
|
1245 /********************************************************/ |
|
1246 |
|
1247 void CCaeTestVideoSettings::TestExposureModeRecording2L() |
|
1248 { |
|
1249 // Group: Settings. |
|
1250 // |
|
1251 // ID: CAE.SET-VR.SETEXPOSUREMODEL.014 |
|
1252 // |
|
1253 // Action : Test exposure mode |
|
1254 // |
|
1255 // Output : No leave if mode is supported. Leave if not supported. |
|
1256 |
|
1257 const TInt KSetVal = 2; |
|
1258 |
|
1259 TCamAppEngineInfo info; |
|
1260 iSettingsClient->GetInfo( info ); |
|
1261 |
|
1262 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1263 |
|
1264 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1265 |
|
1266 iSettingsClient->SetExposureMode( KSetVal ); |
|
1267 |
|
1268 iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_recording_2.3gp") ); |
|
1269 |
|
1270 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoRecording ) ); |
|
1271 if ( KSetVal & info.iExposureModesSupported ) |
|
1272 { |
|
1273 assertL( err == KErrNone ); |
|
1274 } |
|
1275 else |
|
1276 { |
|
1277 assertL( err == KErrNotSupported ); |
|
1278 } |
|
1279 } |
|
1280 |
|
1281 void CCaeTestVideoSettings::TestWhiteBalanceModeRecording2L() |
|
1282 { |
|
1283 // Group: Settings. |
|
1284 // |
|
1285 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.018 |
|
1286 // |
|
1287 // Action : Test white balance setting with Video image capture and viewfinding. |
|
1288 // |
|
1289 // Output : No leave if the mode is supported. Leave if not supported. |
|
1290 |
|
1291 const TInt KSetVal = 2; |
|
1292 |
|
1293 TCamAppEngineInfo info; |
|
1294 iSettingsClient->GetInfo( info ); |
|
1295 |
|
1296 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1297 |
|
1298 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1299 |
|
1300 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
1301 |
|
1302 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_recording_2.3gp") ); |
|
1303 |
|
1304 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoRecording ) ); |
|
1305 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
1306 { |
|
1307 assertL( err == KErrNone ); |
|
1308 } |
|
1309 else |
|
1310 { |
|
1311 assertL( err == KErrNotSupported ); |
|
1312 } |
|
1313 } |
|
1314 |
|
1315 void CCaeTestVideoSettings::TestFlashModeRecording2L() |
|
1316 { |
|
1317 // Group: Settings. |
|
1318 // |
|
1319 // ID: CAE.SET-VR.SETFLASHMODEL.016 |
|
1320 // |
|
1321 // Action : Test flash mode setting with Video image capture and viewfinding. |
|
1322 // |
|
1323 // Output : No leave if the mode is supported. Leave if not supported. |
|
1324 |
|
1325 const TInt KSetVal = 2; |
|
1326 |
|
1327 TCamAppEngineInfo info; |
|
1328 iSettingsClient->GetInfo( info ); |
|
1329 |
|
1330 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1331 |
|
1332 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1333 |
|
1334 iSettingsClient->SetFlashMode( KSetVal ); |
|
1335 |
|
1336 iSettingsClient->SetVideoFileName( _L("cae_flash_mode_recording_2.3gp") ); |
|
1337 |
|
1338 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenVideoRecording ) ); |
|
1339 if ( KSetVal & info.iFlashModesSupported ) |
|
1340 { |
|
1341 assertL( err == KErrNone ); |
|
1342 } |
|
1343 else |
|
1344 { |
|
1345 assertL( err == KErrNotSupported ); |
|
1346 } |
|
1347 } |
|
1348 |
|
1349 void CCaeTestVideoSettings::TestDigiZoomRecordingMode0L() |
|
1350 { |
|
1351 // Group: Settings |
|
1352 // |
|
1353 // ID: CAE.SET-VR.SETZOOMMODEL.010 // ID: CAE.SET-VR.SETZOOMMODEL.006 |
|
1354 // |
|
1355 // |
|
1356 // Action : Test digital zoom mode. |
|
1357 // |
|
1358 // Output : OK. |
|
1359 |
|
1360 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1361 |
|
1362 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1363 |
|
1364 iSettingsClient->SetZoomMode( 0 ); |
|
1365 |
|
1366 iSettingsClient->SetVideoFileName( _L("cae_digizoom_recording_mode_0.3gp") ); |
|
1367 |
|
1368 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoRecording );//verify if is correct action |
|
1369 } |
|
1370 |
|
1371 void CCaeTestVideoSettings::TestVideoClipMaxSizeRecording10000L() |
|
1372 { |
|
1373 // Group: Settings. |
|
1374 // |
|
1375 //ID: CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.005 |
|
1376 // |
|
1377 // Action : Test video clip max size setting with video recording and viewfinding. |
|
1378 // |
|
1379 // Output : Leave. |
|
1380 |
|
1381 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1382 |
|
1383 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1384 |
|
1385 iSettingsClient->SetVideoClipMaxSize( 10000 ); |
|
1386 |
|
1387 iSettingsClient->SetVideoFileName( _L("cae_clip_max_size_recording_10000.3gp") ); |
|
1388 |
|
1389 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetClipMaxSizeWhenVideoRecording ) ); |
|
1390 assertL( err == KErrNotReady ); |
|
1391 } |
|
1392 |
|
1393 void CCaeTestVideoSettings::TestVideoClipMaxSizeNotInitialized10000L() |
|
1394 { |
|
1395 // Group: Settings. |
|
1396 // |
|
1397 //ID: CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.006 |
|
1398 // |
|
1399 // Action : Test video clip max size setting with video recording and viewfinding. |
|
1400 // |
|
1401 // Output : Leave. |
|
1402 |
|
1403 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1404 |
|
1405 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1406 |
|
1407 iSettingsClient->SetVideoClipMaxSize( 10000 ); |
|
1408 |
|
1409 iSettingsClient->SetVideoFileName( _L("cae_clip_max_size_recording_10000.3gp") ); |
|
1410 |
|
1411 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetClipMaxSizeWhenVideoNotInitialized ) ); |
|
1412 assertL( err == KErrNotReady ); |
|
1413 } |
|
1414 |
|
1415 void CCaeTestVideoSettings::TestVideoAudioRecordingETrueL() |
|
1416 { |
|
1417 // Group: Settings. |
|
1418 // |
|
1419 // ID: CAE.SET-VR.SETVIDEOAUDIO.003 |
|
1420 // |
|
1421 // Action : Test audio enable setting with video recording and viewfinding. |
|
1422 // |
|
1423 // Output : Leave. |
|
1424 |
|
1425 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1426 |
|
1427 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1428 |
|
1429 iSettingsClient->SetVideoAudio( ETrue ); |
|
1430 |
|
1431 iSettingsClient->SetVideoFileName( _L("cae_video_audio_recording_true.3gp") ); |
|
1432 |
|
1433 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetAudioWhenVideoRecording ) ); |
|
1434 assertL( err == KErrNotReady ); |
|
1435 } |
|
1436 |
|
1437 void CCaeTestVideoSettings::TestVideoAudioNotInitializedL() |
|
1438 { |
|
1439 // Group: Settings. |
|
1440 // |
|
1441 // ID: CAE.SET-VR.SETVIDEOAUDIO.004 |
|
1442 // |
|
1443 // Action : Test audio enable setting with video not initialized. |
|
1444 // |
|
1445 // Output : Leave. |
|
1446 |
|
1447 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1448 |
|
1449 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1450 |
|
1451 iSettingsClient->SetVideoAudio( ETrue ); |
|
1452 |
|
1453 iSettingsClient->SetVideoFileName( _L("cae_video_audio_recording_notinit.3gp") ); |
|
1454 |
|
1455 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetAudioWhenVideoNotInitialized ) ); |
|
1456 assertL( err == KErrNotReady ); |
|
1457 } |
|
1458 void CCaeTestVideoSettings::TestGetVideoAudioNotInitializedL() |
|
1459 { |
|
1460 // Group: Settings. |
|
1461 // |
|
1462 // ID: CAE.GET-VR.GETVIDEOAUDIO.005 |
|
1463 // |
|
1464 // Action : Test video audio |
|
1465 // |
|
1466 // Output : No leave. |
|
1467 |
|
1468 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1469 |
|
1470 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1471 |
|
1472 iSettingsClient->SetVideoAudio( EFalse ); |
|
1473 |
|
1474 iSettingsClient->SetVideoFileName( _L("cae_video_audio_notinit.3gp") ); |
|
1475 |
|
1476 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetAudioWhenVideoNotInitialized ); |
|
1477 } |
|
1478 |
|
1479 /********************************************************/ |
|
1480 /* VIDEO RECORDING FILE NAME */ |
|
1481 /********************************************************/ |
|
1482 |
|
1483 void CCaeTestVideoSettings::TestSetVideoFileNameL() |
|
1484 { |
|
1485 // Group: Settings. |
|
1486 // |
|
1487 // ID: CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.001 |
|
1488 // |
|
1489 // Action : Try to set valid file name for the video clip to be recorded. |
|
1490 // Video recorder initialization is done . |
|
1491 // |
|
1492 // Output : No leave. File KVideoFileName, "videoclip.3gp". |
|
1493 |
|
1494 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1495 |
|
1496 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1497 |
|
1498 iSettingsClient->SetVideoFileName( _L("videoclip.3gp") ); |
|
1499 |
|
1500 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoFileNameWhenInitialized ); |
|
1501 |
|
1502 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1503 } |
|
1504 |
|
1505 |
|
1506 void CCaeTestVideoSettings::TestSetEmptyVideoFileNameL() |
|
1507 { |
|
1508 // Group: Settings. |
|
1509 // |
|
1510 // ID: CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.002 |
|
1511 // |
|
1512 // Action : Try to set invalid (empty) file name for the video clip to be recorded. |
|
1513 // Video recorder initialization is done . |
|
1514 // |
|
1515 // Output : Leave. |
|
1516 |
|
1517 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1518 |
|
1519 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1520 |
|
1521 //iSettingsClient->SetVideoFileName( _L("") ); |
|
1522 |
|
1523 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEmptyVideoFileNameWhenInitialized ) ); |
|
1524 assertL( err != KErrNone ); |
|
1525 |
|
1526 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1527 } |
|
1528 |
|
1529 |
|
1530 void CCaeTestVideoSettings::TestSetVideoFileNameWhenPreparedL() |
|
1531 { |
|
1532 // Group: Settings. |
|
1533 // |
|
1534 // ID: CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.003 |
|
1535 // |
|
1536 // Action : Set Video File Name when prepared |
|
1537 // |
|
1538 // Output : No leave. File KVideoFileName, "videoclip.3gp". |
|
1539 |
|
1540 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1541 |
|
1542 iSettingsClient->SetTimeout( 5000000 ); |
|
1543 |
|
1544 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1545 |
|
1546 iSettingsClient->SetVideoFileName( _L("videoclip.3gp") ); |
|
1547 |
|
1548 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoFileNameWhenPrepared ); |
|
1549 |
|
1550 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1551 } |
|
1552 |
|
1553 void CCaeTestVideoSettings::TestSetVideoFileNameWhenNotInitializedL() |
|
1554 { |
|
1555 // Group: Settings. |
|
1556 // |
|
1557 // ID: CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.004 |
|
1558 // |
|
1559 // Action : Try to set file name for the video clip to be recorded. |
|
1560 // Video recorder initialization is not done . |
|
1561 // |
|
1562 // Output : Leave. |
|
1563 |
|
1564 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1565 |
|
1566 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1567 |
|
1568 iSettingsClient->SetVideoFileName( _L("videoclipnoi.3gp") ); |
|
1569 |
|
1570 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoFileNameWhenNotInitialized ) ); |
|
1571 assertL( err != KErrNone ); |
|
1572 |
|
1573 assertL( iSettingsClient->CountInitComplete() == 1 ); // This is not videoinit counter |
|
1574 } |
|
1575 |
|
1576 void CCaeTestVideoSettings::TestSetVideoFileNameWhenRecordingL() |
|
1577 { |
|
1578 // Group: Settings. |
|
1579 // |
|
1580 // ID: CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.005 |
|
1581 // |
|
1582 // Action : Set Video File Name when recording |
|
1583 // |
|
1584 // Output : Leave. |
|
1585 |
|
1586 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1587 |
|
1588 iSettingsClient->SetTimeout( 5000000 ); |
|
1589 |
|
1590 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1591 |
|
1592 iSettingsClient->SetVideoFileName( _L("videocliprec.3gp") ); |
|
1593 |
|
1594 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoFileNameWhenRecording ) ); |
|
1595 assertL( err != KErrNone ); |
|
1596 |
|
1597 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1598 } |
|
1599 |
|
1600 /********************************************************/ |
|
1601 /* VIDEO RECORDING TIME INTERVAL */ |
|
1602 /********************************************************/ |
|
1603 |
|
1604 void CCaeTestVideoSettings::TestSetVideoTimeIntervalSubQcifWhenPreparedL() |
|
1605 { |
|
1606 // ID: CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.001 |
|
1607 // |
|
1608 // Group: Settings. |
|
1609 // |
|
1610 // Action : Mcaeo VideoRecordingTime when video prepared. |
|
1611 // Inform about video recording time elapsed. |
|
1612 // |
|
1613 // Output : OK. |
|
1614 |
|
1615 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1616 |
|
1617 iSettingsClient->SetTimeout( 3000000 ); |
|
1618 |
|
1619 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
1620 |
|
1621 iSettingsClient->SetVideoFrameSize( sizeSubQcif ); |
|
1622 iSettingsClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
1623 iSettingsClient->SetVideoBitRate( TInt( 25000 ) ); |
|
1624 |
|
1625 iSettingsClient->SetVideoFileName( _L("cae_time_interval_prepared_subqcif.3gp") ); |
|
1626 |
|
1627 TTimeIntervalMicroSeconds videoTimeInterval( 400000 ); |
|
1628 |
|
1629 iSettingsClient->SetVideoTimesInterval( videoTimeInterval ); |
|
1630 |
|
1631 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoTimesIntervalWhenVideoPrepared ); |
|
1632 |
|
1633 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1634 assertL( iSettingsClient->CountVideoPrepareComplete() == 1 ); |
|
1635 assertL( iSettingsClient->CountVideoRecordingOn() == 2 ); |
|
1636 assertL( iSettingsClient->CountVideoRecordingPaused() == 1 ); |
|
1637 assertL( iSettingsClient->CountVideoRecordingComplete() == 1 ); |
|
1638 assertL( iSettingsClient->CountVideoRecordingTimes() >= 3 ); |
|
1639 } |
|
1640 |
|
1641 void CCaeTestVideoSettings::TestSetVideoTimeIntervalSubQcifWhenRecordingL() |
|
1642 { |
|
1643 // ID: CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.002 |
|
1644 // |
|
1645 // Group: Settings. |
|
1646 // |
|
1647 // Action : Mcaeo VideoRecordingTime when video recording. |
|
1648 // Inform about video recording time elapsed. |
|
1649 // |
|
1650 // Output : OK. |
|
1651 |
|
1652 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1653 |
|
1654 iSettingsClient->SetTimeout( 5000000 ); |
|
1655 |
|
1656 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
1657 |
|
1658 iSettingsClient->SetVideoFrameSize( sizeSubQcif ); |
|
1659 iSettingsClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
1660 iSettingsClient->SetVideoBitRate( TInt( 25000 ) ); |
|
1661 |
|
1662 iSettingsClient->SetVideoFileName( _L("cae_time_interval_recording_subqcif.3gp") ); |
|
1663 |
|
1664 TTimeIntervalMicroSeconds videoTimeInterval( 400000 ); |
|
1665 |
|
1666 iSettingsClient->SetVideoTimesInterval( videoTimeInterval ); |
|
1667 |
|
1668 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoTimesIntervalWhenVideoRecording ) ); |
|
1669 assertL( err == KErrNotReady ); |
|
1670 |
|
1671 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1672 assertL( iSettingsClient->CountVideoPrepareComplete() == 1 ); |
|
1673 assertL( iSettingsClient->CountVideoRecordingOn() == 1 ); |
|
1674 assertL( iSettingsClient->CountVideoRecordingComplete() == 1 ); |
|
1675 assertL( iSettingsClient->CountVideoRecordingTimes() >= 2 ); |
|
1676 |
|
1677 } |
|
1678 |
|
1679 void CCaeTestVideoSettings::TestSetZeroVideoTimeIntervalSubQcifWhenPreparedL() |
|
1680 { |
|
1681 // ID: CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.003 |
|
1682 // |
|
1683 // Group: Settings. |
|
1684 // |
|
1685 // Action : Mcaeo VideoRecordingTime when video prepared. |
|
1686 // Inform about video recording time elapsed. |
|
1687 // |
|
1688 // Output : OK. |
|
1689 |
|
1690 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1691 |
|
1692 iSettingsClient->SetTimeout( 3000000 ); |
|
1693 |
|
1694 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
1695 |
|
1696 iSettingsClient->SetVideoFrameSize( sizeSubQcif ); |
|
1697 iSettingsClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
1698 iSettingsClient->SetVideoBitRate( TInt( 25000 ) ); |
|
1699 |
|
1700 iSettingsClient->SetVideoFileName( _L("cae_time_interval_zero_prepared_subqcif.3gp") ); |
|
1701 |
|
1702 TTimeIntervalMicroSeconds videoTimeInterval( 0 ); |
|
1703 |
|
1704 iSettingsClient->SetVideoTimesInterval( videoTimeInterval ); |
|
1705 |
|
1706 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoTimesIntervalWhenVideoPrepared ); |
|
1707 |
|
1708 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1709 assertL( iSettingsClient->CountVideoPrepareComplete() == 1 ); |
|
1710 assertL( iSettingsClient->CountVideoRecordingOn() == 2 ); |
|
1711 assertL( iSettingsClient->CountVideoRecordingPaused() == 1 ); |
|
1712 assertL( iSettingsClient->CountVideoRecordingComplete() == 1 ); |
|
1713 assertL( iSettingsClient->CountVideoRecordingTimes() == 0 ); |
|
1714 } |
|
1715 |
|
1716 void CCaeTestVideoSettings::TestSetVideoTimeIntervalNegativeL() |
|
1717 { |
|
1718 // ID: CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.004 |
|
1719 // |
|
1720 // Group: Settings. |
|
1721 // |
|
1722 // Action : Mcaeo VideoRecordingTime when video prepared. |
|
1723 // Set illegal interval |
|
1724 // |
|
1725 // Output : Leave. |
|
1726 |
|
1727 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1728 |
|
1729 iSettingsClient->SetTimeout( 3000000 ); |
|
1730 |
|
1731 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
1732 |
|
1733 iSettingsClient->SetVideoFrameSize( sizeSubQcif ); |
|
1734 iSettingsClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
1735 iSettingsClient->SetVideoBitRate( TInt( 25000 ) ); |
|
1736 |
|
1737 iSettingsClient->SetVideoFileName( _L("cae_time_interval_prepared_subqcif_neg.3gp") ); |
|
1738 |
|
1739 TTimeIntervalMicroSeconds videoTimeInterval( -1 ); |
|
1740 |
|
1741 iSettingsClient->SetVideoTimesInterval( videoTimeInterval ); |
|
1742 |
|
1743 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoTimesIntervalWhenVideoPrepared ) ); |
|
1744 assertL( err == KErrArgument ); |
|
1745 |
|
1746 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1747 assertL( iSettingsClient->CountVideoPrepareComplete() == 1 ); |
|
1748 } |
|
1749 |
|
1750 void CCaeTestVideoSettings::TestSetVideoTimeIntervalHugeL() |
|
1751 { |
|
1752 // ID: CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.005 |
|
1753 // |
|
1754 // Group: Settings. |
|
1755 // |
|
1756 // Action : Mcaeo VideoRecordingTime when video prepared. |
|
1757 // Set illegal interval |
|
1758 // |
|
1759 // Output : Leave. |
|
1760 |
|
1761 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1762 |
|
1763 iSettingsClient->SetTimeout( 3000000 ); |
|
1764 |
|
1765 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
1766 |
|
1767 iSettingsClient->SetVideoFrameSize( sizeSubQcif ); |
|
1768 iSettingsClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
1769 iSettingsClient->SetVideoBitRate( TInt( 25000 ) ); |
|
1770 |
|
1771 iSettingsClient->SetVideoFileName( _L("cae_time_interval_prepared_subqcif_neg.3gp") ); |
|
1772 |
|
1773 TTimeIntervalMicroSeconds videoTimeInterval( KMaxTUint32 ); |
|
1774 |
|
1775 iSettingsClient->SetVideoTimesInterval( videoTimeInterval ); |
|
1776 |
|
1777 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetVideoTimesIntervalWhenVideoPrepared ) ); |
|
1778 assertL( err == KErrArgument ); |
|
1779 |
|
1780 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1781 assertL( iSettingsClient->CountVideoPrepareComplete() == 1 ); |
|
1782 } |
|
1783 |
|
1784 /********************************************************/ |
|
1785 /* GET VIDEO FRAME SIZE */ |
|
1786 /********************************************************/ |
|
1787 |
|
1788 void CCaeTestVideoSettings::TestGetVideoFrameSizeWhenInitializedL() |
|
1789 { |
|
1790 // ID: CAE.VR.GETVIDEOFRAMESIZE.001 |
|
1791 // |
|
1792 // Group: Record. |
|
1793 // |
|
1794 // Action : Get the video frame size of the specified |
|
1795 // quality level, when initialization is done. |
|
1796 // |
|
1797 // Output : Compare. |
|
1798 |
|
1799 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1800 |
|
1801 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1802 |
|
1803 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetVideoFrameSizeWhenInitialized ) ); |
|
1804 assertL( err == KErrNone ); |
|
1805 |
|
1806 TSize size( KImgWidthQCIF, KImgHeightQCIF ); |
|
1807 |
|
1808 TSize videoFrameSize; |
|
1809 iSettingsClient->GetVideoFrameSize( videoFrameSize ); |
|
1810 if ( videoFrameSize != size ) |
|
1811 { |
|
1812 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1813 } |
|
1814 } |
|
1815 |
|
1816 void CCaeTestVideoSettings::TestGetVideoFrameSizeWhenPreparedL() |
|
1817 { |
|
1818 // ID: CAE.VR.GETVIDEOFRAMESIZE.002 |
|
1819 // |
|
1820 // Group: Record. |
|
1821 // |
|
1822 // Action : Get the video frame size of the specified |
|
1823 // quality level, when prepared. |
|
1824 // |
|
1825 // Output : Compare. |
|
1826 |
|
1827 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1828 |
|
1829 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1830 |
|
1831 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetVideoFrameSizeWhenPrepared ); |
|
1832 |
|
1833 TSize size( KImgWidthQCIF, KImgHeightQCIF ); |
|
1834 |
|
1835 TSize videoFrameSize; |
|
1836 iSettingsClient->GetVideoFrameSize( videoFrameSize ); |
|
1837 if ( videoFrameSize != size ) |
|
1838 { |
|
1839 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1840 } |
|
1841 } |
|
1842 |
|
1843 /********************************************************/ |
|
1844 /* VIDEO FRAME RATE */ |
|
1845 /********************************************************/ |
|
1846 |
|
1847 void CCaeTestVideoSettings::TestVideoFrameRateWhenInitializedL() |
|
1848 { |
|
1849 // ID: CAE.VR.VIDEOFRAMERATE.001 |
|
1850 // |
|
1851 // Group: Record. |
|
1852 // |
|
1853 // Action : Get the video frame rate of the specified |
|
1854 // quality level, when initialization is done. |
|
1855 // |
|
1856 // Output : Compare. |
|
1857 |
|
1858 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1859 |
|
1860 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1861 |
|
1862 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EVideoFrameRateWhenInitialized )); |
|
1863 assertL( err == KErrNone ); |
|
1864 |
|
1865 TReal32 expectedResult( 15.0 ); |
|
1866 |
|
1867 TReal32 videoFrameRate = iSettingsClient->VideoFrameRate(); |
|
1868 if ( videoFrameRate != expectedResult ) |
|
1869 { |
|
1870 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1871 } |
|
1872 } |
|
1873 |
|
1874 void CCaeTestVideoSettings::TestVideoFrameRateWhenPreparedL() |
|
1875 { |
|
1876 // ID: CAE.VR.VIDEOFRAMERATE.002 |
|
1877 // |
|
1878 // Group: Record. |
|
1879 // |
|
1880 // Action : Get the video frame rate of the specified |
|
1881 // quality level, when prepared. |
|
1882 // |
|
1883 // Output : Compare. |
|
1884 |
|
1885 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1886 |
|
1887 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1888 |
|
1889 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EVideoFrameRateWhenPrepared ); |
|
1890 |
|
1891 TReal32 expectedResult( 15.0 ); |
|
1892 |
|
1893 TReal32 videoFrameRate = iSettingsClient->VideoFrameRate(); |
|
1894 if ( videoFrameRate != expectedResult ) |
|
1895 { |
|
1896 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1897 } |
|
1898 } |
|
1899 |
|
1900 /********************************************************/ |
|
1901 /* ESTIMATED VIDEO RECORDING BIT RATE */ |
|
1902 /********************************************************/ |
|
1903 |
|
1904 void CCaeTestVideoSettings::TestEstimatedVideoRecordingBitRateWhenInitializedL() |
|
1905 { |
|
1906 // ID: CAE.VR.ESTIMATEDVIDEORECORDINGBITRATE.001 |
|
1907 // |
|
1908 // Group: Record. |
|
1909 // |
|
1910 // Action : Get the estimated video recording bit rate including audio bit rate |
|
1911 // (for specified video quality level) when initialization is done. |
|
1912 // |
|
1913 // Output : Compare. |
|
1914 |
|
1915 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1916 |
|
1917 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1918 |
|
1919 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EEstimatedVideoRecordingBitRateWhenInitialized ) ); |
|
1920 assertL( err == KErrNone ); |
|
1921 |
|
1922 TInt videoBitRate; |
|
1923 videoBitRate = iSettingsClient->EstimatedVideoRecordingBitRate(); |
|
1924 if ( videoBitRate != 78000 ) |
|
1925 { |
|
1926 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1927 } |
|
1928 } |
|
1929 |
|
1930 void CCaeTestVideoSettings::TestEstimatedVideoRecordingBitRateWhenPreparedL() |
|
1931 { |
|
1932 // ID: CAE.VR.ESTIMATEDVIDEORECORDINGBITRATE.002 |
|
1933 // |
|
1934 // Group: Record. |
|
1935 // |
|
1936 // Action : Get the estimated video recording bit rate including audio bit rate |
|
1937 // (for specified video quality level) when prepared. |
|
1938 // |
|
1939 // Output : Compare. |
|
1940 |
|
1941 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
1942 |
|
1943 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
1944 |
|
1945 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EEstimatedVideoRecordingBitRateWhenPrepared ); |
|
1946 |
|
1947 TInt videoBitRate; |
|
1948 videoBitRate = iSettingsClient->EstimatedVideoRecordingBitRate(); |
|
1949 if ( videoBitRate != 78000 ) |
|
1950 { |
|
1951 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1952 } |
|
1953 } |
|
1954 |
|
1955 // |
|
1956 // An own static function to collect the test functions into one |
|
1957 // suite of tests. The framework will run the tests and free the |
|
1958 // memory allocated for the test suite. |
|
1959 // |
|
1960 |
|
1961 MTest* CCaeTestVideoSettings::suiteL () |
|
1962 { |
|
1963 // Always use NewL (Do not use NewLC) !!! |
|
1964 CTestSuite *suite = CTestSuite::NewL( _L8("CCaeTestVideoSettings") ); |
|
1965 |
|
1966 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.001"), &TestVideoClipMaxSize0L ) ); |
|
1967 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.003"), &TestVideoClipMaxSizeNeg1L ) ); |
|
1968 |
|
1969 // NOT IN USE: suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.004"), &TestVideoClipMaxSize10001L ) ); |
|
1970 |
|
1971 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETZOOMVALUEL.008"), &TestDigiZoomVal2L ) ); |
|
1972 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETZOOMVALUEL.009"), &TestDigiZoomNegVal1L ) ); |
|
1973 |
|
1974 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETZOOMMODEL.006"), &TestDigiZoomMode0L ) ); |
|
1975 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETZOOMMODEL.007"), &TestOpticalZoomMode1L ) ); |
|
1976 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETZOOMMODEL.008"), &TestOpticalDigiZoomMode2L ) ); |
|
1977 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETZOOMMODEL.009"), &TestDigiZoomNegMode1L ) ); |
|
1978 |
|
1979 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETBRIGHTNESSL.009"), &TestBrightness0L ) ); |
|
1980 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETBRIGHTNESSL.010"), &TestBrightness100L ) ); |
|
1981 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETBRIGHTNESSL.011"), &TestBrightnessNeg100L ) ); |
|
1982 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETBRIGHTNESSL.012"), &TestBrightness101L ) ); |
|
1983 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETBRIGHTNESSL.013"), &TestBrightnessNeg101L ) ); |
|
1984 |
|
1985 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETCONTRASTL.009"), &TestContrast0L ) ); |
|
1986 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETCONTRASTL.010"), &TestContrast100L ) ); |
|
1987 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETCONTRASTL.011"), &TestContrastNeg100L ) ); |
|
1988 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETCONTRASTL.012"), &TestContrast101L ) ); |
|
1989 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETCONTRASTL.013"), &TestContrastNeg101L ) ); |
|
1990 |
|
1991 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.010"), &TestExposureMode2L ) ); |
|
1992 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.011"), &TestExposureMode4L ) ); |
|
1993 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.012"), &TestExposureModeNeg1L ) ); |
|
1994 |
|
1995 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.013"), &TestExposureMode5L ) ); |
|
1996 |
|
1997 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.011"), &TestWhiteBalanceMode1L ) ); |
|
1998 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.012"), &TestWhiteBalanceMode2L ) ); |
|
1999 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.013"), &TestWhiteBalanceMode4L ) ); |
|
2000 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.014"), &TestWhiteBalanceMode8L ) ); |
|
2001 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.015"), &TestWhiteBalanceMode10L ) ); |
|
2002 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.016"), &TestWhiteBalanceModeNeg1L ) ); |
|
2003 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.017"), &TestWhiteBalanceMode5L ) ); |
|
2004 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.018"), &TestWhiteBalanceMode12L ) ); |
|
2005 |
|
2006 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.009"), &TestFlashMode0L ) ); |
|
2007 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.010"), &TestFlashMode1L ) ); |
|
2008 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.011"), &TestFlashMode2L ) ); |
|
2009 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.012"), &TestFlashMode4L ) ); |
|
2010 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.013"), &TestFlashMode8L ) ); |
|
2011 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.014"), &TestFlashModeNeg1L ) ); |
|
2012 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.015"), &TestFlashMode5L ) ); |
|
2013 |
|
2014 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOAUDIO.001"), &TestVideoAudioETrueL ) ); |
|
2015 |
|
2016 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOAUDIO.002"), &TestVideoAudioEFalseL ) ); |
|
2017 |
|
2018 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.014"), &TestExposureModeRecording2L ) ); |
|
2019 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.018"), &TestWhiteBalanceModeRecording2L ) ); |
|
2020 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETFLASHMODEL.016"), &TestFlashModeRecording2L ) ); |
|
2021 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETZOOMMODEL.010"), &TestDigiZoomRecordingMode0L ) ); |
|
2022 |
|
2023 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.005"), &TestVideoClipMaxSizeRecording10000L ) ); |
|
2024 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.006"), &TestVideoClipMaxSizeNotInitialized10000L ) ); |
|
2025 |
|
2026 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOAUDIO.003"), &TestVideoAudioRecordingETrueL ) ); |
|
2027 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOAUDIO.004"), &TestVideoAudioNotInitializedL ) ); |
|
2028 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.GET-VR.GETVIDEOAUDIO.005"), &TestGetVideoAudioNotInitializedL ) ); |
|
2029 |
|
2030 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.001"), &TestSetVideoFileNameL ) ); |
|
2031 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.002"), &TestSetEmptyVideoFileNameL ) ); |
|
2032 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.003"), &TestSetVideoFileNameWhenPreparedL ) ); |
|
2033 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.004"), &TestSetVideoFileNameWhenNotInitializedL ) ); |
|
2034 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEORECORDINGFILENAMEL.005"), &TestSetVideoFileNameWhenRecordingL ) ); |
|
2035 |
|
2036 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.001"), &TestSetVideoTimeIntervalSubQcifWhenPreparedL ) ); |
|
2037 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.002"), &TestSetVideoTimeIntervalSubQcifWhenRecordingL ) ); |
|
2038 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.003"), &TestSetZeroVideoTimeIntervalSubQcifWhenPreparedL ) ); |
|
2039 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.004"), &TestSetVideoTimeIntervalNegativeL ) ); |
|
2040 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.SET-VR.SETVIDEOTIMEINTERVAL.SUBQCIF.005"), &TestSetVideoTimeIntervalHugeL ) ); |
|
2041 |
|
2042 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.VR.GETVIDEOFRAMESIZE.001"), &TestGetVideoFrameSizeWhenInitializedL ) ); |
|
2043 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.VR.GETVIDEOFRAMESIZE.002"), &TestGetVideoFrameSizeWhenPreparedL ) ); |
|
2044 |
|
2045 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.VR.VIDEOFRAMERATE.001"), &TestVideoFrameRateWhenInitializedL ) ); |
|
2046 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.VR.VIDEOFRAMERATE.002"), &TestVideoFrameRateWhenPreparedL ) ); |
|
2047 |
|
2048 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.VR.ESTIMATEDVIDEORECORDINGBITRATE.001"), &TestEstimatedVideoRecordingBitRateWhenInitializedL ) ); |
|
2049 suite->addTestL( CTestCaller<CCaeTestVideoSettings>::NewL( _L8("CAE.VR.ESTIMATEDVIDEORECORDINGBITRATE.002"), &TestEstimatedVideoRecordingBitRateWhenPreparedL ) ); |
|
2050 |
|
2051 return suite; |
|
2052 } |
|
2053 |