|
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: CaeTestStillSettings.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "CaeTestStillSettings.h" |
|
19 #include <f32file.h> |
|
20 |
|
21 |
|
22 CCaeTestStillSettings::CCaeTestStillSettings () |
|
23 { |
|
24 } |
|
25 |
|
26 |
|
27 CCaeTestStillSettings::~CCaeTestStillSettings () |
|
28 { |
|
29 } |
|
30 |
|
31 |
|
32 void CCaeTestStillSettings::setUpL () |
|
33 { |
|
34 iSettingsClient = CCaeTestSettingsClient::NewL( ); |
|
35 |
|
36 iSettingsClient->SetFileNameBase( KFileNameBase ); |
|
37 } |
|
38 |
|
39 |
|
40 void CCaeTestStillSettings::tearDown () |
|
41 { |
|
42 delete iSettingsClient; |
|
43 iSettingsClient = 0; |
|
44 } |
|
45 |
|
46 |
|
47 // |
|
48 // Own test functions. |
|
49 // |
|
50 // The framework will do for a test function: |
|
51 // |
|
52 // setUpL(); |
|
53 // TRAPD(leaveCode, 'myTestFunction()'); |
|
54 // "Report leave error or assertion failure for 'myTestFunction()'". |
|
55 // tearDown(); |
|
56 // |
|
57 |
|
58 |
|
59 ///////////////////////////////////////////////////////////////////// |
|
60 // Capture tests |
|
61 ///////////////////////////////////////////////////////////////////// |
|
62 |
|
63 /******************************/ |
|
64 /* DIGITAL ZOOM VALUE */ |
|
65 /******************************/ |
|
66 |
|
67 void CCaeTestStillSettings::TestDigiZoomVal2L() |
|
68 { |
|
69 // Group: Settings |
|
70 // |
|
71 // ID: CAE.SET-SC.SETZOOMVALUEL.003 |
|
72 // |
|
73 // Action : Test out-of-bounds digital zoom value. |
|
74 // |
|
75 // Output : Leave |
|
76 |
|
77 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
78 |
|
79 TCamAppEngineInfo info; |
|
80 iSettingsClient->GetInfo( info ); |
|
81 |
|
82 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom + 1 ); |
|
83 |
|
84 //iSettingsClient->SetStillFileName( _L("cae_digizoom_val_2.jpg") ); |
|
85 |
|
86 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ) ); |
|
87 assertL( err != KErrNone ); |
|
88 } |
|
89 |
|
90 void CCaeTestStillSettings::TestDigiZoomValNeg1L() |
|
91 { |
|
92 // Group: Settings |
|
93 // |
|
94 // ID: CAE.SET-SC.SETZOOMVALUEL.004 |
|
95 // |
|
96 // Action : Test digital zoom. |
|
97 // |
|
98 // Output : Leave |
|
99 |
|
100 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
101 |
|
102 iSettingsClient->SetDigiZoomValue( -1 ); |
|
103 |
|
104 //iSettingsClient->SetStillFileName( _L("cae_digizoom_val_-1.jpg") ); |
|
105 |
|
106 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ) ); |
|
107 assertL( err != KErrNone ); |
|
108 } |
|
109 |
|
110 void CCaeTestStillSettings::TestOpticalZoomValMinL() |
|
111 { |
|
112 // Group: Settings |
|
113 // |
|
114 // ID: CAE.SET-SC.SETZOOMVALUEL.005 |
|
115 // |
|
116 // Action : Test out-of-bounds optical zoom value. |
|
117 // |
|
118 // Output : Leave |
|
119 |
|
120 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
121 |
|
122 iSettingsClient->SetZoomMode( 1 ); |
|
123 |
|
124 TCamAppEngineInfo info; |
|
125 iSettingsClient->GetInfo( info ); |
|
126 |
|
127 iSettingsClient->SetDigiZoomValue( -1 ); |
|
128 |
|
129 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ) ); |
|
130 assertL( err != KErrNone ); |
|
131 } |
|
132 |
|
133 void CCaeTestStillSettings::TestOpticalZoomValMaxL() |
|
134 { |
|
135 // Group: Settings |
|
136 // |
|
137 // ID: CAE.SET-SC.SETZOOMVALUEL.006 |
|
138 // |
|
139 // Action : Test out-of-bounds optical zoom value. |
|
140 // |
|
141 // Output : Leave |
|
142 |
|
143 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
144 |
|
145 iSettingsClient->SetZoomMode( 1 ); |
|
146 |
|
147 TCamAppEngineInfo info; |
|
148 iSettingsClient->GetInfo( info ); |
|
149 |
|
150 iSettingsClient->SetDigiZoomValue( 99999 ); |
|
151 |
|
152 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ) ); |
|
153 assertL( err != KErrNone ); |
|
154 } |
|
155 |
|
156 /******************************/ |
|
157 /* DIGITAL ZOOM MODE */ |
|
158 /******************************/ |
|
159 |
|
160 void CCaeTestStillSettings::TestDigiZoomMode0L() |
|
161 { |
|
162 // Group: Settings |
|
163 // |
|
164 // ID: CAE.SET-SC.SETZOOMMODEL.001 |
|
165 // |
|
166 // Action : Test digital zoom mode. |
|
167 // |
|
168 // Output : OK. |
|
169 |
|
170 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
171 |
|
172 iSettingsClient->SetZoomMode( 0 ); |
|
173 |
|
174 //iSettingsClient->SetStillFileName( _L("cae_digizoom_mode_0.jpg") ); |
|
175 |
|
176 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ); |
|
177 } |
|
178 |
|
179 void CCaeTestStillSettings::TestOpticalZoomMode1L() |
|
180 { |
|
181 // Group: Settings |
|
182 // |
|
183 // ID: CAE.SET-SC.SETZOOMMODEL.002 |
|
184 // |
|
185 // Action : Test optical zoom mode. |
|
186 // |
|
187 // Output : Leave |
|
188 |
|
189 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
190 |
|
191 iSettingsClient->SetZoomMode( 1 ); |
|
192 |
|
193 //iSettingsClient->SetStillFileName( _L("cae_digizoom_mode_1.jpg") ); |
|
194 |
|
195 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ) ); |
|
196 assertL( err != KErrNone );//verify if is correct action |
|
197 } |
|
198 |
|
199 void CCaeTestStillSettings::TestOpticalDigiZoomMode2L() |
|
200 { |
|
201 // Group: Settings |
|
202 // |
|
203 // ID: CAE.SET-SC.SETZOOMMODEL.003 |
|
204 // |
|
205 // Action : Test optical digital zoom mode. |
|
206 // |
|
207 // Output : Leave |
|
208 |
|
209 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
210 |
|
211 iSettingsClient->SetZoomMode( 2 ); |
|
212 |
|
213 //iSettingsClient->SetStillFileName( _L("cae_digizoom_mode_2.jpg") ); |
|
214 |
|
215 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ) ); |
|
216 assertL( err != KErrNone );//verify if is correct action |
|
217 } |
|
218 |
|
219 void CCaeTestStillSettings::TestDigiZoomModeNeg1L() |
|
220 { |
|
221 // Group: Settings |
|
222 // |
|
223 // ID: CAE.SET-SC.SETZOOMMODEL.004 |
|
224 // |
|
225 // Action : Test digital zoom mode. |
|
226 // |
|
227 // Output : Leave |
|
228 |
|
229 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
230 |
|
231 iSettingsClient->SetZoomMode( -1 ); |
|
232 |
|
233 //iSettingsClient->SetStillFileName( _L("cae_digizoom_mode_-1.jpg") ); |
|
234 |
|
235 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ) ); |
|
236 assertL( err != KErrNone ); |
|
237 } |
|
238 |
|
239 |
|
240 /******************************/ |
|
241 /* BRIGHTNESS */ |
|
242 /******************************/ |
|
243 |
|
244 void CCaeTestStillSettings::TestBrightness0L() |
|
245 { |
|
246 // Group: Settings. |
|
247 // |
|
248 // ID: CAE.SET-SC.SETBRIGHTNESSL.002 |
|
249 // |
|
250 // Action : Test brightness setting with still image capture and viewfinding. |
|
251 // |
|
252 // Output : No leave if supported. Leave if not supported. |
|
253 |
|
254 TCamAppEngineInfo info; |
|
255 iSettingsClient->GetInfo( info ); |
|
256 |
|
257 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
258 |
|
259 iSettingsClient->SetBrightness( 0 ); |
|
260 |
|
261 iSettingsClient->SetStillFileName( _L("cae_brightness_0.jpg") ); |
|
262 |
|
263 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenStillPrepared ) ); |
|
264 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
265 { |
|
266 assertL( err == KErrNone ); |
|
267 } |
|
268 else |
|
269 { |
|
270 assertL( err == KErrNotSupported ); |
|
271 } |
|
272 } |
|
273 |
|
274 void CCaeTestStillSettings::TestBrightness100L() |
|
275 { |
|
276 // Group: Settings. |
|
277 // |
|
278 // ID: CAE.SET-SC.SETBRIGHTNESSL.003 |
|
279 // |
|
280 // Action : Test brightness setting with still image capture and viewfinding. |
|
281 // |
|
282 // Output : No leave if supported. Leave if not supported. |
|
283 |
|
284 TCamAppEngineInfo info; |
|
285 iSettingsClient->GetInfo( info ); |
|
286 |
|
287 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
288 |
|
289 iSettingsClient->SetBrightness( 100 ); |
|
290 |
|
291 iSettingsClient->SetStillFileName( _L("cae_brightness_100.jpg") ); |
|
292 |
|
293 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenStillPrepared ) ); |
|
294 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
295 { |
|
296 assertL( err == KErrNone ); |
|
297 } |
|
298 else |
|
299 { |
|
300 assertL( err == KErrNotSupported ); |
|
301 } |
|
302 } |
|
303 |
|
304 void CCaeTestStillSettings::TestBrightnessNeg100L() |
|
305 { |
|
306 // Group: Settings. |
|
307 // |
|
308 // ID: CAE.SET-SC.SETBRIGHTNESSL.004 |
|
309 // |
|
310 // Action : Test brightness setting with still image capture and viewfinding. |
|
311 // |
|
312 // Output : No leave if supported. Leave if not supported. |
|
313 |
|
314 TCamAppEngineInfo info; |
|
315 iSettingsClient->GetInfo( info ); |
|
316 |
|
317 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
318 |
|
319 iSettingsClient->SetBrightness( -100 ); |
|
320 |
|
321 iSettingsClient->SetStillFileName( _L("cae_brightness_-100.jpg") ); |
|
322 |
|
323 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenStillPrepared ) ); |
|
324 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
325 { |
|
326 assertL( err == KErrNone ); |
|
327 } |
|
328 else |
|
329 { |
|
330 assertL( err == KErrNotSupported ); |
|
331 } |
|
332 } |
|
333 |
|
334 void CCaeTestStillSettings::TestBrightness101L() |
|
335 { |
|
336 // Group: Settings. |
|
337 // |
|
338 // ID: CAE.SET-SC.SETBRIGHTNESSL.005 |
|
339 // |
|
340 // Action : Test brightness setting with still image capture and viewfinding. |
|
341 // |
|
342 // Output : Leave. |
|
343 |
|
344 TCamAppEngineInfo info; |
|
345 iSettingsClient->GetInfo( info ); |
|
346 |
|
347 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
348 |
|
349 iSettingsClient->SetBrightness( 101 ); |
|
350 |
|
351 //iSettingsClient->SetStillFileName( _L("cae_brightness_101.jpg") ); |
|
352 |
|
353 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenStillPrepared ) ); |
|
354 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
355 { |
|
356 assertL( err == KErrNotSupported ); |
|
357 } |
|
358 else |
|
359 { |
|
360 assertL( err == KErrNotSupported ); |
|
361 } |
|
362 } |
|
363 |
|
364 void CCaeTestStillSettings::TestBrightnessNeg101L() |
|
365 { |
|
366 // Group: Settings. |
|
367 // |
|
368 // ID: CAE.SET-SC.SETBRIGHTNESSL.006 |
|
369 // |
|
370 // Action : Test brightness setting with still image capture and viewfinding. |
|
371 // |
|
372 // Output : Leave. |
|
373 |
|
374 TCamAppEngineInfo info; |
|
375 iSettingsClient->GetInfo( info ); |
|
376 |
|
377 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
378 |
|
379 iSettingsClient->SetBrightness( -101 ); |
|
380 |
|
381 //iSettingsClient->SetStillFileName( _L("cae_brightness_-101.jpg") ); |
|
382 |
|
383 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenStillPrepared ) ); |
|
384 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
385 { |
|
386 assertL( err == KErrNotSupported ); |
|
387 } |
|
388 else |
|
389 { |
|
390 assertL( err == KErrNotSupported ); |
|
391 } |
|
392 } |
|
393 |
|
394 |
|
395 /******************************/ |
|
396 /* CONTRAST */ |
|
397 /******************************/ |
|
398 |
|
399 void CCaeTestStillSettings::TestContrast0L() |
|
400 { |
|
401 // Group: Settings. |
|
402 // |
|
403 // ID: CAE.SET-SC.SETCONTRASTL.002 |
|
404 // |
|
405 // Action : Test contrast setting with still image capture and viewfinding. |
|
406 // |
|
407 // Output : No leave if supported. Leave if not supported. |
|
408 |
|
409 TCamAppEngineInfo info; |
|
410 iSettingsClient->GetInfo( info ); |
|
411 |
|
412 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
413 |
|
414 iSettingsClient->SetContrast( 0 ); |
|
415 |
|
416 iSettingsClient->SetStillFileName( _L("cae_contrast_0.jpg") ); |
|
417 |
|
418 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenStillPrepared ) ); |
|
419 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
420 { |
|
421 assertL( err == KErrNone ); |
|
422 } |
|
423 else |
|
424 { |
|
425 assertL( err == KErrNotSupported ); |
|
426 } |
|
427 } |
|
428 |
|
429 void CCaeTestStillSettings::TestContrast100L() |
|
430 { |
|
431 // Group: Settings. |
|
432 // |
|
433 // ID: CAE.SET-SC.SETCONTRASTL.003 |
|
434 // |
|
435 // Action : Test contrast setting with still image capture and viewfinding. |
|
436 // |
|
437 // Output : No leave if supported. Leave if not supported. |
|
438 |
|
439 TCamAppEngineInfo info; |
|
440 iSettingsClient->GetInfo( info ); |
|
441 |
|
442 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
443 |
|
444 iSettingsClient->SetContrast( 100 ); |
|
445 |
|
446 iSettingsClient->SetStillFileName( _L("cae_contrast_100.jpg") ); |
|
447 |
|
448 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenStillPrepared ) ); |
|
449 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
450 { |
|
451 assertL( err == KErrNone ); |
|
452 } |
|
453 else |
|
454 { |
|
455 assertL( err == KErrNotSupported ); |
|
456 } |
|
457 } |
|
458 |
|
459 void CCaeTestStillSettings::TestContrastNeg100L() |
|
460 { |
|
461 // Group: Settings. |
|
462 // |
|
463 // ID: CAE.SET-SC.SETCONTRASTL.004 |
|
464 // |
|
465 // Action : Test contrast setting with still image capture and viewfinding. |
|
466 // |
|
467 // Output : No leave if supported. Leave if not supported. |
|
468 |
|
469 TCamAppEngineInfo info; |
|
470 iSettingsClient->GetInfo( info ); |
|
471 |
|
472 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
473 |
|
474 iSettingsClient->SetContrast( -100 ); |
|
475 |
|
476 iSettingsClient->SetStillFileName( _L("cae_contrast_-100.jpg") ); |
|
477 |
|
478 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenStillPrepared ) ); |
|
479 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
480 { |
|
481 assertL( err == KErrNone ); |
|
482 } |
|
483 else |
|
484 { |
|
485 assertL( err == KErrNotSupported ); |
|
486 } |
|
487 } |
|
488 |
|
489 void CCaeTestStillSettings::TestContrast101L() |
|
490 { |
|
491 // Group: Settings. |
|
492 // |
|
493 // ID: CAE.SET-SC.SETCONTRASTL.005 |
|
494 // |
|
495 // Action : Test contrast setting with still image capture and viewfinding. |
|
496 // |
|
497 // Output : Leave. |
|
498 |
|
499 TCamAppEngineInfo info; |
|
500 iSettingsClient->GetInfo( info ); |
|
501 |
|
502 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
503 |
|
504 iSettingsClient->SetContrast( 101 ); |
|
505 |
|
506 //iSettingsClient->SetStillFileName( _L("cae_contrast_101.jpg") ); |
|
507 |
|
508 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenStillPrepared ) ); |
|
509 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
510 { |
|
511 assertL( err == KErrNotSupported ); |
|
512 } |
|
513 else |
|
514 { |
|
515 assertL( err == KErrNotSupported ); |
|
516 } |
|
517 } |
|
518 |
|
519 void CCaeTestStillSettings::TestContrastNeg101L() |
|
520 { |
|
521 // Group: Settings. |
|
522 // |
|
523 // ID: CAE.SET-SC.SETCONTRASTL.006 |
|
524 // |
|
525 // Action : Test contrast setting with still image capture and viewfinding. |
|
526 // |
|
527 // Output : Leave. |
|
528 |
|
529 TCamAppEngineInfo info; |
|
530 iSettingsClient->GetInfo( info ); |
|
531 |
|
532 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
533 |
|
534 iSettingsClient->SetContrast( -101 ); |
|
535 |
|
536 //iSettingsClient->SetStillFileName( _L("cae_contrast_-101.jpg") ); |
|
537 |
|
538 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenStillPrepared ) ); |
|
539 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
540 { |
|
541 assertL( err == KErrNotSupported ); |
|
542 } |
|
543 else |
|
544 { |
|
545 assertL( err == KErrNotSupported ); |
|
546 } |
|
547 } |
|
548 |
|
549 |
|
550 /******************************/ |
|
551 /* EXPOSURE MODE */ |
|
552 /******************************/ |
|
553 |
|
554 |
|
555 void CCaeTestStillSettings::TestExposureMode2L() |
|
556 { |
|
557 // Group: Settings. |
|
558 // |
|
559 // ID: CAE.SET-SC.SETEXPOSUREMODEL.003 |
|
560 // |
|
561 // Action : Test exposure mode 2. |
|
562 // |
|
563 // Output : Leave. |
|
564 |
|
565 const TInt KSetVal = 2; |
|
566 |
|
567 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
568 |
|
569 TCamAppEngineInfo info; |
|
570 iSettingsClient->GetInfo( info ); |
|
571 |
|
572 iSettingsClient->SetExposureMode( KSetVal ); |
|
573 |
|
574 iSettingsClient->SetStillFileName( _L("cae_exposure_mode_2.jpg") ); |
|
575 |
|
576 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenStillPrepared ) ); |
|
577 if ( KSetVal & info.iExposureModesSupported ) |
|
578 { |
|
579 assertL( err == KErrNone ); |
|
580 } |
|
581 else |
|
582 { |
|
583 assertL( err == KErrNotSupported ); |
|
584 } |
|
585 } |
|
586 |
|
587 void CCaeTestStillSettings::TestExposureMode4L() |
|
588 { |
|
589 // Group: Settings. |
|
590 // |
|
591 // ID: CAE.SET-SC.SETEXPOSUREMODEL.004 |
|
592 // |
|
593 // Action : Test exposure mode 4 |
|
594 // |
|
595 // Output : Leave. |
|
596 |
|
597 const TInt KSetVal = 4; |
|
598 |
|
599 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
600 |
|
601 TCamAppEngineInfo info; |
|
602 iSettingsClient->GetInfo( info ); |
|
603 |
|
604 iSettingsClient->SetExposureMode( KSetVal ); |
|
605 |
|
606 iSettingsClient->SetStillFileName( _L("cae_exposure_mode_4.jpg") ); |
|
607 |
|
608 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenStillPrepared ) ); |
|
609 if ( KSetVal & info.iExposureModesSupported ) |
|
610 { |
|
611 assertL( err == KErrNone ); |
|
612 } |
|
613 else |
|
614 { |
|
615 assertL( err == KErrNotSupported ); |
|
616 } |
|
617 } |
|
618 |
|
619 void CCaeTestStillSettings::TestExposureModeNeg1L() |
|
620 { |
|
621 // Group: Settings. |
|
622 // |
|
623 // ID: CAE.SET-SC.SETEXPOSUREMODEL.005 |
|
624 // |
|
625 // Action : Test invalid exposure mode |
|
626 // |
|
627 // Output : Leave. |
|
628 |
|
629 const TInt KSetVal = -1; |
|
630 |
|
631 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
632 |
|
633 iSettingsClient->SetExposureMode( KSetVal ); |
|
634 |
|
635 //iSettingsClient->SetStillFileName( _L("cae_exposure_mode_-1.jpg") ); |
|
636 |
|
637 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenStillPrepared ) ); |
|
638 assertL( err == KErrNotSupported ); |
|
639 } |
|
640 |
|
641 void CCaeTestStillSettings::TestExposureMode5L() |
|
642 { |
|
643 // Group: Settings. |
|
644 // |
|
645 // ID: CAE.SET-SC.SETEXPOSUREMODEL.006 |
|
646 // |
|
647 // Action : Test combined exposure modes. |
|
648 // |
|
649 // Output : Leave. |
|
650 |
|
651 const TInt KSetVal = 5; |
|
652 |
|
653 TCamAppEngineInfo info; |
|
654 iSettingsClient->GetInfo( info ); |
|
655 |
|
656 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
657 |
|
658 iSettingsClient->SetExposureMode( KSetVal ); |
|
659 |
|
660 //iSettingsClient->SetStillFileName( _L("cae_exposure_mode_5.jpg") ); |
|
661 |
|
662 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenStillPrepared ) ); |
|
663 if ( KSetVal & info.iExposureModesSupported ) |
|
664 { |
|
665 assertL( err != KErrNotSupported ); |
|
666 } |
|
667 else |
|
668 { |
|
669 assertL( err == KErrNotSupported ); |
|
670 } |
|
671 } |
|
672 |
|
673 /******************************/ |
|
674 /* WHITE BALANCE MODE */ |
|
675 /******************************/ |
|
676 |
|
677 void CCaeTestStillSettings::TestWhiteBalanceMode1L() |
|
678 { |
|
679 // Group: Settings. |
|
680 // |
|
681 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.002 |
|
682 // |
|
683 // Action : Test white balance setting with still image capture and viewfinding. |
|
684 // |
|
685 // Output : No leave, if supported. Leave, if not supported. |
|
686 |
|
687 const TInt KSetVal = 1; |
|
688 |
|
689 TCamAppEngineInfo info; |
|
690 iSettingsClient->GetInfo( info ); |
|
691 |
|
692 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
693 |
|
694 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
695 |
|
696 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_1.jpg") ); |
|
697 |
|
698 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ) ); |
|
699 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
700 { |
|
701 assertL( err == KErrNone ); |
|
702 } |
|
703 else |
|
704 { |
|
705 assertL( err == KErrNotSupported ); |
|
706 } |
|
707 } |
|
708 |
|
709 void CCaeTestStillSettings::TestWhiteBalanceMode2L() |
|
710 { |
|
711 // Group: Settings. |
|
712 // |
|
713 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.003 |
|
714 // |
|
715 // Action : Test white balance setting with still image capture and viewfinding. |
|
716 // |
|
717 // Output : Leave. |
|
718 |
|
719 const TInt KSetVal = 2; |
|
720 |
|
721 TCamAppEngineInfo info; |
|
722 iSettingsClient->GetInfo( info ); |
|
723 |
|
724 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
725 |
|
726 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
727 |
|
728 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_2.jpg") ); |
|
729 |
|
730 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ) ); |
|
731 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
732 { |
|
733 assertL( err == KErrNone ); |
|
734 } |
|
735 else |
|
736 { |
|
737 assertL( err == KErrNotSupported ); |
|
738 } |
|
739 } |
|
740 |
|
741 void CCaeTestStillSettings::TestWhiteBalanceMode4L() |
|
742 { |
|
743 // Group: Settings. |
|
744 // |
|
745 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.004 |
|
746 // |
|
747 // Action : Test white balance setting with still image capture and viewfinding. |
|
748 // |
|
749 // Output : Leave. |
|
750 |
|
751 const TInt KSetVal = 4; |
|
752 |
|
753 TCamAppEngineInfo info; |
|
754 iSettingsClient->GetInfo( info ); |
|
755 |
|
756 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
757 |
|
758 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
759 |
|
760 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_4.jpg") ); |
|
761 |
|
762 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ) ); |
|
763 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
764 { |
|
765 assertL( err == KErrNone ); |
|
766 } |
|
767 else |
|
768 { |
|
769 assertL( err == KErrNotSupported ); |
|
770 } |
|
771 } |
|
772 |
|
773 void CCaeTestStillSettings::TestWhiteBalanceMode8L() |
|
774 { |
|
775 // Group: Settings. |
|
776 // |
|
777 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.005 |
|
778 // |
|
779 // Action : Test white balance setting with still image capture and viewfinding. |
|
780 // |
|
781 // Output : Leave. |
|
782 |
|
783 const TInt KSetVal = 8; |
|
784 |
|
785 TCamAppEngineInfo info; |
|
786 iSettingsClient->GetInfo( info ); |
|
787 |
|
788 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
789 |
|
790 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
791 |
|
792 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_8.jpg") ); |
|
793 |
|
794 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ) ); |
|
795 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
796 { |
|
797 assertL( err == KErrNone ); |
|
798 } |
|
799 else |
|
800 { |
|
801 assertL( err == KErrNotSupported ); |
|
802 } |
|
803 } |
|
804 |
|
805 void CCaeTestStillSettings::TestWhiteBalanceMode10L() |
|
806 { |
|
807 // Group: Settings. |
|
808 // |
|
809 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.006 |
|
810 // |
|
811 // Action : Test white balance setting with still image capture and viewfinding. |
|
812 // |
|
813 // Output : Leave. |
|
814 |
|
815 const TInt KSetVal = 0x10; |
|
816 |
|
817 TCamAppEngineInfo info; |
|
818 iSettingsClient->GetInfo( info ); |
|
819 |
|
820 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
821 |
|
822 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
823 |
|
824 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_10.jpg") ); |
|
825 |
|
826 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ) ); |
|
827 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
828 { |
|
829 assertL( err == KErrNone ); |
|
830 } |
|
831 else |
|
832 { |
|
833 assertL( err == KErrNotSupported ); |
|
834 } |
|
835 } |
|
836 |
|
837 void CCaeTestStillSettings::TestWhiteBalanceModeNeg1L() |
|
838 { |
|
839 // Group: Settings. |
|
840 // |
|
841 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.007 |
|
842 // |
|
843 // Action : Test white balance setting with still image capture and viewfinding. |
|
844 // |
|
845 // Output : Leave. |
|
846 |
|
847 const TInt KSetVal = -1; |
|
848 |
|
849 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
850 |
|
851 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
852 |
|
853 //iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_-1.jpg") ); |
|
854 |
|
855 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ) ); |
|
856 assertL( err == KErrNotSupported ); |
|
857 } |
|
858 |
|
859 void CCaeTestStillSettings::TestWhiteBalanceMode5L() |
|
860 { |
|
861 // Group: Settings. |
|
862 // |
|
863 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.008 |
|
864 // |
|
865 // Action : Test white balance setting with still image capture and viewfinding. |
|
866 // |
|
867 // Output : Leave. |
|
868 |
|
869 const TInt KSetVal = 5; |
|
870 |
|
871 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
872 |
|
873 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
874 |
|
875 //iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_5.jpg") ); |
|
876 |
|
877 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ) ); |
|
878 assertL( err == KErrNotSupported || err == KErrArgument ); |
|
879 } |
|
880 |
|
881 |
|
882 /******************************/ |
|
883 /* FLASH MODE */ |
|
884 /******************************/ |
|
885 |
|
886 void CCaeTestStillSettings::TestFlashMode4L() |
|
887 { |
|
888 // Group: Settings. |
|
889 // |
|
890 // ID: CAE.SET-SC.SETFLASHMODEL.004 |
|
891 // |
|
892 // Action : Test flash mode setting with still image capture and viewfinding. |
|
893 // |
|
894 // Output : Leave. |
|
895 |
|
896 const TInt KSetVal = 4; |
|
897 |
|
898 TCamAppEngineInfo info; |
|
899 iSettingsClient->GetInfo( info ); |
|
900 |
|
901 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
902 |
|
903 iSettingsClient->SetFlashMode( KSetVal ); |
|
904 |
|
905 iSettingsClient->SetStillFileName( _L("cae_flash_mode_4.jpg") ); |
|
906 |
|
907 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
908 if ( KSetVal & info.iFlashModesSupported ) |
|
909 { |
|
910 assertL( err == KErrNone ); |
|
911 } |
|
912 else |
|
913 { |
|
914 assertL( err == KErrNotSupported ); |
|
915 } |
|
916 } |
|
917 |
|
918 void CCaeTestStillSettings::TestFlashMode8L() |
|
919 { |
|
920 // Group: Settings. |
|
921 // |
|
922 // ID: CAE.SET-SC.SETFLASHMODEL.005 |
|
923 // |
|
924 // Action : Test flash mode setting with still image capture and viewfinding. |
|
925 // |
|
926 // Output : Leave. |
|
927 |
|
928 const TInt KSetVal = 8; |
|
929 |
|
930 TCamAppEngineInfo info; |
|
931 iSettingsClient->GetInfo( info ); |
|
932 |
|
933 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
934 |
|
935 iSettingsClient->SetFlashMode( KSetVal ); |
|
936 |
|
937 iSettingsClient->SetStillFileName( _L("cae_flash_mode_8.jpg") ); |
|
938 |
|
939 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
940 if ( KSetVal & info.iFlashModesSupported ) |
|
941 { |
|
942 assertL( err == KErrNone ); |
|
943 } |
|
944 else |
|
945 { |
|
946 assertL( err == KErrNotSupported ); |
|
947 } |
|
948 } |
|
949 |
|
950 void CCaeTestStillSettings::TestFlashModeNeg1L() |
|
951 { |
|
952 // Group: Settings. |
|
953 // |
|
954 // ID: CAE.SET-SC.SETFLASHMODEL.006 |
|
955 // |
|
956 // Action : Test flash mode setting with still image capture and viewfinding. |
|
957 // |
|
958 // Output : Leave. |
|
959 |
|
960 const TInt KSetVal = -1; |
|
961 |
|
962 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
963 |
|
964 iSettingsClient->SetFlashMode( KSetVal ); |
|
965 |
|
966 //iSettingsClient->SetStillFileName( _L("cae_flash_mode_-1.jpg") ); |
|
967 |
|
968 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
969 assertL( err == KErrNotSupported ); |
|
970 } |
|
971 |
|
972 void CCaeTestStillSettings::TestFlashMode5L() |
|
973 { |
|
974 // Group: Settings. |
|
975 // |
|
976 // ID: CAE.SET-SC.SETFLASHMODEL.007 |
|
977 // |
|
978 // Action : Test flash mode setting with still image capture and viewfinding. |
|
979 // |
|
980 // Output : Leave. |
|
981 |
|
982 const TInt KSetVal = 5; |
|
983 |
|
984 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
985 |
|
986 iSettingsClient->SetFlashMode( KSetVal ); |
|
987 |
|
988 //iSettingsClient->SetStillFileName( _L("cae_flash_mode_5.jpg") ); |
|
989 |
|
990 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
991 assertL( err == KErrArgument || err == KErrNotSupported ); |
|
992 } |
|
993 |
|
994 void CCaeTestStillSettings::TestFlashMode6L() |
|
995 { |
|
996 // Group: Settings. |
|
997 // |
|
998 // ID: CAE.SET-SC.SETFLASHMODEL.008 |
|
999 // |
|
1000 // Action : Test flash mode setting with still image capture and viewfinding. |
|
1001 // |
|
1002 // Output : Leave. |
|
1003 |
|
1004 const TInt KSetVal = 6; |
|
1005 |
|
1006 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1007 |
|
1008 iSettingsClient->SetFlashMode( KSetVal ); |
|
1009 |
|
1010 //iSettingsClient->SetStillFileName( _L("cae_flash_mode_6.jpg") ); |
|
1011 |
|
1012 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
1013 assertL( err == KErrArgument || err == KErrNotSupported ); |
|
1014 } |
|
1015 void CCaeTestStillSettings::TestFlashMode9L() |
|
1016 { |
|
1017 // Group: Settings. |
|
1018 // |
|
1019 // ID: CAE.SET-SC.SETFLASHMODEL.009 |
|
1020 // |
|
1021 // Action : Test flash mode setting with still image capture and viewfinding. |
|
1022 // |
|
1023 // Output : Leave. |
|
1024 |
|
1025 const TInt KSetVal = 9; |
|
1026 |
|
1027 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1028 |
|
1029 iSettingsClient->SetFlashMode( KSetVal ); |
|
1030 |
|
1031 //iSettingsClient->SetStillFileName( _L("cae_flash_mode_9.jpg") ); |
|
1032 |
|
1033 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
1034 assertL( err == KErrArgument || err == KErrNotSupported ); |
|
1035 } |
|
1036 void CCaeTestStillSettings::TestFlashMode10L() |
|
1037 { |
|
1038 // Group: Settings. |
|
1039 // |
|
1040 // ID: CAE.SET-SC.SETFLASHMODEL.010 |
|
1041 // |
|
1042 // Action : Test flash mode setting with still image capture and viewfinding. |
|
1043 // |
|
1044 // Output : Leave. |
|
1045 |
|
1046 const TInt KSetVal = 10; |
|
1047 |
|
1048 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1049 |
|
1050 iSettingsClient->SetFlashMode( KSetVal ); |
|
1051 |
|
1052 //iSettingsClient->SetStillFileName( _L("cae_flash_mode_10.jpg") ); |
|
1053 |
|
1054 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
1055 assertL( err == KErrArgument || err == KErrNotSupported ); |
|
1056 } |
|
1057 |
|
1058 /******************************/ |
|
1059 /* INITIALIZED */ |
|
1060 /******************************/ |
|
1061 |
|
1062 void CCaeTestStillSettings::TestExposureModeInitialized2L() |
|
1063 { |
|
1064 // Group: Settings. |
|
1065 // |
|
1066 // ID: CAE.SET-SC.SETEXPOSUREMODEL.007 |
|
1067 // |
|
1068 // Action : Test exposure mode. |
|
1069 // |
|
1070 // Output : Leave. |
|
1071 |
|
1072 const TInt KSetVal = 2; |
|
1073 |
|
1074 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1075 |
|
1076 TCamAppEngineInfo info; |
|
1077 iSettingsClient->GetInfo( info ); |
|
1078 |
|
1079 iSettingsClient->SetExposureMode( KSetVal ); |
|
1080 |
|
1081 iSettingsClient->SetStillFileName( _L("cae_exposure_mode_initialized_2.jpg") ); |
|
1082 |
|
1083 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenInitialized ) ); |
|
1084 if ( KSetVal & info.iExposureModesSupported ) |
|
1085 { |
|
1086 assertL( err == KErrNone ); |
|
1087 } |
|
1088 else |
|
1089 { |
|
1090 assertL( err != KErrNone ); |
|
1091 } |
|
1092 } |
|
1093 |
|
1094 void CCaeTestStillSettings::TestWhiteBalanceModeInitialized2L() |
|
1095 { |
|
1096 // Group: Settings. |
|
1097 // |
|
1098 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.009 |
|
1099 // |
|
1100 // Action : Test white balance mode setting with still image capture and viewfinding. |
|
1101 // |
|
1102 // Output : Leave. |
|
1103 |
|
1104 const TInt KSetVal = 2; |
|
1105 |
|
1106 TCamAppEngineInfo info; |
|
1107 iSettingsClient->GetInfo( info ); |
|
1108 |
|
1109 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1110 |
|
1111 iSettingsClient->SetWhiteBalanceMode( KSetVal ); |
|
1112 |
|
1113 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_initialized_2.jpg") ); |
|
1114 |
|
1115 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenInitialized ) ); |
|
1116 if ( KSetVal & info.iWhiteBalanceModesSupported ) |
|
1117 { |
|
1118 assertL( err == KErrNone ); |
|
1119 } |
|
1120 else |
|
1121 { |
|
1122 assertL( err != KErrNone ); |
|
1123 } |
|
1124 } |
|
1125 |
|
1126 void CCaeTestStillSettings::TestFlashModeInitialized2L() |
|
1127 { |
|
1128 // Group: Settings. |
|
1129 // |
|
1130 // ID: CAE.SET-SC.SETFLASHMODEL.008 |
|
1131 // |
|
1132 // Action : Test flash mode setting with still image capture and viewfinding. |
|
1133 // |
|
1134 // Output : Leave. |
|
1135 |
|
1136 const TInt KSetVal = 2; |
|
1137 |
|
1138 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1139 |
|
1140 iSettingsClient->SetFlashMode( KSetVal ); |
|
1141 |
|
1142 iSettingsClient->SetStillFileName( _L("cae_flash_mode_initialized_2.jpg") ); |
|
1143 |
|
1144 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenInitialized ) ); |
|
1145 |
|
1146 #if (MIRAGE_X_PROD3) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD7) ||(MIRAGE_X_PROD9) |
|
1147 assertL( err == KErrNone ); |
|
1148 #else |
|
1149 assertL( err != KErrNone ); |
|
1150 #endif |
|
1151 } |
|
1152 |
|
1153 void CCaeTestStillSettings::TestDigiZoomInitializedMode0L() |
|
1154 { |
|
1155 // Group: Settings |
|
1156 // |
|
1157 // ID: CAE.SET-SC.SETZOOMMODEL.005 |
|
1158 // |
|
1159 // Action : Test digital zoom mode. |
|
1160 // |
|
1161 // Output : OK. |
|
1162 |
|
1163 const TInt KSetVal = 0; |
|
1164 |
|
1165 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1166 |
|
1167 iSettingsClient->SetZoomMode( KSetVal ); |
|
1168 |
|
1169 iSettingsClient->SetStillFileName( _L("cae_digizoom_initialized_mode_0.jpg") ); |
|
1170 |
|
1171 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenInitialized ); |
|
1172 } |
|
1173 |
|
1174 /******************************/ |
|
1175 /* GET INFO */ |
|
1176 /******************************/ |
|
1177 |
|
1178 void CCaeTestStillSettings::TestGetInfo() |
|
1179 { |
|
1180 // Group: Settings |
|
1181 // |
|
1182 // ID: CAE.GEN.GETINFO.001 |
|
1183 // |
|
1184 // Action : Call GetInfo. Engine initialized |
|
1185 // |
|
1186 // Output : OK. |
|
1187 |
|
1188 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
1189 } |
|
1190 |
|
1191 /********************************************************/ |
|
1192 /* RESET TO DEFAULTS */ |
|
1193 /********************************************************/ |
|
1194 |
|
1195 void CCaeTestStillSettings::TestResetToDefaultsL() |
|
1196 { |
|
1197 // ID: CAE.GEN.RESETTODEFAULTSL.001 |
|
1198 // |
|
1199 // Group: General Settings |
|
1200 // |
|
1201 // Action : Resets the following settings: exposure mode, white balance mode, |
|
1202 // zoom mode, zoom value, flash mode, brightness, and contrast. |
|
1203 // |
|
1204 // Output : OK. |
|
1205 |
|
1206 iSettingsClient->SetContrast( 50 ); |
|
1207 |
|
1208 iSettingsClient->SetBrightness( 50 ); |
|
1209 |
|
1210 #if MIRAGE_X_PROD7 |
|
1211 iSettingsClient->SetDigiZoomValue( 0 ); |
|
1212 #else |
|
1213 iSettingsClient->SetDigiZoomValue( 1 ); |
|
1214 #endif |
|
1215 |
|
1216 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EResetToDefaults ); |
|
1217 } |
|
1218 |
|
1219 |
|
1220 /********************************************************/ |
|
1221 /* VIEW FINDER MIRROR */ |
|
1222 /********************************************************/ |
|
1223 |
|
1224 void CCaeTestStillSettings::TestSetViewFinderMirrorL() |
|
1225 { |
|
1226 // ID: CAE.VF.SETVIEWFINDERMIRROR.001 |
|
1227 // |
|
1228 // Group: View Finder |
|
1229 // |
|
1230 // Action: Test view finder mirror when initialization is done. |
|
1231 // |
|
1232 // Output: No leave if supported, leave if not supported. |
|
1233 |
|
1234 TCamAppEngineInfo info; |
|
1235 iSettingsClient->GetInfo( info ); |
|
1236 |
|
1237 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetViewFinderMirror ) ); |
|
1238 if ( TCameraInfo::EViewFinderMirrorSupported & info.iOptionsSupported ) |
|
1239 { |
|
1240 assertL( err == KErrNone ); |
|
1241 } |
|
1242 else |
|
1243 { |
|
1244 assertL( err == KErrNotSupported ); |
|
1245 } |
|
1246 } |
|
1247 |
|
1248 /********************************************************/ |
|
1249 /* GET STILL FRAME SIZE */ |
|
1250 /********************************************************/ |
|
1251 |
|
1252 void CCaeTestStillSettings::TestGetStillFrameSizeWhenInitializedL() |
|
1253 { |
|
1254 // ID: CAE.SC.GETSTILLFRAMESIZE.001 |
|
1255 // |
|
1256 // Group: Capture |
|
1257 // |
|
1258 // Action : Get still image frame size for the specified quality level. |
|
1259 // Initialization is done. |
|
1260 // |
|
1261 // Output : No leave if supported. Leave if not supported. |
|
1262 |
|
1263 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1264 |
|
1265 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetStillFrameSizeWhenInitialized ); |
|
1266 |
|
1267 TSize size( 640, 480 ); |
|
1268 |
|
1269 TSize stillFrameSize; |
|
1270 iSettingsClient->GetStillFrameSize( stillFrameSize ); |
|
1271 if ( stillFrameSize != size ) |
|
1272 { |
|
1273 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1274 } |
|
1275 } |
|
1276 |
|
1277 void CCaeTestStillSettings::TestGetStillFrameSizeWhenPreparedL() |
|
1278 { |
|
1279 // ID: CAE.SC.GETSTILLFRAMESIZE.002 |
|
1280 // |
|
1281 // Group: Capture |
|
1282 // |
|
1283 // Action : Get still image frame size for the specified quality level, |
|
1284 // when prepared. |
|
1285 // |
|
1286 // Output : No leave. |
|
1287 |
|
1288 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1289 |
|
1290 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetStillFrameSizeWhenPrepared ); |
|
1291 |
|
1292 TSize size( 640, 480 ); |
|
1293 |
|
1294 TSize stillFrameSize; |
|
1295 iSettingsClient->GetStillFrameSize( stillFrameSize ); |
|
1296 if ( stillFrameSize != size ) |
|
1297 { |
|
1298 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1299 } |
|
1300 } |
|
1301 |
|
1302 /********************************************************/ |
|
1303 /* ESTIMATED STILL SIZE IN BYTES */ |
|
1304 /********************************************************/ |
|
1305 |
|
1306 void CCaeTestStillSettings::TestEstimatedStillSizeInBytesWhenInitializedL() |
|
1307 { |
|
1308 // ID: CAE.SC.ESTIMATEDSTILLSIZEINBYTES.001 |
|
1309 // |
|
1310 // Group: Capture |
|
1311 // |
|
1312 // Action : Get the estimated still image size in bytes |
|
1313 // (for the specified quality level). |
|
1314 // Initialization is done. |
|
1315 // |
|
1316 // Output : No leave. |
|
1317 |
|
1318 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1319 |
|
1320 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EEstimatedStillSizeInBytesWhenInitialized); |
|
1321 |
|
1322 TInt stillByteSize; |
|
1323 stillByteSize = iSettingsClient->EstimatedStillSizeInBytes(); |
|
1324 if ( stillByteSize != 90000 ) |
|
1325 { |
|
1326 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1327 } |
|
1328 } |
|
1329 |
|
1330 void CCaeTestStillSettings::TestEstimatedStillSizeInBytesWhenPreparedL() |
|
1331 { |
|
1332 // ID: CAE.SC.ESTIMATEDSTILLSIZEINBYTES.002 |
|
1333 // |
|
1334 // Group: Capture |
|
1335 // |
|
1336 // Action : Get the estimated still image size in bytes |
|
1337 // (for the specified quality level), |
|
1338 // when prepared. |
|
1339 // |
|
1340 // Output : No leave. |
|
1341 |
|
1342 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1343 |
|
1344 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EEstimatedStillSizeInBytesWhenPrepared); |
|
1345 |
|
1346 TInt stillByteSize; |
|
1347 stillByteSize = iSettingsClient->EstimatedStillSizeInBytes(); |
|
1348 if ( stillByteSize != 90000 ) |
|
1349 { |
|
1350 User::Leave ( KErrGetNotEqualToValuePreviouslySet ); |
|
1351 } |
|
1352 } |
|
1353 /********************************************************/ |
|
1354 /* SET SNAP IMAGE SIZE */ |
|
1355 /********************************************************/ |
|
1356 |
|
1357 void CCaeTestStillSettings::TestSetSnapImageSizeBeforePrepareL() |
|
1358 { |
|
1359 // ID: CAE.SC.SETSNAPIMAGESIZE.001 |
|
1360 // |
|
1361 // Group: Capture |
|
1362 // |
|
1363 // Action : Set the snap image size before preparing. |
|
1364 // |
|
1365 // Output : Should return KErrNotReady. |
|
1366 |
|
1367 iSettingsClient->SetStillFormat( CCamera::EFormatExif ); |
|
1368 |
|
1369 iSettingsClient->SetSnapFileName( _L("cae_set_snap_size1.mbm") ); |
|
1370 |
|
1371 iSettingsClient->SetSnapImageSize( TSize( 44, 52 ) ); |
|
1372 |
|
1373 TRAPD(err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetSnapImageSizeBeforePrepare )); |
|
1374 |
|
1375 assertL( err == KErrNotReady ); |
|
1376 |
|
1377 } |
|
1378 |
|
1379 void CCaeTestStillSettings::TestSetSnapImageSizeDuringAndAfterPrepareL() |
|
1380 { |
|
1381 // ID: CAE.SC.SETSNAPIMAGESIZE.003 |
|
1382 // |
|
1383 // Group: Capture |
|
1384 // |
|
1385 // Action : Set the snap image size before preparing. |
|
1386 // |
|
1387 // Output : Ok. Visual check snap image size. |
|
1388 |
|
1389 iSettingsClient->SetStillFormat( CCamera::EFormatExif ); |
|
1390 |
|
1391 iSettingsClient->SetSnapFileName( _L("cae_set_snap_size2.mbm") ); |
|
1392 |
|
1393 iSettingsClient->SetSnapImageSize( TSize( 44, 52 ) ); |
|
1394 |
|
1395 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetSnapImageSizeDuringAndAfterPrepare ); |
|
1396 |
|
1397 } |
|
1398 |
|
1399 |
|
1400 void CCaeTestStillSettings::TestInitUidL() |
|
1401 { |
|
1402 // ID: CAE.SC.INITUID.001 |
|
1403 // |
|
1404 // Group: Capture |
|
1405 // |
|
1406 // Action : Get the estimated still image size in bytes |
|
1407 // (for the specified quality level), |
|
1408 // when prepared. |
|
1409 // |
|
1410 // Output : No leave. |
|
1411 |
|
1412 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1413 |
|
1414 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EInitUid) ); |
|
1415 |
|
1416 assertL( err == KErrNotSupported ); |
|
1417 |
|
1418 } |
|
1419 |
|
1420 void CCaeTestStillSettings::TestSetJpegQuality0L() |
|
1421 { |
|
1422 // ID: CAE.SET-SC.SETJPEGQUALITY.002 |
|
1423 // |
|
1424 // Group: Capture |
|
1425 // |
|
1426 // Action : Test to prepare still capturing and capture quality level 0 |
|
1427 // image when initialization is done and viewfinder is running. |
|
1428 // This test case is for boundary value testing. |
|
1429 // |
|
1430 // Output : OK. |
|
1431 |
|
1432 iSettingsClient->SetStillFormat( CCamera::EFormatJpeg ); |
|
1433 |
|
1434 iSettingsClient->SetStillCompressionQuality( 0 ); |
|
1435 |
|
1436 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1437 |
|
1438 iSettingsClient->SetStillFrameSize( sizeVga ); |
|
1439 |
|
1440 // iSettingsClient->SetStillFileName( _L("cae_jpeg_quality_setting_0.jpg") ); |
|
1441 |
|
1442 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetJpegQualityWhenStillPrepared ); |
|
1443 |
|
1444 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1445 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1446 assertL( iSettingsClient->CountSnapImageReady() == 1 ); |
|
1447 assertL( iSettingsClient->CountStillImageReady() == 1 ); |
|
1448 } |
|
1449 |
|
1450 void CCaeTestStillSettings::TestSetJpegQuality101L() |
|
1451 { |
|
1452 // ID: CAE.SET-SC.SETJPEGQUALITY.003 |
|
1453 // |
|
1454 // Group: Capture |
|
1455 // |
|
1456 // Action : Test to prepare still capturing and capture quality level 101 |
|
1457 // image when initialization is done and viewfinder is running. |
|
1458 // This test case is for boundary value testing. |
|
1459 // |
|
1460 // Output : OK. |
|
1461 |
|
1462 iSettingsClient->SetStillFormat( CCamera::EFormatJpeg ); |
|
1463 |
|
1464 iSettingsClient->SetStillCompressionQuality( 101 ); |
|
1465 |
|
1466 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1467 |
|
1468 iSettingsClient->SetStillFrameSize( sizeVga ); |
|
1469 |
|
1470 // iSettingsClient->SetStillFileName( _L("cae_jpeg_quality_setting_101.jpg") ); |
|
1471 |
|
1472 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetJpegQualityWhenStillPrepared ); |
|
1473 |
|
1474 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1475 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1476 assertL( iSettingsClient->CountSnapImageReady() == 1 ); |
|
1477 assertL( iSettingsClient->CountStillImageReady() == 1 ); |
|
1478 } |
|
1479 |
|
1480 |
|
1481 void CCaeTestStillSettings::TestCaptureStillBurstIntervalM2L() |
|
1482 { |
|
1483 // ID: CAE.SC.CAPTURESTILLBURSTINTERVAL.M2.004 |
|
1484 // |
|
1485 // Group: Capture |
|
1486 // |
|
1487 // Action : Test to prepare still capturing burst mode, |
|
1488 // SetStillBurstCaptureIntervalL, StillBurstCaptureInterval |
|
1489 // and capture three images in a burst, when initialization is done. |
|
1490 // |
|
1491 // Output : Leave. |
|
1492 |
|
1493 const TInt KStillBurstLength = 3; |
|
1494 |
|
1495 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1496 |
|
1497 iSettingsClient->SetStillBurstLength( KStillBurstLength ); |
|
1498 |
|
1499 TTimeIntervalMicroSeconds burstInterval( KMaxTUint32 ); // Test with too big value |
|
1500 |
|
1501 iSettingsClient->SetStillBurstCaptureInterval( burstInterval ); |
|
1502 |
|
1503 TRAPD( error, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EPrepareAndSetStillBurstCaptureInterval ) ); |
|
1504 assertL( error == KErrArgument ); |
|
1505 |
|
1506 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1507 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1508 assertL( iSettingsClient->CountStillBurstCaptureMoment() == 0 ); |
|
1509 assertL( iSettingsClient->CountSnapImageReady() == 0 ); |
|
1510 assertL( iSettingsClient->CountStillImageReady() == 0 ); |
|
1511 assertL( iSettingsClient->CountStillBurstComplete() == 0 ); |
|
1512 } |
|
1513 |
|
1514 |
|
1515 void CCaeTestStillSettings::TestSetJpegCodecInvalidL() |
|
1516 { |
|
1517 // ID: CAE.SET-SC.SETJPEGCODEC.001 |
|
1518 // |
|
1519 // Group: Capture |
|
1520 // |
|
1521 // Action : Test to prepare still capturing and capture an image |
|
1522 // when initialization is done and viewfinder is running. |
|
1523 // This test case is for invalid codec uid testing. |
|
1524 // |
|
1525 // Output : Leave. |
|
1526 |
|
1527 iSettingsClient->SetStillFormat( CCamera::EFormatExif ); |
|
1528 |
|
1529 iSettingsClient->SetImageCodecs( TUid::Uid( 0x12345 ), TUid::Uid( 0x54321 ) ); // Invalid codec uids |
|
1530 |
|
1531 TRAPD( error, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetJpegCodecWhenStillPrepared )); |
|
1532 assertL( error == KErrNotFound ); |
|
1533 |
|
1534 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1535 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1536 assertL( iSettingsClient->CountSnapImageReady() == 1 ); |
|
1537 assertL( iSettingsClient->CountStillImageReady() == 0 ); |
|
1538 } |
|
1539 |
|
1540 |
|
1541 |
|
1542 // |
|
1543 // An own static function to collect the test functions into one |
|
1544 // suite of tests. The framework will run the tests and free the |
|
1545 // memory allocated for the test suite. |
|
1546 // |
|
1547 |
|
1548 MTest* CCaeTestStillSettings::suiteL () |
|
1549 { |
|
1550 // Always use NewL (Do not use NewLC) !!! |
|
1551 CTestSuite *suite = CTestSuite::NewL( _L8("CCaeTestStillSettings") ); |
|
1552 |
|
1553 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.003"), &TestDigiZoomVal2L ) ); |
|
1554 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.004"), &TestDigiZoomValNeg1L ) ); |
|
1555 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.005"), &TestOpticalZoomValMinL ) ); |
|
1556 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.006"), &TestOpticalZoomValMaxL ) ); |
|
1557 |
|
1558 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMMODEL.001"), &TestDigiZoomMode0L ) ); |
|
1559 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMMODEL.002"), &TestOpticalZoomMode1L ) ); |
|
1560 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMMODEL.003"), &TestOpticalDigiZoomMode2L ) ); |
|
1561 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMMODEL.004"), &TestDigiZoomModeNeg1L ) ); |
|
1562 |
|
1563 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETBRIGHTNESSL.002"), &TestBrightness0L ) ); |
|
1564 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETBRIGHTNESSL.003"), &TestBrightness100L ) ); |
|
1565 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETBRIGHTNESSL.004"), &TestBrightnessNeg100L ) ); |
|
1566 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETBRIGHTNESSL.005"), &TestBrightness101L ) ); |
|
1567 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETBRIGHTNESSL.006"), &TestBrightnessNeg101L ) ); |
|
1568 |
|
1569 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETCONTRASTL.002"), &TestContrast0L ) ); |
|
1570 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETCONTRASTL.003"), &TestContrast100L ) ); |
|
1571 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETCONTRASTL.004"), &TestContrastNeg100L ) ); |
|
1572 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETCONTRASTL.005"), &TestContrast101L ) ); |
|
1573 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETCONTRASTL.006"), &TestContrastNeg101L ) ); |
|
1574 |
|
1575 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.003"), &TestExposureMode2L ) ); |
|
1576 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.004"), &TestExposureMode4L ) ); |
|
1577 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.005"), &TestExposureModeNeg1L ) ); |
|
1578 |
|
1579 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.006"), &TestExposureMode5L ) ); |
|
1580 |
|
1581 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.002"), &TestWhiteBalanceMode1L ) ); |
|
1582 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.003"), &TestWhiteBalanceMode2L ) ); |
|
1583 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.004"), &TestWhiteBalanceMode4L ) ); |
|
1584 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.005"), &TestWhiteBalanceMode8L ) ); |
|
1585 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.006"), &TestWhiteBalanceMode10L ) ); |
|
1586 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.007"), &TestWhiteBalanceModeNeg1L ) ); |
|
1587 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.008"), &TestWhiteBalanceMode5L ) ); |
|
1588 |
|
1589 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.004"), &TestFlashMode4L ) ); |
|
1590 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.005"), &TestFlashMode8L ) ); |
|
1591 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.006"), &TestFlashModeNeg1L ) ); |
|
1592 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.007"), &TestFlashMode5L ) ); |
|
1593 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.008"), &TestFlashMode6L ) ); |
|
1594 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.009"), &TestFlashMode9L ) ); |
|
1595 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.010"), &TestFlashMode10L ) ); |
|
1596 |
|
1597 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.007"), &TestExposureModeInitialized2L ) ); |
|
1598 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.009"), &TestWhiteBalanceModeInitialized2L ) ); |
|
1599 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.008"), &TestFlashModeInitialized2L ) ); |
|
1600 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETZOOMMODEL.005"), &TestDigiZoomInitializedMode0L ) ); |
|
1601 |
|
1602 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.GEN.GETINFO.001"), &TestGetInfo ) ); |
|
1603 |
|
1604 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.GEN.RESETTODEFAULTSL.001"), &TestResetToDefaultsL ) ); |
|
1605 |
|
1606 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.VF.SETVIEWFINDERMIRROR.001"), &TestSetViewFinderMirrorL ) ); |
|
1607 |
|
1608 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.GETSTILLFRAMESIZE.001"), &TestGetStillFrameSizeWhenInitializedL ) ); |
|
1609 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.GETSTILLFRAMESIZE.002"), &TestGetStillFrameSizeWhenPreparedL ) ); |
|
1610 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.ESTIMATEDSTILLSIZEINBYTES.001"), &TestEstimatedStillSizeInBytesWhenInitializedL ) ); |
|
1611 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.ESTIMATEDSTILLSIZEINBYTES.002"), &TestEstimatedStillSizeInBytesWhenPreparedL ) ); |
|
1612 |
|
1613 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.SETSNAPIMAGESIZE.001"), &TestSetSnapImageSizeBeforePrepareL ) ); |
|
1614 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.SETSNAPIMAGESIZE.003"), &TestSetSnapImageSizeDuringAndAfterPrepareL ) ); |
|
1615 |
|
1616 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.INITUID.001"), &TestInitUidL ) ); |
|
1617 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETJPEGQUALITY.002"), &TestSetJpegQuality0L ) ); |
|
1618 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETJPEGQUALITY.003"), &TestSetJpegQuality101L ) ); |
|
1619 |
|
1620 #ifdef __CAMERA_BURST_MODE |
|
1621 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTINTERVAL.M2.004"), &TestCaptureStillBurstIntervalM2L ) ); |
|
1622 #endif |
|
1623 |
|
1624 suite->addTestL( CTestCaller<CCaeTestStillSettings>::NewL( _L8("CAE.SET-SC.SETJPEGCODEC.001"), &TestSetJpegCodecInvalidL ) ); |
|
1625 |
|
1626 return suite; |
|
1627 } |
|
1628 |