|
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: CaeTestRelease.cpp |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "CaeTestRelease.h" |
|
19 #include <f32file.h> |
|
20 #include <e32base.h> |
|
21 #include <e32svr.h> |
|
22 |
|
23 |
|
24 const TReal32 KViewFinderFrameFrequencyMinimum = 15.0; |
|
25 |
|
26 |
|
27 |
|
28 CCaeTestRelease::CCaeTestRelease () |
|
29 { |
|
30 } |
|
31 |
|
32 |
|
33 |
|
34 CCaeTestRelease::~CCaeTestRelease () |
|
35 { |
|
36 } |
|
37 |
|
38 |
|
39 void CCaeTestRelease::setUpL () |
|
40 { |
|
41 iStatesClient = CCaeTestStatesClient::NewL( ); |
|
42 |
|
43 iStatesClient->SetFileNameBase( KFileNameBase ); |
|
44 |
|
45 iSettingsClient = CCaeTestSettingsClient::NewL(); |
|
46 |
|
47 iSettingsClient->SetFileNameBase( KFileNameBase ); |
|
48 } |
|
49 |
|
50 |
|
51 void CCaeTestRelease::tearDown () |
|
52 { |
|
53 // pointers in other test e.g. still states tests etc. are not cleared |
|
54 delete iStatesClient; |
|
55 iStatesClient = NULL; |
|
56 delete iSettingsClient; |
|
57 iSettingsClient = NULL; |
|
58 // User::After(30000000); |
|
59 } |
|
60 |
|
61 |
|
62 // |
|
63 // Own test functions. |
|
64 // |
|
65 // The framework will do for a test function: |
|
66 // |
|
67 // setUpL(); |
|
68 // TRAPD(leaveCode, 'myTestFunction()'); |
|
69 // "Report leave error or assertion failure for 'myTestFunction()'". |
|
70 // tearDown(); |
|
71 // |
|
72 |
|
73 |
|
74 /********************************************************/ |
|
75 /* GENERAL TESTS */ |
|
76 /********************************************************/ |
|
77 |
|
78 void CCaeTestRelease::TestInitL() |
|
79 { |
|
80 // ID: CAE.GEN.INITL.001 |
|
81 // |
|
82 // General |
|
83 // |
|
84 // Action : Test call InitL() when instatiation is done. |
|
85 // |
|
86 // Output : OK. |
|
87 |
|
88 iStatesClient->RunTestActionL( CCaeTestStatesClient::EInit );// here we have to put the correct action |
|
89 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
90 } |
|
91 |
|
92 void CCaeTestRelease::TestInitVideoRecorderL() |
|
93 { |
|
94 // ID: CAE.GEN.INITVIDEORECORDERL.001 |
|
95 // |
|
96 // General |
|
97 // |
|
98 // Action : Test Call InitVideoRecorderL() when initialization is done. |
|
99 // |
|
100 // Output : OK. |
|
101 |
|
102 iStatesClient->RunTestActionL( CCaeTestStatesClient::EInitVideoRecorder );// here we have to put the correct action |
|
103 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
104 } |
|
105 |
|
106 void CCaeTestRelease::TestPowerOffAndOnL() |
|
107 { |
|
108 // ID: CAE.GEN.POWEROFFANDON.001 |
|
109 // |
|
110 // General |
|
111 // |
|
112 // Action : Test to turn camera power off and on when initialization is done. |
|
113 // |
|
114 // Output : OK. |
|
115 |
|
116 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOffAndOn ); |
|
117 assertL( iStatesClient->CountInitComplete() == 2 ); |
|
118 } |
|
119 |
|
120 void CCaeTestRelease::TestReleaseAndReserveL() |
|
121 { |
|
122 // ID: CAE.GEN.RELESEANDRESERVE.001 |
|
123 // |
|
124 // General |
|
125 // |
|
126 // Action : Release vapauttaa kameran muiden sovellusten käyttöön. |
|
127 // Reserve varaa kameran (uudestaan) ja palauttaa entiset asetukset (kontrasti,....) voimaan. |
|
128 // |
|
129 // Output : OK. |
|
130 |
|
131 iStatesClient->RunTestActionL( CCaeTestStatesClient::EReleaseReserve ); |
|
132 assertL( iStatesClient->CountInitComplete() == 2 ); |
|
133 } |
|
134 |
|
135 void CCaeTestRelease::TestCCameraHandleL() |
|
136 { |
|
137 // ID: CAE.GEN.CCAMERAHANDLE.001 |
|
138 // |
|
139 // General |
|
140 // |
|
141 // Action : Test call CCameraHandle when instatiation is done. |
|
142 // |
|
143 // Output : OK. |
|
144 |
|
145 iStatesClient->RunTestActionL( CCaeTestStatesClient::ECCameraHandle ); |
|
146 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
147 } |
|
148 |
|
149 /********************************************************/ |
|
150 /* STILL CAPTURE GENERAL TESTS */ |
|
151 /********************************************************/ |
|
152 |
|
153 void CCaeTestRelease::TestPowerOnWhenInitializedL() |
|
154 { |
|
155 // ID: CAE.GEN-SC.POWERON.001 |
|
156 // |
|
157 // General |
|
158 // |
|
159 // Action : Test to turn camera power on when initialization is done. |
|
160 // |
|
161 // Output : OK. |
|
162 |
|
163 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOnWhenInitialized );// here we have to put the correct action |
|
164 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
165 } |
|
166 |
|
167 void CCaeTestRelease::TestPowerOnWhenStillCapturePreparedL() |
|
168 { |
|
169 // ID: CAE.GEN-SC.POWERON.002 |
|
170 // |
|
171 // General |
|
172 // |
|
173 // Action : Test to turn camera power on when still capture prepared. |
|
174 // |
|
175 // Output : OK. |
|
176 |
|
177 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
178 |
|
179 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOnWhenStillPrepared );// here we have to put the correct action |
|
180 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
181 } |
|
182 |
|
183 void CCaeTestRelease::TestPowerOffWhenStillCapturePreparedL() |
|
184 { |
|
185 // ID: CAE.GEN-SC.POWEROFF.001 |
|
186 // |
|
187 // General |
|
188 // |
|
189 // Action : Test to turn camera power off when still capture prepared. |
|
190 // |
|
191 // Output : OK. |
|
192 |
|
193 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
194 |
|
195 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOffWhenStillPrepared );// here we have to put the correct action |
|
196 |
|
197 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
198 } |
|
199 |
|
200 void CCaeTestRelease::TestPowerOffWhenViewfinderRunningL() |
|
201 { |
|
202 // ID: CAE.GEN-SC.POWEROFF.002 |
|
203 // |
|
204 // General |
|
205 // |
|
206 // Action : Test to turn camera power off when viewfinder running. |
|
207 // |
|
208 // Output : OK. |
|
209 |
|
210 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOffWhenVfRunning );// here we have to put the correct action |
|
211 |
|
212 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
213 } |
|
214 |
|
215 |
|
216 /********************************************************/ |
|
217 /* VIDEO RECORDING GENERAL TESTS */ |
|
218 /********************************************************/ |
|
219 |
|
220 void CCaeTestRelease::TestPowerOnWhenVideoRecordingPreparedL() |
|
221 { |
|
222 // ID: CAE.GEN-VR.POWERON.003 |
|
223 // |
|
224 // General |
|
225 // |
|
226 // Action : Test to turn camera power on when video recording prepared. |
|
227 // |
|
228 // Output : OK. |
|
229 |
|
230 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
231 |
|
232 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOnWhenVideoPrepared );// here we have to put the correct action |
|
233 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
234 } |
|
235 |
|
236 void CCaeTestRelease::TestPowerOnWhenRecordingL() |
|
237 { |
|
238 // ID: CAE.GEN.VR.POWERON.004 |
|
239 // |
|
240 // General |
|
241 // |
|
242 // Action : Test to turn camera power on when recording. |
|
243 // |
|
244 // Output : OK. |
|
245 |
|
246 iStatesClient->SetTimeout( 1000000 ); |
|
247 |
|
248 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
249 |
|
250 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOnWhenRecordingVideo );// here we have to put the correct action |
|
251 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
252 } |
|
253 |
|
254 void CCaeTestRelease::TestPowerOffWhenVideoRecordingPreparedL() |
|
255 { |
|
256 // ID: CAE.GEN-VR.POWEROFF.003 |
|
257 // |
|
258 // General |
|
259 // |
|
260 // Action : Test to turn camera power off video recording prepared. |
|
261 // |
|
262 // Output : OK. |
|
263 |
|
264 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
265 |
|
266 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOffWhenVideoPrepared );// here we have to put the correct action |
|
267 } |
|
268 |
|
269 void CCaeTestRelease::TestPowerOffWhenRecordingL() |
|
270 { |
|
271 // ID: CAE.GEN-VR.POWEROFF.004 |
|
272 // |
|
273 // General |
|
274 // |
|
275 // Action : Test to turn camera power off when recording. |
|
276 // |
|
277 // Output : OK. |
|
278 |
|
279 iStatesClient->SetTimeout( 1000000 ); |
|
280 |
|
281 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
282 |
|
283 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESwitchPowerOffWhenRecordingVideo );// here we have to put the correct action |
|
284 } |
|
285 |
|
286 /********************************************************/ |
|
287 /* VIEW FINDER */ |
|
288 /********************************************************/ |
|
289 |
|
290 void CCaeTestRelease::TestViewFinderStartAndStopQqvgaL() |
|
291 { |
|
292 // CAE.VF.STARTSTOPVIEWFINDER.QQVGA.001 |
|
293 // |
|
294 // View Finder |
|
295 // |
|
296 // Action : Test to start and stop QQVGA view finder when initialization is done. |
|
297 // |
|
298 // Output : OK. |
|
299 |
|
300 TSize sizeQqvga( KImgWidthQQVGA, KImgHeightQQVGA ); |
|
301 |
|
302 iStatesClient->SetViewFinderSize( sizeQqvga ); |
|
303 iStatesClient->SetTimeout( 10000000 ); |
|
304 |
|
305 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartAndStopVf ); |
|
306 |
|
307 TReal32 viewFinderFrameFrequency = iStatesClient->ViewFinderFrameFrequency(); |
|
308 |
|
309 assertL( viewFinderFrameFrequency >= KViewFinderFrameFrequencyMinimum ); |
|
310 } |
|
311 |
|
312 void CCaeTestRelease::TestViewFinderStartAndStopSubqcifL() |
|
313 { |
|
314 // CAE.VF.STARTSTOPVIEWFINDER.SUBQCIF.002 |
|
315 // |
|
316 // View Finder |
|
317 // |
|
318 // Action : Test to start and stop SUBQCIF view finder when initialization is done. |
|
319 // |
|
320 // Output : OK. |
|
321 |
|
322 TSize sizeSubqcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
323 |
|
324 iStatesClient->SetViewFinderSize( sizeSubqcif ); |
|
325 iStatesClient->SetTimeout( 10000000 ); |
|
326 |
|
327 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartAndStopVf ); |
|
328 |
|
329 TReal32 viewFinderFrameFrequency = iStatesClient->ViewFinderFrameFrequency(); |
|
330 |
|
331 assertL( viewFinderFrameFrequency >= KViewFinderFrameFrequencyMinimum ); |
|
332 } |
|
333 |
|
334 void CCaeTestRelease::TestCroppedViewFinderStartAndStopL() |
|
335 { |
|
336 // CAE.VF.STARTSTOPVIEWFINDER.CROPPED.003 |
|
337 // |
|
338 // View Finder |
|
339 // |
|
340 // Action : Test to start and stop cropped view finder when initialization is done. |
|
341 // |
|
342 // Output : OK. |
|
343 |
|
344 TSize sizeQqvga( KImgWidthQQVGA, KImgHeightQQVGA ); |
|
345 |
|
346 iStatesClient->SetViewFinderSize( sizeQqvga ); |
|
347 iStatesClient->SetTimeout( 100000 ); |
|
348 |
|
349 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartAndStopCroppedVf ) ); |
|
350 if( error == KErrNoMemory ) |
|
351 { |
|
352 User::Leave( error ); // For memory test |
|
353 } |
|
354 assertL( error == KErrNotSupported ); |
|
355 |
|
356 TReal32 viewFinderFrameFrequency = iStatesClient->ViewFinderFrameFrequency(); |
|
357 |
|
358 assertL( viewFinderFrameFrequency >= KViewFinderFrameFrequencyMinimum ); |
|
359 } |
|
360 |
|
361 void CCaeTestRelease::TestViewFinderDirectStartAndStopL() |
|
362 { |
|
363 // CAE.VF.STARTSTOPVIEWFINDERDIRECT.001 |
|
364 // |
|
365 // View Finder |
|
366 // |
|
367 // Action : Test to start and stop view finder direct when initialization is done. |
|
368 // |
|
369 // Output : Leave. |
|
370 |
|
371 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartAndStopDirectVf ) ); |
|
372 if( error == KErrNoMemory ) |
|
373 { |
|
374 User::Leave( error ); // For memory test |
|
375 } |
|
376 #if (HW_DEVLON) |
|
377 assertL( error != KErrNotSupported ); // Returns error because illegal parameters (NULL) |
|
378 #else |
|
379 assertL( error == KErrNotSupported ); |
|
380 #endif |
|
381 } |
|
382 |
|
383 void CCaeTestRelease::TestCroppedViewFinderDirectStartAndStopL() |
|
384 { |
|
385 // CAE.VF.STARTSTOPVIEWFINDERDIRECT.002 |
|
386 // |
|
387 // View Finder |
|
388 // |
|
389 // Action : Test to start and stop cropped view finder direct when initialization is done. |
|
390 // |
|
391 // Output : Leave. |
|
392 |
|
393 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartAndStopCroppedDirectVf ) ); |
|
394 if( error == KErrNoMemory ) |
|
395 { |
|
396 User::Leave( error ); // For memory test |
|
397 } |
|
398 #if (HW_DEVLON) |
|
399 assertL( error == KErrNotSupported ); // Not supported |
|
400 #else |
|
401 assertL( error == KErrNotSupported ); |
|
402 #endif |
|
403 } |
|
404 |
|
405 /********************************************************/ |
|
406 /* STILL CAPTURE QUALITY LEVEL */ |
|
407 /********************************************************/ |
|
408 |
|
409 void CCaeTestRelease::TestCaptureQualityLevel0L() |
|
410 { |
|
411 // ID: CAE.SC.CAPTURESTILL.JPEGVGA90.008 |
|
412 // |
|
413 // Group: Capture |
|
414 // |
|
415 // Action : Test to prepare still capturing and capture quality level 0 |
|
416 // image when initialization is done and viewfinder is running. |
|
417 // |
|
418 // Output : OK. |
|
419 |
|
420 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
421 |
|
422 iStatesClient->SetSnapFileName( _L("cae_snap_vga16M.mbm") ); |
|
423 |
|
424 iStatesClient->SetStillFileName( _L("cae_ql_0_vga90.jpg") ); |
|
425 |
|
426 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVf ); |
|
427 |
|
428 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
429 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
430 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
431 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
432 } |
|
433 |
|
434 |
|
435 void CCaeTestRelease::TestCaptureQualityLevel1L() |
|
436 { |
|
437 // ID: CAE.SC.CAPTURESTILL.JPEGVGA50.009 |
|
438 |
|
439 // Group: Capture |
|
440 // |
|
441 // Action : Test to prepare still capturing and capture quality level 1 |
|
442 // image when initialization is done and viewfinder is running. |
|
443 // |
|
444 // Output : OK. |
|
445 |
|
446 iStatesClient->SetStillQualityLevelIndex( 1 ); |
|
447 |
|
448 iStatesClient->SetStillFileName( _L("cae_ql_1_vga50.jpg") ); |
|
449 |
|
450 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVf ); |
|
451 } |
|
452 |
|
453 |
|
454 void CCaeTestRelease::TestCaptureQualityLevel2L() |
|
455 { |
|
456 // ID: CAE.SC.CAPTURESTILL.JPEGQQVGA90.010 |
|
457 |
|
458 // Group: Capture |
|
459 // |
|
460 // Action : Test to prepare still capturing and capture quality level 2 |
|
461 // image when initialization is done and viewfinder is running. |
|
462 // |
|
463 // Output : OK. |
|
464 |
|
465 iStatesClient->SetStillQualityLevelIndex( 2 ); |
|
466 |
|
467 iStatesClient->SetStillFileName( _L("cae_ql_2_qqvga90.jpg") ); |
|
468 |
|
469 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVf ); |
|
470 } |
|
471 |
|
472 |
|
473 /********************************************************/ |
|
474 /* STILL CAPTURE */ |
|
475 /********************************************************/ |
|
476 |
|
477 void CCaeTestRelease::TestCaptureVga16ML() |
|
478 { |
|
479 // ID: CAE.SC.CAPTURESTILL.VGA16M.002 |
|
480 // |
|
481 // Group: Capture |
|
482 // |
|
483 // Action : Test to setup still capturing and capture VGA 16M |
|
484 // image when initialization is done. |
|
485 // |
|
486 // Output : OK. |
|
487 |
|
488 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
489 |
|
490 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
491 |
|
492 iStatesClient->SetStillFrameSize( sizeVga ); |
|
493 |
|
494 iStatesClient->SetStillFileName( _L("cae_vga16M.mbm") ); |
|
495 |
|
496 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
497 |
|
498 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
499 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
500 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
501 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
502 } |
|
503 |
|
504 |
|
505 void CCaeTestRelease::TestCaptureVga64KL() |
|
506 { |
|
507 // ID: CAE.SC.CAPTURESTILL.VGA64K.003 |
|
508 // |
|
509 // Group: Capture |
|
510 // |
|
511 // Action : Test to setup still capturing and capture VGA 64K |
|
512 // image when initialization is done. |
|
513 // |
|
514 // Output : OK. |
|
515 |
|
516 RDebug::Print(_L("XYZ:TestCaptureVga64KL start")); |
|
517 |
|
518 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor64K ); |
|
519 |
|
520 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
521 |
|
522 iStatesClient->SetStillFrameSize( sizeVga ); |
|
523 |
|
524 iStatesClient->SetStillFileName( _L("cae_vga64K.mbm") ); |
|
525 |
|
526 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
527 |
|
528 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
529 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
530 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
531 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
532 |
|
533 RDebug::Print(_L("XYZ:TestCaptureVga64KL ending")); |
|
534 } |
|
535 |
|
536 |
|
537 void CCaeTestRelease::TestCaptureVga4KL() |
|
538 { |
|
539 // ID: CAE.SC.CAPTURESTILL.VGA4K.004 |
|
540 // |
|
541 // Group: Capture |
|
542 // |
|
543 // Action : Test to setup still capturing and capture VGA 4K |
|
544 // image when initialization is done. |
|
545 // |
|
546 // Output : OK. |
|
547 |
|
548 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor4K ); |
|
549 |
|
550 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
551 |
|
552 iStatesClient->SetStillFrameSize( sizeVga ); |
|
553 |
|
554 iStatesClient->SetStillFileName( _L("cae_vga4K.mbm") ); |
|
555 |
|
556 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
557 |
|
558 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
559 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
560 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
561 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
562 } |
|
563 |
|
564 void CCaeTestRelease::TestCaptureQqvga16ML() |
|
565 { |
|
566 // ID: CAE.SC.CAPTURESTILL.QQVGA16M.005 |
|
567 // |
|
568 // Group: Capture |
|
569 // |
|
570 // Action : Test to setup still capturing and capture QQVGA 16M |
|
571 // image when initialization is done. |
|
572 // |
|
573 // Output : OK. |
|
574 |
|
575 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
576 |
|
577 TSize sizeQqvga( KImgWidthQQVGA, KImgHeightQQVGA ); |
|
578 |
|
579 iStatesClient->SetStillFrameSize( sizeQqvga ); |
|
580 |
|
581 iStatesClient->SetSnapFileName( _L("cae_snap_qqvga16M.mbm") ); |
|
582 |
|
583 iStatesClient->SetStillFileName( _L("cae_qqvga16M.mbm") ); |
|
584 |
|
585 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
586 } |
|
587 |
|
588 |
|
589 void CCaeTestRelease::TestCaptureQqvga64KL() |
|
590 { |
|
591 // ID: CAE.SC.CAPTURESTILL.QQVGA64K.006 |
|
592 // |
|
593 // Group: Capture |
|
594 // |
|
595 // Action : Test to setup still capturing and capture QQVGA 64K |
|
596 // image when initialization is done. |
|
597 // |
|
598 // Output : OK. |
|
599 |
|
600 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor64K ); |
|
601 |
|
602 TSize sizeQqvga( KImgWidthQQVGA, KImgHeightQQVGA ); |
|
603 |
|
604 iStatesClient->SetStillFrameSize( sizeQqvga ); |
|
605 |
|
606 iStatesClient->SetStillFileName( _L("cae_qqvga64K.mbm") ); |
|
607 |
|
608 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
609 } |
|
610 |
|
611 |
|
612 void CCaeTestRelease::TestCaptureQqvga4KL() |
|
613 { |
|
614 // ID: CAE.SC.CAPTURESTILL.QQVGA4K.007 |
|
615 // |
|
616 // Group: Capture |
|
617 // |
|
618 // Action : Test to setup still capturing and capture QQVGA 4K |
|
619 // image when initialization is done. |
|
620 // |
|
621 // Output : OK. |
|
622 |
|
623 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor4K ); |
|
624 |
|
625 TSize sizeQqvga( KImgWidthQQVGA, KImgHeightQQVGA ); |
|
626 |
|
627 iStatesClient->SetStillFrameSize( sizeQqvga ); |
|
628 |
|
629 iStatesClient->SetStillFileName( _L("cae_qqvga4K.mbm") ); |
|
630 |
|
631 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
632 } |
|
633 |
|
634 |
|
635 void CCaeTestRelease::TestCaptureMp1_16ML() |
|
636 { |
|
637 // ID: CAE.SC.CAPTURESTILL.MP1.16M.011 |
|
638 // |
|
639 // Group: Capture |
|
640 // |
|
641 // Action : Test to setup still capturing and capture 1MegaPixel 16M |
|
642 // image when initialization is done. |
|
643 // |
|
644 // ** For Mirage X PROD1** |
|
645 // |
|
646 // Output : OK. |
|
647 |
|
648 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
649 |
|
650 TSize sizeMp1( KImgWidthMP1, KImgHeightMP1 ); |
|
651 |
|
652 iStatesClient->SetStillFrameSize( sizeMp1 ); |
|
653 |
|
654 iStatesClient->SetStillFileName( _L("cae_mp1_16M.mbm") ); |
|
655 |
|
656 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
657 |
|
658 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
659 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
660 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
661 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
662 } |
|
663 |
|
664 |
|
665 void CCaeTestRelease::TestCaptureMp1_64KL() |
|
666 { |
|
667 // ID: CAE.SC.CAPTURESTILL.MP1.64K.012 |
|
668 // |
|
669 // Group: Capture |
|
670 // |
|
671 // Action : Test to setup still capturing and capture 1MegaPixel 64K |
|
672 // image when initialization is done. |
|
673 // |
|
674 // ** For Mirage X PROD1** |
|
675 // |
|
676 // Output : OK. |
|
677 |
|
678 RDebug::Print(_L("XYZ:TestCaptureMp1_64KL start")); |
|
679 |
|
680 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor64K ); |
|
681 |
|
682 TSize sizeMp1( KImgWidthMP1, KImgHeightMP1 ); |
|
683 |
|
684 iStatesClient->SetStillFrameSize( sizeMp1 ); |
|
685 |
|
686 iStatesClient->SetStillFileName( _L("cae_mp1_64K.mbm") ); |
|
687 |
|
688 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
689 |
|
690 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
691 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
692 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
693 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
694 |
|
695 RDebug::Print(_L("XYZ:TestCaptureMp1_64KL ending")); |
|
696 } |
|
697 |
|
698 |
|
699 void CCaeTestRelease::TestCaptureMp1_4KL() |
|
700 { |
|
701 // ID: CAE.SC.CAPTURESTILL.MP1.4K.013 |
|
702 // |
|
703 // Group: Capture |
|
704 // |
|
705 // Action : Test to setup still capturing and capture 1Mega Pixel 4K |
|
706 // image when initialization is done. |
|
707 // |
|
708 // ** For Mirage X PROD1** |
|
709 // |
|
710 // Output : OK. |
|
711 |
|
712 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor4K ); |
|
713 |
|
714 TSize sizeMp1( KImgWidthMP1, KImgHeightMP1 ); |
|
715 |
|
716 iStatesClient->SetStillFrameSize( sizeMp1 ); |
|
717 |
|
718 iStatesClient->SetStillFileName( _L("cae_mp1_4K.mbm") ); |
|
719 |
|
720 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
721 |
|
722 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
723 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
724 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
725 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
726 } |
|
727 |
|
728 void CCaeTestRelease::TestCaptureJpegMp1L() |
|
729 { |
|
730 // ID: CAE.SC.CAPTURESTILL.JPEGMP1.014 |
|
731 // |
|
732 // Group: Capture |
|
733 // |
|
734 // Action : Test to setup still capturing and capture 1MegaPixel Jpeg |
|
735 // image when initialization is done. |
|
736 // |
|
737 // ** For Mirage X PROD1** |
|
738 // |
|
739 // Output : OK. |
|
740 |
|
741 iStatesClient->SetStillFormat( CCamera::EFormatJpeg ); |
|
742 |
|
743 iStatesClient->SetStillCompressionQuality( 50 ); |
|
744 |
|
745 TSize sizeMp1( KImgWidthMP1, KImgHeightMP1 ); |
|
746 |
|
747 iStatesClient->SetStillFrameSize( sizeMp1 ); |
|
748 |
|
749 iStatesClient->SetStillFileName( _L("cae_jpegmp1_50.jpg") ); |
|
750 |
|
751 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
752 |
|
753 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
754 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
755 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
756 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
757 } |
|
758 |
|
759 |
|
760 void CCaeTestRelease::TestCaptureMp1M3_16ML() |
|
761 { |
|
762 // ID: CAE.SC.CAPTURESTILL.MP1M3.16M.018 |
|
763 // |
|
764 // Group: Capture |
|
765 // |
|
766 // Action : Test to setup still capturing and capture 1,3MegaPixel 16M |
|
767 // image when initialization is done. |
|
768 // |
|
769 // ** For Mirage X PROD2** |
|
770 // |
|
771 // Output : OK. |
|
772 |
|
773 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
774 |
|
775 TSize sizeMp1M3( KImgWidthMP1M3, KImgHeightMP1M3 ); |
|
776 |
|
777 iStatesClient->SetStillFrameSize( sizeMp1M3 ); |
|
778 |
|
779 iStatesClient->SetStillFileName( _L("cae_mp1m3_16M.mbm") ); |
|
780 |
|
781 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
782 |
|
783 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
784 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
785 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
786 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
787 } |
|
788 |
|
789 |
|
790 void CCaeTestRelease::TestCaptureMp1M3_64KL() |
|
791 { |
|
792 // ID: CAE.SC.CAPTURESTILL.MP1M3.64K.019 |
|
793 // |
|
794 // Group: Capture |
|
795 // |
|
796 // Action : Test to setup still capturing and capture 1,3MegaPixel 64K |
|
797 // image when initialization is done. |
|
798 // |
|
799 // ** For Mirage X PROD2** |
|
800 // |
|
801 // Output : OK. |
|
802 |
|
803 RDebug::Print(_L("XYZ:TestCaptureMp1_64KL start")); |
|
804 |
|
805 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor64K ); |
|
806 |
|
807 TSize sizeMp1M3( KImgWidthMP1M3, KImgHeightMP1M3 ); |
|
808 |
|
809 iStatesClient->SetStillFrameSize( sizeMp1M3 ); |
|
810 |
|
811 iStatesClient->SetStillFileName( _L("cae_mp1m3_64K.mbm") ); |
|
812 |
|
813 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
814 |
|
815 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
816 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
817 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
818 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
819 |
|
820 RDebug::Print(_L("XYZ:TestCaptureMp1_64KL ending")); |
|
821 } |
|
822 |
|
823 |
|
824 void CCaeTestRelease::TestCaptureMp1M3_4KL() |
|
825 { |
|
826 // ID: CAE.SC.CAPTURESTILL.MP1M3.4K.020 |
|
827 // |
|
828 // Group: Capture |
|
829 // |
|
830 // Action : Test to setup still capturing and capture 1,3Mega Pixel 4K |
|
831 // image when initialization is done. |
|
832 // |
|
833 // ** For Mirage X PROD2** |
|
834 // |
|
835 // Output : OK. |
|
836 |
|
837 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor4K ); |
|
838 |
|
839 TSize sizeMp1M3( KImgWidthMP1M3, KImgHeightMP1M3 ); |
|
840 |
|
841 iStatesClient->SetStillFrameSize( sizeMp1M3 ); |
|
842 |
|
843 iStatesClient->SetStillFileName( _L("cae_mp1m3_4K.mbm") ); |
|
844 |
|
845 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
846 |
|
847 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
848 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
849 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
850 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
851 } |
|
852 |
|
853 void CCaeTestRelease::TestCaptureJpegMp1M3L() |
|
854 { |
|
855 // ID: CAE.SC.CAPTURESTILL.JPEGMP1M3.021 |
|
856 // |
|
857 // Group: Capture |
|
858 // |
|
859 // Action : Test to setup still capturing and capture 1,3MegaPixel Jpeg |
|
860 // image when initialization is done. |
|
861 // |
|
862 // ** For Mirage X PROD2** |
|
863 // |
|
864 // Output : OK. |
|
865 |
|
866 iStatesClient->SetStillFormat( CCamera::EFormatJpeg ); |
|
867 |
|
868 iStatesClient->SetStillCompressionQuality( 50 ); |
|
869 |
|
870 TSize sizeMp1M3( KImgWidthMP1M3, KImgHeightMP1M3 ); |
|
871 |
|
872 iStatesClient->SetStillFrameSize( sizeMp1M3 ); |
|
873 |
|
874 iStatesClient->SetStillFileName( _L("cae_jpegmp1m3_50.jpg") ); |
|
875 |
|
876 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
877 |
|
878 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
879 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
880 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
881 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
882 } |
|
883 |
|
884 |
|
885 void CCaeTestRelease::TestCaptureMp2_16ML() |
|
886 { |
|
887 // ID: CAE.SC.CAPTURESTILL.MP2.16M.025 |
|
888 // |
|
889 // Group: Capture |
|
890 // |
|
891 // Action : Test to setup still capturing and capture 2 MegaPixel 16M |
|
892 // image when initialization is done. |
|
893 // |
|
894 // ** For UNAGI 2M PROD7 ** |
|
895 // |
|
896 // Output : OK. |
|
897 |
|
898 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
899 |
|
900 TSize sizeMp2( KImgWidthMP2, KImgHeightMP2 ); |
|
901 |
|
902 iStatesClient->SetStillFrameSize( sizeMp2 ); |
|
903 |
|
904 iStatesClient->SetStillFileName( _L("cae_mp2_16M.mbm") ); |
|
905 |
|
906 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
907 |
|
908 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
909 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
910 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
911 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
912 } |
|
913 |
|
914 |
|
915 void CCaeTestRelease::TestCaptureMp2_64KL() |
|
916 { |
|
917 // ID: CAE.SC.CAPTURESTILL.MP2.64K.026 |
|
918 // |
|
919 // Group: Capture |
|
920 // |
|
921 // Action : Test to setup still capturing and capture 2 MegaPixel 64K |
|
922 // image when initialization is done. |
|
923 // |
|
924 // ** For UNAGI 2M PROD7 ** |
|
925 // |
|
926 // Output : OK. |
|
927 |
|
928 RDebug::Print(_L("XYZ:TestCaptureMp2_64KL start")); |
|
929 |
|
930 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor64K ); |
|
931 |
|
932 TSize sizeMp2( KImgWidthMP2, KImgHeightMP2 ); |
|
933 |
|
934 iStatesClient->SetStillFrameSize( sizeMp2 ); |
|
935 |
|
936 iStatesClient->SetStillFileName( _L("cae_mp2_64K.mbm") ); |
|
937 |
|
938 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
939 |
|
940 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
941 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
942 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
943 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
944 |
|
945 RDebug::Print(_L("XYZ:TestCaptureMp2_64KL ending")); |
|
946 } |
|
947 |
|
948 |
|
949 void CCaeTestRelease::TestCaptureMp2_4KL() |
|
950 { |
|
951 // ID: CAE.SC.CAPTURESTILL.MP2.4K.027 |
|
952 // |
|
953 // Group: Capture |
|
954 // |
|
955 // Action : Test to setup still capturing and capture 2 Mega Pixel 4K |
|
956 // image when initialization is done. |
|
957 // |
|
958 // ** For UNAGI 2M PROD7 ** |
|
959 // |
|
960 // Output : OK. |
|
961 |
|
962 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor4K ); |
|
963 |
|
964 TSize sizeMp2( KImgWidthMP2, KImgHeightMP2 ); |
|
965 |
|
966 iStatesClient->SetStillFrameSize( sizeMp2 ); |
|
967 |
|
968 iStatesClient->SetStillFileName( _L("cae_mp2_4K.mbm") ); |
|
969 |
|
970 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
971 |
|
972 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
973 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
974 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
975 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
976 } |
|
977 |
|
978 void CCaeTestRelease::TestCaptureJpegMp2L() |
|
979 { |
|
980 // ID: CAE.SC.CAPTURESTILL.JPEG.MP2.028 |
|
981 // |
|
982 // Group: Capture |
|
983 // |
|
984 // Action : Test to setup still capturing and capture 2 MegaPixel Jpeg |
|
985 // image when initialization is done. |
|
986 // |
|
987 // ** For UNAGI 2M PROD7 ** |
|
988 // |
|
989 // Output : OK. |
|
990 |
|
991 iStatesClient->SetStillFormat( CCamera::EFormatJpeg ); |
|
992 |
|
993 iStatesClient->SetStillCompressionQuality( 50 ); |
|
994 |
|
995 TSize sizeMp2( KImgWidthMP2, KImgHeightMP2 ); |
|
996 |
|
997 iStatesClient->SetStillFrameSize( sizeMp2 ); |
|
998 |
|
999 iStatesClient->SetStillFileName( _L("cae_jpegmp2_50.jpg") ); |
|
1000 |
|
1001 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
1002 |
|
1003 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1004 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1005 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
1006 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
1007 } |
|
1008 |
|
1009 void CCaeTestRelease::TestCaptureExifMp2L() |
|
1010 { |
|
1011 // ID: CAE.SC.CAPTURESTILL.EXIF.MP2.029 |
|
1012 // |
|
1013 // Group: Capture |
|
1014 // |
|
1015 // Action : Test to setup still capturing and capture 2 MegaPixel Exif |
|
1016 // image when initialization is done. |
|
1017 // |
|
1018 // ** For UNAGI 2M PROD7 ** |
|
1019 // |
|
1020 // Output : OK. |
|
1021 |
|
1022 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1023 |
|
1024 iStatesClient->SetStillCompressionQuality( 95 ); |
|
1025 |
|
1026 TSize sizeMp2( KImgWidthMP2, KImgHeightMP2 ); |
|
1027 |
|
1028 iStatesClient->SetStillFrameSize( sizeMp2 ); |
|
1029 |
|
1030 iStatesClient->SetStillFileName( _L("cae_exifmp2_95.jpg") ); |
|
1031 |
|
1032 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
1033 |
|
1034 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1035 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1036 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
1037 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
1038 } |
|
1039 |
|
1040 void CCaeTestRelease::TestCaptureExifSVGAL() |
|
1041 { |
|
1042 // ID: CAE.SC.CAPTURESTILL.EXIF.SVGA.030 |
|
1043 // |
|
1044 // Group: Capture |
|
1045 // |
|
1046 // Action : Test to setup still capturing and capture SVGA (800x600) Exif |
|
1047 // image when initialization is done. |
|
1048 // |
|
1049 // ** For UNAGI 2M PROD7 ** |
|
1050 // |
|
1051 // Output : OK. |
|
1052 |
|
1053 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1054 |
|
1055 iStatesClient->SetStillCompressionQuality( 30 ); |
|
1056 |
|
1057 TSize sizeSVGA( KImgWidthSVGA, KImgHeightSVGA ); |
|
1058 |
|
1059 iStatesClient->SetStillFrameSize( sizeSVGA ); |
|
1060 |
|
1061 iStatesClient->SetStillFileName( _L("cae_exif_svga_30.jpg") ); |
|
1062 |
|
1063 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
1064 |
|
1065 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1066 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1067 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
1068 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
1069 } |
|
1070 |
|
1071 void CCaeTestRelease::TestCaptureCodecL() |
|
1072 { |
|
1073 // ID: CAE.SC.CAPTURESTILL.CODEC.031 |
|
1074 // |
|
1075 // Group: Capture |
|
1076 // |
|
1077 // Action : Test to setup still capturing and capture an image |
|
1078 // when codec has been set to default. |
|
1079 // |
|
1080 // |
|
1081 // Output : OK. |
|
1082 |
|
1083 iSettingsClient->SetStillFormat( CCamera::EFormatExif ); |
|
1084 |
|
1085 iSettingsClient->SetStillFileName( _L("cae_exif_codec.jpg") ); |
|
1086 |
|
1087 iSettingsClient->SetImageCodecs( KNullUid, KNullUid ); |
|
1088 |
|
1089 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetJpegCodecWhenStillPrepared ); |
|
1090 |
|
1091 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1092 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1093 assertL( iSettingsClient->CountSnapImageReady() == 1 ); |
|
1094 assertL( iSettingsClient->CountStillImageReady() == 1 ); |
|
1095 } |
|
1096 |
|
1097 |
|
1098 void CCaeTestRelease::TestCaptureCodec2L() |
|
1099 { |
|
1100 // ID: CAE.SC.CAPTURESTILL.CODEC.032 |
|
1101 // |
|
1102 // Group: Capture |
|
1103 // |
|
1104 // Action : Test to setup still capturing and capture an image |
|
1105 // when codec has been set to specific uid. |
|
1106 // |
|
1107 // |
|
1108 // Output : OK. |
|
1109 |
|
1110 iSettingsClient->SetStillFormat( CCamera::EFormatExif ); |
|
1111 |
|
1112 iSettingsClient->SetStillFileName( _L("cae_exif_codec.jpg") ); |
|
1113 |
|
1114 #if ( SYMBIAN_CODECS ) |
|
1115 iSettingsClient->SetImageCodecs( TUid::Uid( KSymbianJpegDecoderValue ), TUid::Uid( KSymbianJpegEncoderValue ) ); |
|
1116 #else |
|
1117 iSettingsClient->SetImageCodecs( TUid::Uid( KOptimizedJpegDecoderValue ), TUid::Uid( KOptimizedJpegEncoderValue ) ); |
|
1118 #endif |
|
1119 |
|
1120 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetJpegCodecWhenStillPrepared ); |
|
1121 |
|
1122 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1123 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1124 assertL( iSettingsClient->CountSnapImageReady() == 1 ); |
|
1125 assertL( iSettingsClient->CountStillImageReady() == 1 ); |
|
1126 } |
|
1127 |
|
1128 |
|
1129 void CCaeTestRelease::TestCaptureCaptureL() |
|
1130 { |
|
1131 // ID: CAE.SC.CAPTURECAPTURE.001 |
|
1132 // |
|
1133 // Group: Capture |
|
1134 // |
|
1135 // Action : Capture photo two times successively |
|
1136 // |
|
1137 // Output : No leave. |
|
1138 |
|
1139 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1140 |
|
1141 iStatesClient->SetStillFileName( _L("cae_capturecapture_ql0.jpg") ); |
|
1142 |
|
1143 iStatesClient->RunTestActionL( CCaeTestStatesClient::ECaptureCapture ); |
|
1144 |
|
1145 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1146 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1147 assertL( iStatesClient->CountSnapImageReady() == 2 ); |
|
1148 assertL( iStatesClient->CountStillImageReady() == 2 ); |
|
1149 } |
|
1150 |
|
1151 |
|
1152 void CCaeTestRelease::TestCaptureCaptureSpecPrepL() |
|
1153 { |
|
1154 // ID: CAE.SC.CAPTURECAPTURE.002 |
|
1155 // |
|
1156 // Group: Capture |
|
1157 // |
|
1158 // Action : Capture photo two times successively |
|
1159 // |
|
1160 // Output : No leave. |
|
1161 |
|
1162 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
1163 |
|
1164 TSize sizeQqvga( KImgWidthVGA, KImgHeightVGA ); |
|
1165 |
|
1166 iStatesClient->SetStillFrameSize( sizeQqvga ); |
|
1167 |
|
1168 iStatesClient->SetStillFileName( _L("cae_capturecapture_vga16M.mbm") ); |
|
1169 |
|
1170 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecPrepCaptureCapture ); |
|
1171 |
|
1172 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1173 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1174 assertL( iStatesClient->CountSnapImageReady() == 2 ); |
|
1175 assertL( iStatesClient->CountStillImageReady() == 2 ); |
|
1176 } |
|
1177 |
|
1178 void CCaeTestRelease::TestCaptureAfterPowerOffL() |
|
1179 { |
|
1180 // ID: CAE.SC.CAPTURESTILL.POWEROFF.001 |
|
1181 // |
|
1182 // Group: Capture |
|
1183 // |
|
1184 // Action : Test to prepare still capturing and capture Vga Exif image |
|
1185 // image after poweroff. |
|
1186 // |
|
1187 // Output : No leave |
|
1188 |
|
1189 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1190 |
|
1191 iStatesClient->SetStillFrameSize( sizeVga ); |
|
1192 |
|
1193 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1194 |
|
1195 //iStatesClient->SetSnapFileName( _L("cae_snap_1_8_vga_poweroff.mbm") ); |
|
1196 |
|
1197 iStatesClient->SetSnapImageSize( TSize( 44, 52 ) ); |
|
1198 |
|
1199 iStatesClient->SetStillFileName( _L("cae_snap_1_8_vga_poweroff.jpg") ); |
|
1200 |
|
1201 iStatesClient->RunTestActionL( CCaeTestStatesClient::ECaptureStillAfterPowerOff ); |
|
1202 |
|
1203 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1204 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1205 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
1206 assertL( iStatesClient->CountStillImageReady() == 0 ); |
|
1207 } |
|
1208 |
|
1209 |
|
1210 /********************************************************/ |
|
1211 /* PREPARE STILL CAPTURE */ |
|
1212 /********************************************************/ |
|
1213 |
|
1214 void CCaeTestRelease::TestPrepareStillCapture0L() |
|
1215 { |
|
1216 // ID: CAE.SC.PREPARESTILLCAPTUREL.001 |
|
1217 // |
|
1218 // Group: Capture |
|
1219 // |
|
1220 // Action : Prepare the engine for still image capture on specified quality level. |
|
1221 // Initialization is done. |
|
1222 // |
|
1223 // Output : OK. |
|
1224 |
|
1225 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1226 |
|
1227 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareStillCapturing ); |
|
1228 } |
|
1229 |
|
1230 void CCaeTestRelease::TestPrepareStillCapture1L() |
|
1231 { |
|
1232 // ID: CAE.SC.PREPARESTILLCAPTUREL.002 |
|
1233 // |
|
1234 // Group: Capture |
|
1235 // |
|
1236 // Action : Prepare the engine for still image capture on specified quality level. |
|
1237 // Initialization is done. |
|
1238 // |
|
1239 // Output : OK. |
|
1240 |
|
1241 iStatesClient->SetStillQualityLevelIndex( 1 ); |
|
1242 |
|
1243 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareStillCapturing ); |
|
1244 } |
|
1245 |
|
1246 void CCaeTestRelease::TestPrepareStillCapture2L() |
|
1247 { |
|
1248 // ID: CAE.SC.PREPARESTILLCAPTUREL.003 |
|
1249 // |
|
1250 // Group: Capture |
|
1251 // |
|
1252 // Action : Prepare the engine for still image capture on specified quality level. |
|
1253 // Initialization is done. |
|
1254 // |
|
1255 // Output : OK. |
|
1256 |
|
1257 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1258 |
|
1259 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareStillCapturing ); |
|
1260 } |
|
1261 |
|
1262 void CCaeTestRelease::TestPrepareStillCapture0WhenPreparedL() |
|
1263 { |
|
1264 // ID: CAE.SC.PREPARESTILLCAPTUREL.004 |
|
1265 // |
|
1266 // Group: Capture |
|
1267 // |
|
1268 // Action : Prepare the engine for still image capture on specified quality |
|
1269 // level when already prepared. |
|
1270 // |
|
1271 // Output : OK. |
|
1272 |
|
1273 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1274 |
|
1275 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareStillCapturingWhenPrepared );//we have to put correct action |
|
1276 } |
|
1277 |
|
1278 void CCaeTestRelease::TestSpecPrepareSCSupportedFormatWhenInitializedL() |
|
1279 { |
|
1280 // ID: CAE.SC.PREPARESTILLCAPTUREL.007 |
|
1281 // |
|
1282 // Group: Capture |
|
1283 // |
|
1284 // Action : Set still image capturing format to a format supported by Camera API implementation. |
|
1285 // Initialization is done. |
|
1286 // |
|
1287 // Output : OK. |
|
1288 |
|
1289 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
1290 |
|
1291 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1292 |
|
1293 iStatesClient->SetStillFrameSize( sizeVga ); |
|
1294 |
|
1295 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareStill );//verified if is correct action |
|
1296 } |
|
1297 |
|
1298 /********************************************************/ |
|
1299 /* STILL CAPTURE ENGINE INITIALIZED */ |
|
1300 /********************************************************/ |
|
1301 |
|
1302 void CCaeTestRelease::TestCaptureStillWhenEngineInitializedL() |
|
1303 { |
|
1304 // ID: CAE.SC.CAPTURESTILL.001 |
|
1305 // |
|
1306 // Group: Capture |
|
1307 // |
|
1308 // Action : Capture still image. Engine initialization is done. |
|
1309 // |
|
1310 // Output : Leave. |
|
1311 |
|
1312 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::ECaptureStillWhenEngineInitialized ) );// verified if is correct action |
|
1313 if( error == KErrNoMemory ) |
|
1314 { |
|
1315 User::Leave( error ); // For memory test |
|
1316 } |
|
1317 assertL( error != KErrNone ); |
|
1318 } |
|
1319 |
|
1320 |
|
1321 /********************************************************/ |
|
1322 /* STILL BURST CAPTURE */ |
|
1323 /********************************************************/ |
|
1324 |
|
1325 void CCaeTestRelease::TestCaptureStillBurst3L() |
|
1326 { |
|
1327 // ID: CAE.SC.CAPTURESTILLBURST.3.001 |
|
1328 // |
|
1329 // Group: Capture |
|
1330 // |
|
1331 // Action : Test to prepare still capturing burst mode and capture three |
|
1332 // images in a burst when initialization is done. |
|
1333 // |
|
1334 // Output : OK. |
|
1335 |
|
1336 const TInt KStillBurstLength = 3; |
|
1337 |
|
1338 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1339 |
|
1340 iStatesClient->SetSnapFileName( _L("cae_snap_vga16M_burst3.mbm") ); |
|
1341 |
|
1342 iStatesClient->SetStillFileName( _L("cae_vga16M_burst3.jpg") ); |
|
1343 |
|
1344 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1345 |
|
1346 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurst ); |
|
1347 |
|
1348 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1349 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1350 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1351 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1352 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1353 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1354 } |
|
1355 |
|
1356 void CCaeTestRelease::TestCaptureStillBurst0L() |
|
1357 { |
|
1358 // ID: CAE.SC.CAPTURESTILLBURST.0.002 |
|
1359 // |
|
1360 // Group: Capture |
|
1361 // |
|
1362 // Action : Test to prepare still capturing burst mode and capture |
|
1363 // images in a burst when BurstLength has to small value, |
|
1364 // when initialization is done. |
|
1365 // |
|
1366 // Output : OK. |
|
1367 |
|
1368 const TInt KStillBurstLength = 0; |
|
1369 |
|
1370 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1371 |
|
1372 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1373 |
|
1374 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurst ) ); |
|
1375 if( error == KErrNoMemory ) |
|
1376 { |
|
1377 User::Leave( error ); // For memory test |
|
1378 } |
|
1379 assertL( error == KErrArgument ); |
|
1380 |
|
1381 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1382 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1383 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1384 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1385 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1386 assertL( iStatesClient->CountStillBurstComplete() == 0 ); |
|
1387 } |
|
1388 |
|
1389 void CCaeTestRelease::TestCaptureStillBurst100L() |
|
1390 { |
|
1391 // ID: CAE.SC.CAPTURESTILLBURST.100.003 |
|
1392 // |
|
1393 // Group: Capture |
|
1394 // |
|
1395 // Action : Test to prepare still capturing burst mode and capture |
|
1396 // images in a burst when BurstLength has to big value, |
|
1397 // when initialization is done. |
|
1398 // |
|
1399 // Output : Leave. |
|
1400 |
|
1401 const TInt KStillBurstLength = 100; |
|
1402 |
|
1403 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1404 |
|
1405 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1406 |
|
1407 TInt error = KErrNone; |
|
1408 TRAP( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurst ) ); |
|
1409 assertL( error == KErrNoMemory ); |
|
1410 |
|
1411 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1412 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1413 |
|
1414 // assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1415 } |
|
1416 |
|
1417 void CCaeTestRelease::TestCancelCaptureStillBurst3L() |
|
1418 { |
|
1419 // ID: CAE.SC.CAPTURESTILLBURST.CANCEL.004 |
|
1420 // |
|
1421 // Group: Capture |
|
1422 // |
|
1423 // Action : Test to prepare still capturing burst mode and capture three |
|
1424 // images in a burst and cancel still burst, initialization is done. |
|
1425 // |
|
1426 // Output : OK. |
|
1427 |
|
1428 const TInt KStillBurstLength = 3; |
|
1429 |
|
1430 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1431 |
|
1432 iStatesClient->SetSnapFileName( _L("cae_snap_vga16M_burst_cancel.mbm") ); |
|
1433 |
|
1434 iStatesClient->SetStillFileName( _L("cae_vga16M_burst_cancel.jpg") ); |
|
1435 |
|
1436 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1437 |
|
1438 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureAndCancelStillBurst ); |
|
1439 |
|
1440 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1441 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1442 assertL( iStatesClient->CountStillBurstCaptureMoment() == 1 ); // 3.1 and later |
|
1443 //assertL( iStatesClient->CountStillBurstCaptureMoment() == 0 ); // 3.0 and earlier |
|
1444 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
1445 assertL( iStatesClient->CountStillImageReady() == 0 ); |
|
1446 assertL( iStatesClient->CountStillBurstComplete() == 0 ); |
|
1447 } |
|
1448 |
|
1449 void CCaeTestRelease::TestStopCaptureStillBurstAfter2L() |
|
1450 { |
|
1451 // ID: CAE.SC.CAPTURESTILLBURST.STOP2.005 |
|
1452 // |
|
1453 // Group: Capture |
|
1454 // |
|
1455 // Action : Test to prepare still capturing burst mode and capture three |
|
1456 // images in a burst and stop still burst, when initialization is done. |
|
1457 // |
|
1458 // Output : OK. |
|
1459 |
|
1460 const TInt KStillBurstLength = 5; |
|
1461 const TInt KStillBurstStoppedLength = 2; |
|
1462 |
|
1463 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
1464 |
|
1465 iStatesClient->SetSnapFileName( _L("cae_snap_vga16M_burst_stop.mbm") ); |
|
1466 |
|
1467 iStatesClient->SetStillFileName( _L("cae_vga16M_burst_stop.jpg") ); |
|
1468 |
|
1469 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1470 |
|
1471 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureAndStopStillBurst ); |
|
1472 |
|
1473 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1474 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1475 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstStoppedLength + 1 ); |
|
1476 assertL( iStatesClient->CountSnapImageReady() == KStillBurstStoppedLength ); |
|
1477 assertL( iStatesClient->CountStillImageReady() == KStillBurstStoppedLength ); |
|
1478 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1479 } |
|
1480 |
|
1481 void CCaeTestRelease::TestSpecPrepCaptureStillBurst3L() |
|
1482 { |
|
1483 // ID: CAE.SC.CAPTURESTILLBURST.3.006 |
|
1484 // |
|
1485 // Group: Capture |
|
1486 // |
|
1487 // Action : Test to prepare still capturing burst mode and capture three |
|
1488 // images in a burst when initialization is done. |
|
1489 // Preparation is done using explicitly specified image format parameters. |
|
1490 // |
|
1491 // Output : OK. |
|
1492 |
|
1493 const TInt KStillBurstLength = 3; |
|
1494 |
|
1495 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
1496 |
|
1497 TSize sizevga( KImgWidthVGA, KImgHeightVGA ); |
|
1498 |
|
1499 iStatesClient->SetStillFrameSize( sizevga ); |
|
1500 |
|
1501 iStatesClient->SetSnapFileName( _L("cae_snap_vga16M_spburst3.mbm") ); |
|
1502 |
|
1503 iStatesClient->SetStillFileName( _L("cae_vga16M_spburst3.mbm") ); |
|
1504 |
|
1505 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1506 |
|
1507 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecPrepAndCaptureStillBurst ); |
|
1508 |
|
1509 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1510 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1511 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1512 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1513 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1514 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1515 } |
|
1516 |
|
1517 void CCaeTestRelease::TestCaptureStillBurstInterval0L() |
|
1518 { |
|
1519 // ID: CAE.SC.CAPTURESTILLBURSTINTERVAL.0.001 |
|
1520 // |
|
1521 // Group: Capture |
|
1522 // |
|
1523 // Action : Test to prepare still capturing burst mode, |
|
1524 // SetStillBurstCaptureIntervalL, StillBurstCaptureInterval |
|
1525 // and capture three images in a burst when initialization is done. |
|
1526 // |
|
1527 // Output : Leave. |
|
1528 |
|
1529 const TInt KStillBurstLength = 3; |
|
1530 |
|
1531 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1532 |
|
1533 iSettingsClient->SetSnapFileName( _L("cae_snap_vga16M_burst_intvl_0.mbm") ); |
|
1534 |
|
1535 iSettingsClient->SetStillFileName( _L("cae_vga16M_burst_intvl_0.jpg") ); |
|
1536 |
|
1537 iSettingsClient->SetStillBurstLength( KStillBurstLength ); |
|
1538 |
|
1539 TTimeIntervalMicroSeconds burstInterval( 0 ); |
|
1540 |
|
1541 iSettingsClient->SetStillBurstCaptureInterval( burstInterval ); |
|
1542 |
|
1543 iSettingsClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndSetStillBurstCaptureInterval ); |
|
1544 |
|
1545 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1546 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1547 assertL( iSettingsClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1548 assertL( iSettingsClient->CountSnapImageReady() == KStillBurstLength ); |
|
1549 assertL( iSettingsClient->CountStillImageReady() == KStillBurstLength ); |
|
1550 assertL( iSettingsClient->CountStillBurstComplete() == 1 ); |
|
1551 } |
|
1552 |
|
1553 void CCaeTestRelease::TestCaptureStillBurstInterval1000000L() |
|
1554 { |
|
1555 // ID: CAE.SC.CAPTURESTILLBURSTINTERVAL.1000000.002 |
|
1556 // |
|
1557 // Group: Capture |
|
1558 // |
|
1559 // Action : Test to prepare still capturing burst mode, |
|
1560 // SetStillBurstCaptureIntervalL, StillBurstCaptureInterval |
|
1561 // and capture three images in a burst, when initialization is done. |
|
1562 // |
|
1563 // Output : OK. |
|
1564 |
|
1565 const TInt KStillBurstLength = 3; |
|
1566 |
|
1567 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1568 |
|
1569 iSettingsClient->SetSnapFileName( _L("cae_snap_vga16M_burst_intvl_1000000.mbm") ); |
|
1570 |
|
1571 iSettingsClient->SetStillFileName( _L("cae_vga16M_burst_intvl_1000000.jpg") ); |
|
1572 |
|
1573 iSettingsClient->SetStillBurstLength( KStillBurstLength ); |
|
1574 |
|
1575 TTimeIntervalMicroSeconds burstInterval( 1000000 ); |
|
1576 |
|
1577 iSettingsClient->SetStillBurstCaptureInterval( burstInterval ); |
|
1578 |
|
1579 iSettingsClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndSetStillBurstCaptureInterval ); |
|
1580 |
|
1581 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1582 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1583 assertL( iSettingsClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1584 assertL( iSettingsClient->CountSnapImageReady() == KStillBurstLength ); |
|
1585 assertL( iSettingsClient->CountStillImageReady() == KStillBurstLength ); |
|
1586 assertL( iSettingsClient->CountStillBurstComplete() == 1 ); |
|
1587 } |
|
1588 |
|
1589 void CCaeTestRelease::TestCaptureStillBurstIntervalM1L() |
|
1590 { |
|
1591 // ID: CAE.SC.CAPTURESTILLBURSTINTERVAL.M1.003 |
|
1592 // |
|
1593 // Group: Capture |
|
1594 // |
|
1595 // Action : Test to prepare still capturing burst mode, |
|
1596 // SetStillBurstCaptureIntervalL, StillBurstCaptureInterval |
|
1597 // and capture three images in a burst, when initialization is done. |
|
1598 // |
|
1599 // Output : Leave. |
|
1600 |
|
1601 const TInt KStillBurstLength = 3; |
|
1602 |
|
1603 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
1604 |
|
1605 iSettingsClient->SetStillBurstLength( KStillBurstLength ); |
|
1606 |
|
1607 TTimeIntervalMicroSeconds burstInterval( -1 ); |
|
1608 |
|
1609 iSettingsClient->SetStillBurstCaptureInterval( burstInterval ); |
|
1610 |
|
1611 TRAPD( error, iSettingsClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndSetStillBurstCaptureInterval ) ); |
|
1612 if( error == KErrNoMemory ) |
|
1613 { |
|
1614 User::Leave( error ); // For memory test |
|
1615 } |
|
1616 assertL( error == KErrArgument ); |
|
1617 |
|
1618 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
1619 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
1620 assertL( iSettingsClient->CountStillBurstCaptureMoment() == 0 ); |
|
1621 assertL( iSettingsClient->CountSnapImageReady() == 0 ); |
|
1622 assertL( iSettingsClient->CountStillImageReady() == 0 ); |
|
1623 assertL( iSettingsClient->CountStillBurstComplete() == 0 ); |
|
1624 } |
|
1625 |
|
1626 void CCaeTestRelease::TestCaptureStillBurstExif3L() |
|
1627 { |
|
1628 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.3.001 |
|
1629 // |
|
1630 // Group: Capture |
|
1631 // |
|
1632 // Action : Test to prepare still capturing burst mode and capture three |
|
1633 // VGA Exif images in a burst when initialization is done. |
|
1634 // |
|
1635 // Output : OK. |
|
1636 |
|
1637 const TInt KStillBurstLength = 3; |
|
1638 |
|
1639 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1640 |
|
1641 iStatesClient->SetStillFrameSize( sizeVga ); |
|
1642 |
|
1643 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1644 |
|
1645 iStatesClient->SetSnapFileName( _L("cae_snap_burst3_exif.mbm") ); |
|
1646 |
|
1647 iStatesClient->SetStillFileName( _L("cae_burst3_exif.jpg") ); |
|
1648 |
|
1649 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1650 |
|
1651 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurstExif ); |
|
1652 |
|
1653 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1654 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1655 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1656 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1657 |
|
1658 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1659 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1660 } |
|
1661 |
|
1662 |
|
1663 void CCaeTestRelease::TestCaptureStillBurstExif6L() |
|
1664 { |
|
1665 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.6.002 |
|
1666 // |
|
1667 // Group: Capture |
|
1668 // |
|
1669 // Action : Test to prepare still capturing burst mode and capture six |
|
1670 // Exif images in a burst when initialization is done. Uses default |
|
1671 // image resolution. |
|
1672 // |
|
1673 // Output : OK. |
|
1674 |
|
1675 const TInt KStillBurstLength = 6; |
|
1676 |
|
1677 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1678 |
|
1679 iStatesClient->SetSnapFileName( _L("cae_snap_burst6_exif.mbm") ); |
|
1680 |
|
1681 iStatesClient->SetStillFileName( _L("cae_burst6_exif.jpg") ); |
|
1682 |
|
1683 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1684 |
|
1685 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurstExif ); |
|
1686 |
|
1687 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1688 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1689 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1690 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1691 assertL( iStatesClient->CountViewFinderFrameReady() == 0 ); |
|
1692 |
|
1693 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1694 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1695 } |
|
1696 |
|
1697 void CCaeTestRelease::TestCaptureStillBurstExif6NSL() |
|
1698 { |
|
1699 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.6.006 |
|
1700 // |
|
1701 // Group: Capture |
|
1702 // |
|
1703 // Action : Test to prepare still capturing burst mode and capture six |
|
1704 // Exif images in a burst when initialization is done. Uses default |
|
1705 // image resolution. Test will not stop on errors in call-backs |
|
1706 // and this will test the completeStillBurst() call if run out of memory. |
|
1707 // in cppUnit memory tests. |
|
1708 // |
|
1709 // Output : OK. |
|
1710 |
|
1711 const TInt KStillBurstLength = 6; |
|
1712 |
|
1713 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1714 |
|
1715 iStatesClient->SetSnapFileName( _L("cae_snap_burst6_exif.mbm") ); |
|
1716 |
|
1717 iStatesClient->SetStillFileName( _L("cae_burst6_exif.jpg") ); |
|
1718 |
|
1719 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1720 |
|
1721 iStatesClient->SetStopOnErrorInMcaeoSnapImageReady( EFalse ); |
|
1722 |
|
1723 iStatesClient->SetStopOnErrorInMcaeoStillImageReady( EFalse ); |
|
1724 |
|
1725 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurstExif ); |
|
1726 |
|
1727 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1728 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1729 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1730 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1731 assertL( iStatesClient->CountViewFinderFrameReady() == 0 ); |
|
1732 |
|
1733 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1734 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1735 } |
|
1736 |
|
1737 |
|
1738 void CCaeTestRelease::TestCaptureStillBurstExif6_ThumbnailL() |
|
1739 { |
|
1740 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.6.007 |
|
1741 // |
|
1742 // Group: Capture |
|
1743 // |
|
1744 // Action : Test to prepare still capturing burst mode and capture six |
|
1745 // Exif images in a burst when initialization is done. Uses default |
|
1746 // image resolution. Exif image thumbnails are decoded to snap images. |
|
1747 // |
|
1748 // Output : OK. |
|
1749 |
|
1750 const TInt KStillBurstLength = 6; |
|
1751 |
|
1752 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1753 |
|
1754 iStatesClient->SetSnapFileName( _L("cae_snap_burst6_7_exif.mbm") ); |
|
1755 |
|
1756 iStatesClient->SetStillFileName( _L("cae_burst6_7_exif.jpg") ); |
|
1757 |
|
1758 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1759 |
|
1760 iStatesClient->SetSnapImageSource( CCaeEngine::ESnapImageSourceThumbnail ); |
|
1761 |
|
1762 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurstExif ); |
|
1763 |
|
1764 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1765 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1766 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1767 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1768 assertL( iStatesClient->CountViewFinderFrameReady() == 0 ); |
|
1769 |
|
1770 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1771 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1772 } |
|
1773 |
|
1774 |
|
1775 void CCaeTestRelease::TestCaptureStillBurstExif100L() |
|
1776 { |
|
1777 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.100.003 |
|
1778 // |
|
1779 // Group: Capture |
|
1780 // |
|
1781 // Action : Test to prepare still capturing burst mode and capture |
|
1782 // exif images in a burst when BurstLength has to big value, |
|
1783 // when initialization is done. |
|
1784 // |
|
1785 // Output : Leave. |
|
1786 |
|
1787 const TInt KStillBurstLength = 100; |
|
1788 |
|
1789 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1790 |
|
1791 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1792 |
|
1793 TInt error = KErrNone; |
|
1794 TRAP( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurstExif ) ); |
|
1795 assertL( error == KErrNoMemory ); |
|
1796 |
|
1797 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1798 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1799 |
|
1800 assertL( iStatesClient->CountStillBurstComplete() == 0 ); |
|
1801 } |
|
1802 |
|
1803 |
|
1804 void CCaeTestRelease::TestCaptureStillBurstExif6VfL() |
|
1805 { |
|
1806 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.6.VF.004 |
|
1807 // |
|
1808 // Group: Capture |
|
1809 // |
|
1810 // Action : Test to prepare still capturing burst mode and capture six |
|
1811 // Exif images in a burst when initialization is done. Uses default |
|
1812 // image resolution. The view finder is running during the burst. |
|
1813 // |
|
1814 // Output : OK. |
|
1815 |
|
1816 const TInt KStillBurstLength = 6; |
|
1817 |
|
1818 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1819 |
|
1820 iStatesClient->SetSnapFileName( _L("cae_snap_burst6_exif.mbm") ); |
|
1821 |
|
1822 iStatesClient->SetStillFileName( _L("cae_burst6_exif.jpg") ); |
|
1823 |
|
1824 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1825 |
|
1826 iStatesClient->SetRunningWithViewFinder( ETrue ); |
|
1827 |
|
1828 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurstExif ); |
|
1829 |
|
1830 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1831 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1832 assertL( iStatesClient->CountSnapImageReady() == KStillBurstLength ); |
|
1833 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
1834 |
|
1835 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
1836 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
1837 } |
|
1838 |
|
1839 |
|
1840 void CCaeTestRelease::TestCaptureStillBurstExif6VfCancelL() |
|
1841 { |
|
1842 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.6.VF.CANCEL.005 |
|
1843 // |
|
1844 // Group: Capture |
|
1845 // |
|
1846 // Action : Test to prepare still capturing burst mode and cancel the burst after |
|
1847 // the first capture. Intention is to test the situation when the burst is pending |
|
1848 // the view finder to occur before it continues and cancel the burst at that |
|
1849 // point. Uses default image resolution. The view finder is running |
|
1850 // during the burst. |
|
1851 // |
|
1852 // Output : OK. |
|
1853 |
|
1854 const TInt KStillBurstLength = 6; |
|
1855 |
|
1856 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1857 |
|
1858 iStatesClient->SetSnapFileName( _L("cae_snap_burst6_exif.mbm") ); |
|
1859 |
|
1860 iStatesClient->SetStillFileName( _L("cae_burst6_exif.jpg") ); |
|
1861 |
|
1862 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
1863 |
|
1864 iStatesClient->SetRunningWithViewFinder( ETrue ); |
|
1865 |
|
1866 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureAndCancelStillBurstExif ); |
|
1867 |
|
1868 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1869 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1870 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
1871 assertL( iStatesClient->CountStillImageReady() == 0 ); |
|
1872 |
|
1873 assertL( iStatesClient->CountStillBurstCaptureMoment() == 2 ); |
|
1874 assertL( iStatesClient->CountStillBurstComplete() == 0 ); |
|
1875 } |
|
1876 |
|
1877 |
|
1878 /********************************************************/ |
|
1879 /* STILL CAPTURE EXIF */ |
|
1880 /********************************************************/ |
|
1881 |
|
1882 void CCaeTestRelease::TestCaptureVgaExifL() |
|
1883 { |
|
1884 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.001 |
|
1885 // |
|
1886 // Group: Capture |
|
1887 // |
|
1888 // Action : Test to prepare still capturing and capture Vga Exif |
|
1889 // image when initialization is done and viewfinder is running. |
|
1890 // |
|
1891 // Output : OK. |
|
1892 |
|
1893 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1894 |
|
1895 iStatesClient->SetStillFrameSize( sizeVga ); |
|
1896 |
|
1897 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1898 |
|
1899 iStatesClient->SetSnapFileName( _L("cae_snap_vga_exif.mbm") ); |
|
1900 |
|
1901 iStatesClient->SetStillFileName( _L("cae_vga_exif.jpg") ); |
|
1902 |
|
1903 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfExif ); |
|
1904 |
|
1905 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1906 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1907 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
1908 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
1909 } |
|
1910 |
|
1911 |
|
1912 void CCaeTestRelease::TestCaptureQqvgaExifL() |
|
1913 { |
|
1914 // ID: CAE.SC.CAPTURESTILL.QQVGA.EXIF.002 |
|
1915 |
|
1916 // Group: Capture |
|
1917 // |
|
1918 // Action : Test to prepare still capturing and capture Qqvga Exif |
|
1919 // image when initialization is done and viewfinder is running. |
|
1920 // |
|
1921 // Output : OK. |
|
1922 |
|
1923 TSize sizeQqvga( KImgWidthQQVGA, KImgHeightQQVGA ); |
|
1924 |
|
1925 iStatesClient->SetStillFrameSize( sizeQqvga ); |
|
1926 |
|
1927 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1928 |
|
1929 iStatesClient->SetSnapFileName( _L("cae_qqvga_exif.mbm") ); |
|
1930 |
|
1931 iStatesClient->SetStillFileName( _L("cae_qqvga_exif.jpg") ); |
|
1932 |
|
1933 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfExif ); |
|
1934 } |
|
1935 |
|
1936 |
|
1937 void CCaeTestRelease::TestCaptureVgaSnapOneHalfExifL() |
|
1938 { |
|
1939 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.003 |
|
1940 // |
|
1941 // Group: Capture |
|
1942 // |
|
1943 // Action : Test to prepare still capturing and capture Vga Exif image |
|
1944 // image when initialization is done and viewfinder is running. |
|
1945 // The snap image is downscaled to 1/2 on Exif decoding. |
|
1946 // |
|
1947 // Output : OK. |
|
1948 |
|
1949 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1950 |
|
1951 iStatesClient->SetStillFrameSize( sizeVga ); |
|
1952 |
|
1953 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1954 |
|
1955 iStatesClient->SetSnapFileName( _L("cae_snap_1_2_vga_exif.mbm") ); |
|
1956 |
|
1957 iStatesClient->SetSnapImageSize( TSize( 176, 208 ) ); |
|
1958 |
|
1959 iStatesClient->SetStillFileName( _L("cae_snap_1_2_vga_exif.jpg") ); |
|
1960 |
|
1961 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfSnapExif ); |
|
1962 |
|
1963 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
1964 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
1965 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
1966 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
1967 } |
|
1968 |
|
1969 |
|
1970 void CCaeTestRelease::TestCaptureVgaSnapOneFourthExifL() |
|
1971 { |
|
1972 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.004 |
|
1973 // |
|
1974 // Group: Capture |
|
1975 // |
|
1976 // Action : Test to prepare still capturing and capture Vga Exif image |
|
1977 // image when initialization is done and viewfinder is running. |
|
1978 // The snap image is downscaled 1/4 on Exif decoding. |
|
1979 // |
|
1980 // Output : OK. |
|
1981 |
|
1982 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
1983 |
|
1984 iStatesClient->SetStillFrameSize( sizeVga ); |
|
1985 |
|
1986 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
1987 |
|
1988 iStatesClient->SetSnapFileName( _L("cae_snap_1_4_vga_exif.mbm") ); |
|
1989 |
|
1990 iStatesClient->SetSnapImageSize( TSize( 88, 104 ) ); |
|
1991 |
|
1992 iStatesClient->SetStillFileName( _L("cae_snap_1_4_vga_exif.jpg") ); |
|
1993 |
|
1994 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfSnapExif ); |
|
1995 } |
|
1996 |
|
1997 |
|
1998 void CCaeTestRelease::TestCaptureVgaSnapOneEighthExifL() |
|
1999 { |
|
2000 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.005 |
|
2001 // |
|
2002 // Group: Capture |
|
2003 // |
|
2004 // Action : Test to prepare still capturing and capture Vga Exif image |
|
2005 // image when initialization is done and viewfinder is running. |
|
2006 // The snap image is downscaled 1/8 on Exif decoding. |
|
2007 // |
|
2008 // Output : OK. |
|
2009 |
|
2010 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
2011 |
|
2012 iStatesClient->SetStillFrameSize( sizeVga ); |
|
2013 |
|
2014 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
2015 |
|
2016 iStatesClient->SetSnapFileName( _L("cae_snap_1_8_vga_exif.mbm") ); |
|
2017 |
|
2018 iStatesClient->SetSnapImageSize( TSize( 44, 52 ) ); |
|
2019 |
|
2020 iStatesClient->SetStillFileName( _L("cae_snap_1_8_vga_exif.jpg") ); |
|
2021 |
|
2022 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfSnapExif ); |
|
2023 } |
|
2024 |
|
2025 |
|
2026 void CCaeTestRelease::TestCaptureVgaSnapExifL() |
|
2027 { |
|
2028 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.006 |
|
2029 // |
|
2030 // Group: Capture |
|
2031 // |
|
2032 // Action : Test to prepare still capturing and capture Vga Exif image |
|
2033 // image when initialization is done and viewfinder is running. |
|
2034 // The snap image is given but not downscaled on Exif decoding. |
|
2035 // |
|
2036 // Output : OK. |
|
2037 |
|
2038 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
2039 |
|
2040 iStatesClient->SetStillFrameSize( sizeVga ); |
|
2041 |
|
2042 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
2043 |
|
2044 iStatesClient->SetSnapFileName( _L("cae_snap_vga_exif.mbm") ); |
|
2045 |
|
2046 iStatesClient->SetSnapImageSize( TSize( 176, 250 ) ); |
|
2047 |
|
2048 iStatesClient->SetStillFileName( _L("cae_snap_vga_exif.jpg") ); |
|
2049 |
|
2050 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfSnapExif ); |
|
2051 } |
|
2052 |
|
2053 |
|
2054 void CCaeTestRelease::TestCaptureVgaSnapOneEighthJpegL() |
|
2055 { |
|
2056 // ID: CAE.SC.CAPTURESTILL.VGA.JPEG.007 |
|
2057 // |
|
2058 // Group: Capture |
|
2059 // |
|
2060 // Action : Test to prepare still capturing and capture Vga Jpeg |
|
2061 // image when initialization is done and viewfinder is running. |
|
2062 // The snap image is downscaled 1/8 on Jpeg decoding. |
|
2063 // This is same as CAE.SC.CAPTURESTILL.VGA.EXIF.005 but format is Jpeg. |
|
2064 // |
|
2065 // Output : OK. |
|
2066 |
|
2067 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
2068 |
|
2069 iStatesClient->SetStillFrameSize( sizeVga ); |
|
2070 |
|
2071 iStatesClient->SetStillFormat( CCamera::EFormatJpeg ); // test Jpeg format too |
|
2072 |
|
2073 iStatesClient->SetSnapFileName( _L("cae_snap_1_8_vga_jpeg.mbm") ); |
|
2074 |
|
2075 iStatesClient->SetSnapImageSize( TSize( 44, 52 ) ); |
|
2076 |
|
2077 iStatesClient->SetStillFileName( _L("cae_snap_1_8_vga_jpeg.jpg") ); |
|
2078 |
|
2079 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfSnapExif ); |
|
2080 } |
|
2081 |
|
2082 void CCaeTestRelease::TestCaptureVgaSnapOneEighthExif2L() |
|
2083 { |
|
2084 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.008 |
|
2085 // |
|
2086 // Group: Capture |
|
2087 // |
|
2088 // Action : Test to prepare still capturing and capture Vga Exif image |
|
2089 // image when initialization is done and viewfinder is running. |
|
2090 // The snap image is downscaled 1/8 on Exif decoding. The snap |
|
2091 // image size is set only after prepare. |
|
2092 // |
|
2093 // Output : OK. Visual check of snap file size. |
|
2094 |
|
2095 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
2096 |
|
2097 iStatesClient->SetStillFrameSize( sizeVga ); |
|
2098 |
|
2099 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
2100 |
|
2101 iStatesClient->SetSnapFileName( _L("cae_snap_1_8_vga_exif2.mbm") ); |
|
2102 |
|
2103 iStatesClient->SetSnapImageSize( TSize( 44, 52 ) ); |
|
2104 |
|
2105 iStatesClient->SetStillFileName( _L("cae_snap_1_8_vga_exif2.jpg") ); |
|
2106 |
|
2107 iStatesClient->RunTestActionL( CCaeTestStatesClient::ECaptureStillSetSnapSizeExif ); |
|
2108 } |
|
2109 |
|
2110 |
|
2111 void CCaeTestRelease::TestCaptureVgaSnapColor16MExifL() |
|
2112 { |
|
2113 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.009 |
|
2114 // |
|
2115 // Group: Capture |
|
2116 // |
|
2117 // Action : Test to prepare still capturing and capture Vga Exif image |
|
2118 // when initialization is done and viewfinder is running. |
|
2119 // The snap image color mode is set to EColor16M. |
|
2120 // |
|
2121 // Output : OK. Visual check of snap file color mode. |
|
2122 |
|
2123 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
2124 |
|
2125 iStatesClient->SetStillFrameSize( sizeVga ); |
|
2126 |
|
2127 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
2128 |
|
2129 iStatesClient->SetSnapFileName( _L("cae_snap_color_mode_vga_exif.mbm") ); |
|
2130 |
|
2131 iStatesClient->SetSnapImageColorMode( EColor16M ); |
|
2132 |
|
2133 iStatesClient->SetStillFileName( _L("cae_snap_color_mode_vga_exif.jpg") ); |
|
2134 |
|
2135 iStatesClient->RunTestActionL( CCaeTestStatesClient::ECaptureStillSetSnapColorModeExif ); |
|
2136 } |
|
2137 |
|
2138 |
|
2139 /********************************************************/ |
|
2140 /* PREPARE VIDEO RECORDING */ |
|
2141 /********************************************************/ |
|
2142 |
|
2143 void CCaeTestRelease::TestPrepareVideoRecording0L() |
|
2144 { |
|
2145 // ID: CAE.VR.PREPAREVIDEORECORDINGL.001 |
|
2146 // |
|
2147 // Group: Record |
|
2148 // |
|
2149 // Action : Prepare the engine for video recording on specified quality level. |
|
2150 // Initialization is done. |
|
2151 // |
|
2152 // Output : OK. |
|
2153 |
|
2154 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
2155 |
|
2156 #if (MIRAGE_X_PROD3) |
|
2157 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2158 #else |
|
2159 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2160 #endif |
|
2161 |
|
2162 iStatesClient->SetVideoFileName( _L("cae_prepare_vr_0.3gp") ); |
|
2163 |
|
2164 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareVideoRecording ); |
|
2165 |
|
2166 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2167 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2168 } |
|
2169 |
|
2170 void CCaeTestRelease::TestPrepareVideoRecording1L() |
|
2171 { |
|
2172 // ID: CAE.VR.PREPAREVIDEORECORDINGL.002 |
|
2173 // |
|
2174 // Group: Record |
|
2175 // |
|
2176 // Action : Prepare the engine for video recording on specified quality level. |
|
2177 // Initialization is done. |
|
2178 // |
|
2179 // Output : OK. |
|
2180 |
|
2181 iStatesClient->SetVideoQualityLevelIndex( 1 ); |
|
2182 |
|
2183 #if (MIRAGE_X_PROD3) |
|
2184 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2185 #else |
|
2186 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2187 #endif |
|
2188 |
|
2189 iStatesClient->SetVideoFileName( _L("cae_prepare_vr_1.3gp") ); |
|
2190 |
|
2191 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareVideoRecording ); |
|
2192 |
|
2193 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2194 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2195 } |
|
2196 |
|
2197 void CCaeTestRelease::TestPrepareVideoRecording2L() |
|
2198 { |
|
2199 // ID: CAE.VR.PREPAREVIDEORECORDINGL.003 |
|
2200 // |
|
2201 // Group: Record |
|
2202 // |
|
2203 // Action : Prepare the engine for video recording on specified quality level. |
|
2204 // Initialization is done. |
|
2205 // |
|
2206 // Output : OK. |
|
2207 |
|
2208 iStatesClient->SetVideoQualityLevelIndex( 2 ); |
|
2209 |
|
2210 #if (MIRAGE_X_PROD3) |
|
2211 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2212 #else |
|
2213 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2214 #endif |
|
2215 |
|
2216 iStatesClient->SetVideoFileName( _L("cae_prepare_vr_2.3gp") ); |
|
2217 |
|
2218 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareVideoRecording ); |
|
2219 |
|
2220 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2221 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2222 } |
|
2223 |
|
2224 void CCaeTestRelease::TestPrepareVideoRecording0WhenPreparedL() |
|
2225 { |
|
2226 // ID: CAE.VR.PREPAREVIDEORECORDINGL.004 |
|
2227 // |
|
2228 // Group: Record |
|
2229 // |
|
2230 // Action : Prepare the engine for video recording on specified quality |
|
2231 // level when already prepared. |
|
2232 // |
|
2233 // Output : OK. |
|
2234 |
|
2235 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
2236 |
|
2237 #if (MIRAGE_X_PROD3) |
|
2238 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2239 #else |
|
2240 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2241 #endif |
|
2242 |
|
2243 iStatesClient->SetVideoFileName( _L("cae_prepared_vr_0.3gp") ); |
|
2244 |
|
2245 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareVideoRecordingWhenPrepared );//we have to put correct action |
|
2246 |
|
2247 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2248 assertL( iStatesClient->CountVideoPrepareComplete() == 2 ); |
|
2249 } |
|
2250 |
|
2251 void CCaeTestRelease::TestSpecPrepareVRSupportedFormatWhenVRInitializedL() |
|
2252 { |
|
2253 // ID: CAE.VR.PREPAREVIDEORECORDINGL.007 |
|
2254 // |
|
2255 // Group: Record. |
|
2256 // |
|
2257 // Action : Set video recording format to a format supported by MMF Camcorder plug-in |
|
2258 // and Camera API implementation. |
|
2259 // Video recorder initialization is done. |
|
2260 // |
|
2261 // Output : OK. |
|
2262 |
|
2263 iStatesClient->SetTimeout( 1000000 ); |
|
2264 |
|
2265 TSize sizeQcif( KImgWidthQCIF, KImgHeightQCIF ); |
|
2266 iStatesClient->SetVideoFrameSize( sizeQcif ); |
|
2267 iStatesClient->SetVideoFrameRate( 10.0 ); |
|
2268 iStatesClient->SetVideoBitRate( 50000 ); |
|
2269 iStatesClient->SetVideoAudio( ETrue ); |
|
2270 |
|
2271 #if (MIRAGE_X_PROD3) |
|
2272 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2273 #else |
|
2274 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2275 #endif |
|
2276 |
|
2277 //iStatesClient->SetVideoFileName( _L("cae_video_format_initialized.3gp") ); |
|
2278 |
|
2279 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareVideo );//verified if is correct action |
|
2280 |
|
2281 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2282 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2283 } |
|
2284 |
|
2285 /********************************************************/ |
|
2286 /* VIDEO RECORDING QUALITY LEVEL */ |
|
2287 /********************************************************/ |
|
2288 |
|
2289 void CCaeTestRelease::TestRecordQualityLevel0L() |
|
2290 { |
|
2291 // ID: CAE.VR.VIDEORECORDING.QCIF64000FR15.001 |
|
2292 // |
|
2293 // Group: Record. |
|
2294 // |
|
2295 // Action : Test to prepare video recording and record quality level 0 |
|
2296 // video clip when initialization is done and viewfinder is running. |
|
2297 // |
|
2298 // Output : No leave. File cae_ql_0.3gp. |
|
2299 |
|
2300 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
2301 |
|
2302 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
2303 |
|
2304 iStatesClient->SetViewFinderSize( sizeSubQcif ); |
|
2305 |
|
2306 iStatesClient->SetVfFileName( _L("cae_video_ql_0_vfimg.mbm") ); |
|
2307 |
|
2308 // iStatesClient->SetVfFileCountToSave( 150 ); |
|
2309 |
|
2310 iStatesClient->SetTimeout( 30000000 ); |
|
2311 |
|
2312 #if (MIRAGE_X_PROD3) |
|
2313 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2314 #else |
|
2315 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2316 #endif |
|
2317 |
|
2318 iStatesClient->SetVideoFileName( _L("cae_ql_0.3gp") ); |
|
2319 |
|
2320 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareRecordVideoStartAndStopVf ); |
|
2321 |
|
2322 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2323 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2324 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
2325 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
2326 } |
|
2327 |
|
2328 |
|
2329 void CCaeTestRelease::TestRecordQualityLevel1L() |
|
2330 { |
|
2331 // ID: CAE.VR.VIDEORECORDING.SUBQCIF60000FR15.002 |
|
2332 // |
|
2333 // Group: Record. |
|
2334 // |
|
2335 // Action : Test to prepare video recording and record quality level 1 |
|
2336 // video clip when initialization is done and viewfinder is running. |
|
2337 // |
|
2338 // Output : No leave. File cae_ql_1.3gp. |
|
2339 |
|
2340 iStatesClient->SetVideoQualityLevelIndex( 1 ); |
|
2341 |
|
2342 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
2343 |
|
2344 iStatesClient->SetViewFinderSize( sizeSubQcif ); |
|
2345 |
|
2346 iStatesClient->SetTimeout( 20000000 ); |
|
2347 |
|
2348 #if (MIRAGE_X_PROD3) |
|
2349 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2350 #else |
|
2351 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2352 #endif |
|
2353 |
|
2354 iStatesClient->SetVideoFileName( _L("cae_ql_1.3gp") ); |
|
2355 |
|
2356 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareRecordVideoStartAndStopVf ); |
|
2357 |
|
2358 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2359 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2360 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
2361 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
2362 } |
|
2363 |
|
2364 |
|
2365 void CCaeTestRelease::TestPrepareAudioBitRateVR128L() |
|
2366 { |
|
2367 // ID: CAE.VR.PREPAREAUDIOBITRATEANDRECORDVIDEO.002 |
|
2368 // |
|
2369 // Group: Record. |
|
2370 // |
|
2371 // Action : To ensure that the implementation is compatible with camcorder plug-in. |
|
2372 // Use high video bitrate. This is for PROD7. |
|
2373 // |
|
2374 // Output : No leave. File cae_subqcif_VideoBitRate_128000.3gp. |
|
2375 |
|
2376 TSize sizeSubQcif( 176, 144 ); |
|
2377 |
|
2378 iStatesClient->SetViewFinderSize( sizeSubQcif ); |
|
2379 iStatesClient->SetVideoFrameSize( sizeSubQcif ); |
|
2380 iStatesClient->SetVideoFrameRate( TReal32( 15.0 ) ); |
|
2381 |
|
2382 iStatesClient->SetVideoBitRate( TInt( 128000 ) ); |
|
2383 iStatesClient->SetAudioBitRate( TInt( 12200 ) ); |
|
2384 |
|
2385 iStatesClient->SetTimeout( 20000000 ); |
|
2386 |
|
2387 // 3: AMR audio, H.263 video, video type video/H263-2000; profile=0; level=45 |
|
2388 // 0: AMR audio, H.263 video, video type video/H263-2000 |
|
2389 iStatesClient->SetVideoCodecSet( 3 ); |
|
2390 |
|
2391 iStatesClient->SetVideoFileName( _L("cae_subqcif_VideoBitRate_128000.3gp") ); |
|
2392 |
|
2393 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAudioBrAndRecordVideo ); |
|
2394 |
|
2395 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2396 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2397 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
2398 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
2399 } |
|
2400 |
|
2401 void CCaeTestRelease::TestPrepareAudioBitRateVR128InvVtypeL() |
|
2402 { |
|
2403 // ID: CAE.VR.PREPAREAUDIOBITRATEANDRECORDVIDEO.003 |
|
2404 // |
|
2405 // Group: Record. |
|
2406 // |
|
2407 // Action : To ensure that the implementation is compatible with camcorder plug-in. |
|
2408 // Use high video bitrate and invalid videotype. |
|
2409 // |
|
2410 // Output : Leave |
|
2411 |
|
2412 TSize sizeSubQcif( 176, 144 ); |
|
2413 |
|
2414 iStatesClient->SetViewFinderSize( sizeSubQcif ); |
|
2415 iStatesClient->SetVideoFrameSize( sizeSubQcif ); |
|
2416 iStatesClient->SetVideoFrameRate( TReal32( 15.0 ) ); |
|
2417 |
|
2418 iStatesClient->SetVideoBitRate( TInt( 128000 ) ); |
|
2419 iStatesClient->SetAudioBitRate( TInt( 12200 ) ); |
|
2420 |
|
2421 iStatesClient->SetTimeout( 20000000 ); |
|
2422 |
|
2423 // 3: AMR audio, H.263 video, video type video/H263-2000; profile=0; level=45 |
|
2424 // 0: AMR audio, H.263 video, video type video/H263-2000 |
|
2425 iStatesClient->SetVideoCodecSet( 0 ); |
|
2426 |
|
2427 iStatesClient->SetVideoFileName( _L("cae_subqcif_VideoBitRate_128000inv.3gp") ); |
|
2428 |
|
2429 TRAPD( err, iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAudioBrAndRecordVideo ) ); |
|
2430 if( err == KErrNoMemory ) |
|
2431 { |
|
2432 User::Leave( err ); // For memory test |
|
2433 } |
|
2434 assertL( err != KErrNone ); |
|
2435 |
|
2436 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2437 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2438 assertL( iStatesClient->CountVideoRecordingOn() == 0 ); |
|
2439 assertL( iStatesClient->CountVideoRecordingComplete() == 0 ); |
|
2440 } |
|
2441 |
|
2442 |
|
2443 void CCaeTestRelease::TestRecordQualityLevel2L() |
|
2444 { |
|
2445 // ID: CAE.VR.VIDEORECORDING.SUBQCIF40000FR5.003 |
|
2446 // |
|
2447 // Group: Record. |
|
2448 // |
|
2449 // Action : Test to prepare video recording and record quality level 2 |
|
2450 // video clip when initialization is done and viewfinder is running. |
|
2451 // |
|
2452 // Output : No leave. File cae_q2_0.3gp. |
|
2453 |
|
2454 iStatesClient->SetVideoQualityLevelIndex( 2 ); |
|
2455 |
|
2456 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
2457 |
|
2458 iStatesClient->SetViewFinderSize( sizeSubQcif ); |
|
2459 |
|
2460 iStatesClient->SetTimeout( 20000000 ); |
|
2461 |
|
2462 #if (MIRAGE_X_PROD3) |
|
2463 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2464 #else |
|
2465 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2466 #endif |
|
2467 |
|
2468 iStatesClient->SetVideoFileName( _L("cae_ql_2.3gp") ); |
|
2469 |
|
2470 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareRecordVideoStartAndStopVf ); |
|
2471 |
|
2472 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2473 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2474 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
2475 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
2476 } |
|
2477 |
|
2478 /********************************************************/ |
|
2479 /* START AND STOP VIDEO RECORDING */ |
|
2480 /********************************************************/ |
|
2481 |
|
2482 void CCaeTestRelease::TestStartAndStopVideoRecordingSubQcifL() |
|
2483 { |
|
2484 // ID: CAE.VR.STARTSTOPVIDEORECORDING.SUBQCIF.001 |
|
2485 // |
|
2486 // Group: Record |
|
2487 // |
|
2488 // Action : To ensure that the implementation is compatible with camcorder plug-in. |
|
2489 // To ensure that starting and stopping video recording works. |
|
2490 // To ensure that recording subQCIF sized video works. |
|
2491 // Video recording prepared for subQCIF format. |
|
2492 // |
|
2493 // Output : OK. |
|
2494 |
|
2495 iStatesClient->SetTimeout( 4000000 ); |
|
2496 |
|
2497 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
2498 |
|
2499 iStatesClient->SetVideoFrameSize( sizeSubQcif ); |
|
2500 iStatesClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
2501 iStatesClient->SetVideoBitRate( TInt( 25000 ) ); |
|
2502 |
|
2503 #if (MIRAGE_X_PROD3) |
|
2504 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2505 #else |
|
2506 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2507 #endif |
|
2508 |
|
2509 iStatesClient->SetVideoFileName( _L("cae_subqcif.3gp") ); |
|
2510 |
|
2511 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndRecordVideo ); |
|
2512 |
|
2513 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2514 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2515 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
2516 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
2517 } |
|
2518 |
|
2519 void CCaeTestRelease::TestStartAndStopVideoRecordingQcifL() |
|
2520 { |
|
2521 // ID: CAE.VR.STARTSTOPVIDEORECORDING.QCIF.002 |
|
2522 // |
|
2523 // Group: Record |
|
2524 // |
|
2525 // Action : To ensure that the implementation is compatible with camcorder plug-in. |
|
2526 // To ensure that starting and stopping video recording works. |
|
2527 // To ensure that recording QCIF sized video works. |
|
2528 // Video recording prepared for QCIF format. |
|
2529 // |
|
2530 // Output : OK. |
|
2531 |
|
2532 iStatesClient->SetTimeout( 4000000 ); |
|
2533 |
|
2534 TSize sizeQcif( KImgWidthQCIF, KImgHeightQCIF ); |
|
2535 |
|
2536 iStatesClient->SetVideoFrameSize( sizeQcif ); |
|
2537 iStatesClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
2538 iStatesClient->SetVideoBitRate( TInt( 50000 ) ); |
|
2539 |
|
2540 #if (MIRAGE_X_PROD3) |
|
2541 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2542 #else |
|
2543 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2544 #endif |
|
2545 |
|
2546 iStatesClient->SetVideoFileName( _L("cae_qcif.3gp") ); |
|
2547 |
|
2548 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndRecordVideo ); |
|
2549 |
|
2550 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2551 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2552 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
2553 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
2554 } |
|
2555 |
|
2556 /********************************************************/ |
|
2557 /* STILL CAPTURE DIGITAL ZOOM VALUE */ |
|
2558 /********************************************************/ |
|
2559 |
|
2560 void CCaeTestRelease::TestSCDigiZoomVal0L() |
|
2561 { |
|
2562 // Group: Settings |
|
2563 // |
|
2564 // ID: CAE.SET-SC.SETZOOMVALUEL.001 |
|
2565 // |
|
2566 // Action : Test digital zoom. |
|
2567 // |
|
2568 // Output : OK. |
|
2569 |
|
2570 RDebug::Print(_L("XYZ:TestSCDigiZoomVal0L start")); |
|
2571 |
|
2572 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
2573 |
|
2574 iSettingsClient->SetDigiZoomValue( 0 ); |
|
2575 |
|
2576 iSettingsClient->SetSnapFileName( _L("cae_digizoom_val_0_vga.mbm") ); |
|
2577 |
|
2578 iSettingsClient->SetStillFileName( _L("cae_digizoom_val_0_vga.jpg") ); |
|
2579 |
|
2580 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ); |
|
2581 |
|
2582 RDebug::Print(_L("XYZ:TestSCDigiZoomVal0L ending")); |
|
2583 } |
|
2584 |
|
2585 void CCaeTestRelease::TestSCDigiZoomVal1VgaL() |
|
2586 { |
|
2587 // Group: Settings |
|
2588 // |
|
2589 // ID: CAE.SET-SC.SETZOOMVALUEL.002_vga |
|
2590 // |
|
2591 // Action : Test digital zoom. |
|
2592 // |
|
2593 // Output : OK. |
|
2594 |
|
2595 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
2596 |
|
2597 TCamAppEngineInfo info; |
|
2598 iSettingsClient->GetInfo(info); |
|
2599 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom ); |
|
2600 |
|
2601 iSettingsClient->SetSnapFileName( _L("cae_digizoom_val_1_vga.mbm") ); |
|
2602 |
|
2603 iSettingsClient->SetStillFileName( _L("cae_digizoom_val_1_vga.jpg") ); |
|
2604 |
|
2605 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ); |
|
2606 } |
|
2607 |
|
2608 void CCaeTestRelease::TestSCDigiZoomVal1QqvgaL() |
|
2609 { |
|
2610 // Group: Settings |
|
2611 // |
|
2612 // ID: CAE.SET-SC.SETZOOMVALUEL.002_qqvga |
|
2613 // |
|
2614 // Action : Test digital zoom. |
|
2615 // |
|
2616 // Output : OK. |
|
2617 |
|
2618 iSettingsClient->SetStillQualityLevelIndex( 2 ); |
|
2619 |
|
2620 TCamAppEngineInfo info; |
|
2621 iSettingsClient->GetInfo(info); |
|
2622 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom ); |
|
2623 |
|
2624 iSettingsClient->SetSnapFileName( _L("cae_digizoom_val_1_qqvga.mbm") ); |
|
2625 |
|
2626 iSettingsClient->SetStillFileName( _L("cae_digizoom_val_1_qqvga.jpg") ); |
|
2627 |
|
2628 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenStillPrepared ); |
|
2629 } |
|
2630 |
|
2631 void CCaeTestRelease::TestSCDigiZoomInitializedVal0L() |
|
2632 { |
|
2633 // Group: Settings |
|
2634 // |
|
2635 // ID: CAE.SET-SC.SETZOOMVALUEL.005 |
|
2636 // |
|
2637 // Action : Test digital zoom. |
|
2638 // |
|
2639 // Output : OK. |
|
2640 |
|
2641 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
2642 |
|
2643 iSettingsClient->SetDigiZoomValue( 0 ); |
|
2644 |
|
2645 iSettingsClient->SetSnapFileName( _L("cae_digizoom_initialized_val_0_vga.mbm") ); |
|
2646 |
|
2647 iSettingsClient->SetStillFileName( _L("cae_digizoom_initialized_val_0_vga.jpg") ); |
|
2648 |
|
2649 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenInitialized ); |
|
2650 } |
|
2651 |
|
2652 void CCaeTestRelease::TestSCDigiZoomInitializedVal1VgaL() |
|
2653 { |
|
2654 // Group: Settings |
|
2655 // |
|
2656 // ID: CAE.SET-SC.SETZOOMVALUEL.012_vga |
|
2657 // |
|
2658 // Action : Test digital zoom. |
|
2659 // |
|
2660 // Output : OK. |
|
2661 |
|
2662 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
2663 |
|
2664 TCamAppEngineInfo info; |
|
2665 iSettingsClient->GetInfo(info); |
|
2666 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom ); |
|
2667 |
|
2668 iSettingsClient->SetSnapFileName( _L("cae_digizoom_initialized_val_1_vga.mbm") ); |
|
2669 |
|
2670 iSettingsClient->SetStillFileName( _L("cae_digizoom_initialized_val_1_vga.jpg") ); |
|
2671 |
|
2672 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenInitialized ); |
|
2673 } |
|
2674 |
|
2675 void CCaeTestRelease::TestSCDigiZoomInitializedVal1QqvgaL() |
|
2676 { |
|
2677 // Group: Settings |
|
2678 // |
|
2679 // ID: CAE.SET-SC.SETZOOMVALUEL.012_qqvga |
|
2680 // |
|
2681 // Action : Test digital zoom. |
|
2682 // |
|
2683 // Output : OK. |
|
2684 |
|
2685 iSettingsClient->SetStillQualityLevelIndex( 2 ); |
|
2686 |
|
2687 TCamAppEngineInfo info; |
|
2688 iSettingsClient->GetInfo(info); |
|
2689 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom ); |
|
2690 |
|
2691 iSettingsClient->SetSnapFileName( _L("cae_digizoom_initialized_val_1_qqvga.mbm") ); |
|
2692 |
|
2693 iSettingsClient->SetStillFileName( _L("cae_digizoom_initialized_val_1_qqvga.jpg") ); |
|
2694 |
|
2695 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenInitialized ); |
|
2696 } |
|
2697 |
|
2698 /********************************************************/ |
|
2699 /* VIDEO RECORDING DIGITAL ZOOM VALUE */ |
|
2700 /********************************************************/ |
|
2701 |
|
2702 void CCaeTestRelease::TestVRDigiZoomVal0L() |
|
2703 { |
|
2704 // Group: Settings |
|
2705 // |
|
2706 // ID: CAE.SET-VR.SETZOOMVALUEL.006 |
|
2707 // |
|
2708 // Action : Test digital zoom. |
|
2709 // |
|
2710 // Output : OK. |
|
2711 |
|
2712 iSettingsClient->SetTimeout( 4000000 ); |
|
2713 |
|
2714 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
2715 |
|
2716 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
2717 |
|
2718 iSettingsClient->SetDigiZoomValue( 0 ); |
|
2719 |
|
2720 #if (MIRAGE_X_PROD3) |
|
2721 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2722 #else |
|
2723 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2724 #endif |
|
2725 |
|
2726 iSettingsClient->SetVideoFileName( _L("cae_digizoom_val_0.3gp") ); |
|
2727 |
|
2728 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared ); |
|
2729 } |
|
2730 |
|
2731 void CCaeTestRelease::TestVRDigiZoomVal1L() |
|
2732 { |
|
2733 // Group: Settings |
|
2734 // |
|
2735 // ID: CAE.SET-VR.SETZOOMVALUEL.007 |
|
2736 // |
|
2737 // Action : Test digital zoom. |
|
2738 // |
|
2739 // Output : OK. |
|
2740 |
|
2741 iSettingsClient->SetTimeout( 4000000 ); |
|
2742 |
|
2743 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
2744 |
|
2745 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
2746 |
|
2747 TCamAppEngineInfo info; |
|
2748 iSettingsClient->GetInfo(info); |
|
2749 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom ); |
|
2750 |
|
2751 #if (MIRAGE_X_PROD3) |
|
2752 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2753 #else |
|
2754 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2755 #endif |
|
2756 |
|
2757 iSettingsClient->SetVideoFileName( _L("cae_digizoom_val_1.3gp") ); |
|
2758 |
|
2759 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoPrepared ); |
|
2760 } |
|
2761 |
|
2762 void CCaeTestRelease::TestVRDigiZoomRecordingVal0L() |
|
2763 { |
|
2764 // Group: Settings |
|
2765 // |
|
2766 // ID: CAE.SET-VR.SETZOOMVALUEL.010 |
|
2767 // |
|
2768 // Action : Test digital zoom. |
|
2769 // |
|
2770 // Output : OK. |
|
2771 |
|
2772 iSettingsClient->SetTimeout( 4000000 ); |
|
2773 |
|
2774 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
2775 |
|
2776 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
2777 |
|
2778 iSettingsClient->SetDigiZoomValue( 0 ); |
|
2779 |
|
2780 #if (MIRAGE_X_PROD3) |
|
2781 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2782 #else |
|
2783 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2784 #endif |
|
2785 |
|
2786 iSettingsClient->SetVideoFileName( _L("cae_digizoom_recording_val_0.3gp") ); |
|
2787 |
|
2788 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoRecording ); |
|
2789 } |
|
2790 |
|
2791 void CCaeTestRelease::TestVRDigiZoomRecordingVal1L() |
|
2792 { |
|
2793 // Group: Settings |
|
2794 // |
|
2795 // ID: CAE.SET-VR.SETZOOMVALUEL.011 |
|
2796 // |
|
2797 // Action : Test digital zoom. |
|
2798 // |
|
2799 // Output : OK. |
|
2800 |
|
2801 iSettingsClient->SetTimeout( 4000000 ); |
|
2802 |
|
2803 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
2804 |
|
2805 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
2806 |
|
2807 TCamAppEngineInfo info; |
|
2808 iSettingsClient->GetInfo( info ); |
|
2809 iSettingsClient->SetDigiZoomValue( info.iMaxDigitalZoom ); |
|
2810 |
|
2811 #if (MIRAGE_X_PROD3) |
|
2812 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2813 #else |
|
2814 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2815 #endif |
|
2816 |
|
2817 iSettingsClient->SetVideoFileName( _L("cae_digizoom_recording_val_1.3gp") ); |
|
2818 |
|
2819 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetDigiZoomWhenVideoRecording ); |
|
2820 } |
|
2821 |
|
2822 /********************************************************/ |
|
2823 /* START AND STOP VIDEO RECORDING DISK FULL */ |
|
2824 /********************************************************/ |
|
2825 |
|
2826 void CCaeTestRelease::TestStartAndStopVRWhenTooBigSizeSubQcifL() |
|
2827 { |
|
2828 // ID: CAE.VR.STARTSTOPVRTOOBIGSIZE.SUBQCIF.001 |
|
2829 // |
|
2830 // Group: Record |
|
2831 // |
|
2832 // Action : |
|
2833 // |
|
2834 // Output : Leave. |
|
2835 |
|
2836 iStatesClient->SetTimeout( 100000000 ); |
|
2837 |
|
2838 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
2839 |
|
2840 iStatesClient->SetVideoFrameSize( sizeSubQcif ); |
|
2841 iStatesClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
2842 iStatesClient->SetVideoBitRate( TInt( 25000 ) ); |
|
2843 |
|
2844 #if (MIRAGE_X_PROD3) |
|
2845 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
2846 #else |
|
2847 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
2848 #endif |
|
2849 |
|
2850 //iStatesClient->SetVideoFileName( _L("cae_too_big_subqcif.3gp") ); |
|
2851 |
|
2852 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndRecordVideo ) );//we have to put correct action |
|
2853 if( error == KErrNoMemory ) |
|
2854 { |
|
2855 User::Leave( error ); // For memory test |
|
2856 } |
|
2857 assertL( error == KErrDiskFull ); |
|
2858 |
|
2859 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
2860 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
2861 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
2862 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
2863 } |
|
2864 |
|
2865 /********************************************************/ |
|
2866 /* GET INFO */ |
|
2867 /********************************************************/ |
|
2868 |
|
2869 void CCaeTestRelease::TestGetInfoL() |
|
2870 { |
|
2871 // Group: Settings |
|
2872 // |
|
2873 // ID: CAE.GEN.GETINFO.001 |
|
2874 // |
|
2875 // Action : Call GetInfo. Engine initialized |
|
2876 // |
|
2877 // Output : OK. |
|
2878 |
|
2879 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
2880 |
|
2881 // Get Camera Application Engine info object. |
|
2882 TCamAppEngineInfo info; |
|
2883 iSettingsClient->GetInfo( info ); |
|
2884 |
|
2885 // Do comparisons. |
|
2886 |
|
2887 /* |
|
2888 TVersion hardwareVersion = TVersion(0,0,0); |
|
2889 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
2890 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
2891 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
2892 |
|
2893 TVersion softwareVersion = TVersion(0,0,0); |
|
2894 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
2895 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
2896 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
2897 */ |
|
2898 |
|
2899 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
2900 assertL( info.iOrientation == orientation ); |
|
2901 |
|
2902 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
2903 TCameraInfo::EImageCaptureSupported | |
|
2904 TCameraInfo::EVideoCaptureSupported | |
|
2905 TCameraInfo::EContrastSupported | |
|
2906 TCameraInfo::EBrightnessSupported; |
|
2907 assertL( info.iOptionsSupported == optionsSupported ); |
|
2908 |
|
2909 TUint32 flashModesSupported = CCamera::EFlashNone; |
|
2910 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
2911 |
|
2912 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
2913 CCamera::EExposureNight; |
|
2914 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
2915 |
|
2916 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto; |
|
2917 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
2918 |
|
2919 TInt minzoom = 0; |
|
2920 assertL( info.iMinZoom == minzoom ); |
|
2921 |
|
2922 TInt maxZoom = 0; |
|
2923 assertL( info.iMaxZoom == maxZoom ); |
|
2924 |
|
2925 TInt maxDigitalZoom = 1; |
|
2926 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
2927 |
|
2928 TReal32 minZoomFactor = 0.0; |
|
2929 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
2930 |
|
2931 TReal32 maxZoomFactor = 0.0; |
|
2932 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
2933 |
|
2934 TReal32 maxDigitalZoomFactor = 2.0; |
|
2935 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
2936 |
|
2937 TInt numImageSizesSupported = 2; |
|
2938 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
2939 |
|
2940 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
2941 CCamera::EFormatFbsBitmapColor64K | |
|
2942 CCamera::EFormatFbsBitmapColor16M; |
|
2943 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
2944 |
|
2945 TInt numStillQualityLevelsSupported = 3; |
|
2946 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
2947 |
|
2948 TInt numVideoQualityLevelsSupported = 3; |
|
2949 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
2950 |
|
2951 } |
|
2952 |
|
2953 void CCaeTestRelease::TestGetInfoPROD1MirageXL() |
|
2954 { |
|
2955 // Group: Settings |
|
2956 // |
|
2957 // ID: CAE.GEN.GETINFO.002 |
|
2958 // |
|
2959 // Action : Call GetInfo. Engine initialized |
|
2960 // ** For PROD1 Mirage X** |
|
2961 // |
|
2962 // Output : OK. |
|
2963 |
|
2964 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
2965 |
|
2966 // Get Camera Application Engine info object. |
|
2967 TCamAppEngineInfo info; |
|
2968 iSettingsClient->GetInfo( info ); |
|
2969 |
|
2970 // Do comparisons. |
|
2971 |
|
2972 /* |
|
2973 TVersion hardwareVersion = TVersion(0,0,0); |
|
2974 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
2975 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
2976 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
2977 |
|
2978 TVersion softwareVersion = TVersion(0,0,0); |
|
2979 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
2980 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
2981 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
2982 */ |
|
2983 |
|
2984 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
2985 assertL( info.iOrientation == orientation ); |
|
2986 |
|
2987 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
2988 TCameraInfo::EImageCaptureSupported | |
|
2989 TCameraInfo::EVideoCaptureSupported | |
|
2990 TCameraInfo::EContrastSupported | |
|
2991 TCameraInfo::EBrightnessSupported; |
|
2992 assertL( info.iOptionsSupported == optionsSupported ); |
|
2993 |
|
2994 TUint32 flashModesSupported = CCamera::EFlashNone; |
|
2995 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
2996 |
|
2997 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
2998 CCamera::EExposureNight; |
|
2999 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3000 |
|
3001 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto; |
|
3002 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3003 |
|
3004 TInt minzoom = 0; |
|
3005 assertL( info.iMinZoom == minzoom ); |
|
3006 |
|
3007 TInt maxZoom = 0; |
|
3008 assertL( info.iMaxZoom == maxZoom ); |
|
3009 |
|
3010 TInt maxDigitalZoom = 3; |
|
3011 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3012 |
|
3013 TReal32 minZoomFactor = 0.0; |
|
3014 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3015 |
|
3016 TReal32 maxZoomFactor = 0.0; |
|
3017 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3018 |
|
3019 TReal32 maxDigitalZoomFactor = 4.0; |
|
3020 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3021 |
|
3022 TInt numImageSizesSupported = 4; |
|
3023 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3024 |
|
3025 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3026 CCamera::EFormatFbsBitmapColor64K | |
|
3027 CCamera::EFormatFbsBitmapColor16M; |
|
3028 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3029 |
|
3030 TInt numStillQualityLevelsSupported = 3; |
|
3031 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3032 |
|
3033 TInt numVideoQualityLevelsSupported = 3; |
|
3034 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3035 |
|
3036 } |
|
3037 |
|
3038 |
|
3039 void CCaeTestRelease::TestGetInfoPROD2MirageXL() |
|
3040 { |
|
3041 // Group: Settings |
|
3042 // |
|
3043 // ID: CAE.GEN.GETINFO.003 |
|
3044 // |
|
3045 // Action : Call GetInfo. Engine initialized |
|
3046 // ** For PROD2 Mirage X** |
|
3047 // |
|
3048 // Output : OK. |
|
3049 |
|
3050 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3051 |
|
3052 // Get Camera Application Engine info object. |
|
3053 TCamAppEngineInfo info; |
|
3054 iSettingsClient->GetInfo( info ); |
|
3055 |
|
3056 // Do comparisons. |
|
3057 |
|
3058 /* |
|
3059 TVersion hardwareVersion = TVersion(0,0,0); |
|
3060 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
3061 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
3062 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
3063 |
|
3064 TVersion softwareVersion = TVersion(0,0,0); |
|
3065 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
3066 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
3067 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
3068 */ |
|
3069 |
|
3070 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3071 assertL( info.iOrientation == orientation ); |
|
3072 |
|
3073 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3074 TCameraInfo::EImageCaptureSupported | |
|
3075 TCameraInfo::EVideoCaptureSupported | |
|
3076 TCameraInfo::EContrastSupported | |
|
3077 TCameraInfo::EBrightnessSupported; |
|
3078 assertL( info.iOptionsSupported == optionsSupported ); |
|
3079 |
|
3080 TUint32 flashModesSupported = CCamera::EFlashNone; |
|
3081 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3082 |
|
3083 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3084 CCamera::EExposureNight | |
|
3085 CCamera::EExposureCenter | |
|
3086 CCamera::EExposureBacklight; |
|
3087 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3088 |
|
3089 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto; |
|
3090 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3091 |
|
3092 TInt minzoom = 0; |
|
3093 assertL( info.iMinZoom == minzoom ); |
|
3094 |
|
3095 TInt maxZoom = 0; |
|
3096 assertL( info.iMaxZoom == maxZoom ); |
|
3097 |
|
3098 TInt maxDigitalZoom = 52; |
|
3099 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3100 |
|
3101 TReal32 minZoomFactor = 0.0; |
|
3102 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3103 |
|
3104 TReal32 maxZoomFactor = 0.0; |
|
3105 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3106 |
|
3107 TReal32 maxDigitalZoomFactor = 6.0; |
|
3108 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3109 |
|
3110 TInt numImageSizesSupported = 3; |
|
3111 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3112 |
|
3113 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3114 CCamera::EFormatFbsBitmapColor64K | |
|
3115 CCamera::EFormatFbsBitmapColor16M | |
|
3116 CCamera::EFormatExif; |
|
3117 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3118 |
|
3119 TInt numStillQualityLevelsSupported = 3; |
|
3120 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3121 |
|
3122 TInt numVideoQualityLevelsSupported = 3; |
|
3123 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3124 |
|
3125 } |
|
3126 |
|
3127 |
|
3128 void CCaeTestRelease::TestGetInfoPROD3MirageXPL() |
|
3129 { |
|
3130 // Group: Settings |
|
3131 // |
|
3132 // ID: CAE.GEN.GETINFO.004 |
|
3133 // |
|
3134 // Action : Call GetInfo. Engine initialized |
|
3135 // ** For PROD3 Mirage XP** |
|
3136 // |
|
3137 // Output : OK. |
|
3138 |
|
3139 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3140 |
|
3141 // Get Camera Application Engine info object. |
|
3142 TCamAppEngineInfo info; |
|
3143 iSettingsClient->GetInfo( info ); |
|
3144 |
|
3145 // Do comparisons. |
|
3146 |
|
3147 /* |
|
3148 TVersion hardwareVersion = TVersion(0,0,0); |
|
3149 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
3150 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
3151 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
3152 |
|
3153 TVersion softwareVersion = TVersion(0,0,0); |
|
3154 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
3155 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
3156 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
3157 */ |
|
3158 |
|
3159 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3160 assertL( info.iOrientation == orientation ); |
|
3161 |
|
3162 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3163 TCameraInfo::EImageCaptureSupported | |
|
3164 TCameraInfo::EVideoCaptureSupported | |
|
3165 TCameraInfo::EContrastSupported | |
|
3166 TCameraInfo::EBrightnessSupported; |
|
3167 assertL( info.iOptionsSupported == optionsSupported ); |
|
3168 |
|
3169 TUint32 flashModesSupported = CCamera::EFlashNone | |
|
3170 CCamera::EFlashAuto | |
|
3171 CCamera::EFlashForced; |
|
3172 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3173 |
|
3174 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3175 CCamera::EExposureNight; |
|
3176 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3177 |
|
3178 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto | |
|
3179 CCamera::EWBDaylight | |
|
3180 CCamera::EWBCloudy | |
|
3181 CCamera::EWBTungsten | |
|
3182 CCamera::EWBFluorescent; |
|
3183 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3184 |
|
3185 TInt minzoom = 0; |
|
3186 assertL( info.iMinZoom == minzoom ); |
|
3187 |
|
3188 TInt maxZoom = 0; |
|
3189 assertL( info.iMaxZoom == maxZoom ); |
|
3190 |
|
3191 TInt maxDigitalZoom = 3; |
|
3192 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3193 |
|
3194 TReal32 minZoomFactor = 0.0; |
|
3195 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3196 |
|
3197 TReal32 maxZoomFactor = 0.0; |
|
3198 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3199 |
|
3200 TReal32 maxDigitalZoomFactor = 4.0; |
|
3201 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3202 |
|
3203 TInt numImageSizesSupported = 3; // 4 with HW version of Camera API ! |
|
3204 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3205 |
|
3206 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3207 CCamera::EFormatFbsBitmapColor64K | |
|
3208 CCamera::EFormatFbsBitmapColor16M | |
|
3209 CCamera::EFormatExif; |
|
3210 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3211 |
|
3212 TInt numStillQualityLevelsSupported = 3; |
|
3213 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3214 |
|
3215 TInt numVideoQualityLevelsSupported = 3; |
|
3216 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3217 |
|
3218 } |
|
3219 |
|
3220 void CCaeTestRelease::TestGetInfoPROD4MirageXL() |
|
3221 { |
|
3222 // Group: Settings |
|
3223 // |
|
3224 // ID: CAE.GEN.GETINFO.005 |
|
3225 // |
|
3226 // Action : Call GetInfo. Engine initialized |
|
3227 // ** For PROD4 Mirage X** |
|
3228 // |
|
3229 // Output : OK. |
|
3230 |
|
3231 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3232 |
|
3233 // Get Camera Application Engine info object. |
|
3234 TCamAppEngineInfo info; |
|
3235 iSettingsClient->GetInfo( info ); |
|
3236 |
|
3237 // Do comparisons. |
|
3238 |
|
3239 /* |
|
3240 TVersion hardwareVersion = TVersion(0,0,0); |
|
3241 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
3242 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
3243 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
3244 |
|
3245 TVersion softwareVersion = TVersion(0,0,0); |
|
3246 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
3247 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
3248 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
3249 */ |
|
3250 |
|
3251 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3252 assertL( info.iOrientation == orientation ); |
|
3253 |
|
3254 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3255 TCameraInfo::EImageCaptureSupported | |
|
3256 TCameraInfo::EVideoCaptureSupported | |
|
3257 TCameraInfo::EContrastSupported | |
|
3258 TCameraInfo::EBrightnessSupported; |
|
3259 assertL( info.iOptionsSupported == optionsSupported ); |
|
3260 |
|
3261 TUint32 flashModesSupported = CCamera::EFlashNone | |
|
3262 CCamera::EFlashAuto | |
|
3263 CCamera::EFlashForced; |
|
3264 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3265 |
|
3266 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3267 CCamera::EExposureNight | |
|
3268 CCamera::EExposureCenter | |
|
3269 CCamera::EExposureBacklight; |
|
3270 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3271 |
|
3272 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto; |
|
3273 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3274 |
|
3275 TInt minzoom = 0; |
|
3276 assertL( info.iMinZoom == minzoom ); |
|
3277 |
|
3278 TInt maxZoom = 0; |
|
3279 assertL( info.iMaxZoom == maxZoom ); |
|
3280 |
|
3281 TInt maxDigitalZoom = 52; |
|
3282 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3283 |
|
3284 TReal32 minZoomFactor = 0.0; |
|
3285 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3286 |
|
3287 TReal32 maxZoomFactor = 0.0; |
|
3288 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3289 |
|
3290 TReal32 maxDigitalZoomFactor = 6.0; |
|
3291 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3292 |
|
3293 TInt numImageSizesSupported = 3; |
|
3294 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3295 |
|
3296 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3297 CCamera::EFormatFbsBitmapColor64K | |
|
3298 CCamera::EFormatFbsBitmapColor16M | |
|
3299 CCamera::EFormatExif; |
|
3300 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3301 |
|
3302 TInt numStillQualityLevelsSupported = 3; |
|
3303 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3304 |
|
3305 TInt numVideoQualityLevelsSupported = 3; |
|
3306 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3307 |
|
3308 } |
|
3309 |
|
3310 void CCaeTestRelease::TestGetInfoPROD6MirageXL() |
|
3311 { |
|
3312 // Group: Settings |
|
3313 // |
|
3314 // ID: CAE.GEN.GETINFO.006 |
|
3315 // |
|
3316 // Action : Call GetInfo. Engine initialized |
|
3317 // ** For PROD6 Mirage X** |
|
3318 // |
|
3319 // Output : OK. |
|
3320 |
|
3321 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3322 |
|
3323 // Get Camera Application Engine info object. |
|
3324 TCamAppEngineInfo info; |
|
3325 iSettingsClient->GetInfo( info ); |
|
3326 |
|
3327 // Do comparisons. |
|
3328 |
|
3329 /* |
|
3330 TVersion hardwareVersion = TVersion(0,0,0); |
|
3331 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
3332 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
3333 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
3334 |
|
3335 TVersion softwareVersion = TVersion(0,0,0); |
|
3336 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
3337 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
3338 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
3339 */ |
|
3340 |
|
3341 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3342 assertL( info.iOrientation == orientation ); |
|
3343 |
|
3344 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3345 TCameraInfo::EImageCaptureSupported | |
|
3346 TCameraInfo::EVideoCaptureSupported | |
|
3347 TCameraInfo::EViewFinderMirrorSupported; |
|
3348 |
|
3349 assertL( info.iOptionsSupported == optionsSupported ); |
|
3350 |
|
3351 TUint32 flashModesSupported = CCamera::EFlashNone; |
|
3352 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3353 |
|
3354 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3355 CCamera::EExposureNight; |
|
3356 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3357 |
|
3358 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto; |
|
3359 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3360 |
|
3361 TInt minzoom = 0; |
|
3362 assertL( info.iMinZoom == minzoom ); |
|
3363 |
|
3364 TInt maxZoom = 0; |
|
3365 assertL( info.iMaxZoom == maxZoom ); |
|
3366 |
|
3367 TInt maxDigitalZoom = 52; |
|
3368 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3369 |
|
3370 TReal32 minZoomFactor = 0.0; |
|
3371 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3372 |
|
3373 TReal32 maxZoomFactor = 0.0; |
|
3374 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3375 |
|
3376 TReal32 maxDigitalZoomFactor = 6.0; |
|
3377 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3378 |
|
3379 TInt numImageSizesSupported = 3; |
|
3380 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3381 |
|
3382 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3383 CCamera::EFormatFbsBitmapColor64K | |
|
3384 CCamera::EFormatFbsBitmapColor16M | |
|
3385 CCamera::EFormatExif; |
|
3386 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3387 |
|
3388 TInt numStillQualityLevelsSupported = 3; |
|
3389 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3390 |
|
3391 TInt numVideoQualityLevelsSupported = 3; |
|
3392 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3393 |
|
3394 } |
|
3395 |
|
3396 |
|
3397 void CCaeTestRelease::TestGetInfoPROD7Unagi2ML() |
|
3398 { |
|
3399 // Group: Settings |
|
3400 // |
|
3401 // ID: CAE.GEN.GETINFO.007 |
|
3402 // |
|
3403 // Action : Call GetInfo. Engine initialized |
|
3404 // ** For PROD7 Unagi 2M ** |
|
3405 // |
|
3406 // Output : OK. |
|
3407 |
|
3408 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3409 |
|
3410 // Get Camera Application Engine info object. |
|
3411 TCamAppEngineInfo info; |
|
3412 iSettingsClient->GetInfo( info ); |
|
3413 |
|
3414 // Do comparisons. |
|
3415 |
|
3416 /* |
|
3417 TVersion hardwareVersion = TVersion(0,0,0); |
|
3418 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
3419 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
3420 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
3421 |
|
3422 TVersion softwareVersion = TVersion(0,0,0); |
|
3423 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
3424 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
3425 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
3426 */ |
|
3427 |
|
3428 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3429 assertL( info.iOrientation == orientation ); |
|
3430 |
|
3431 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3432 TCameraInfo::EImageCaptureSupported | |
|
3433 TCameraInfo::EVideoCaptureSupported | |
|
3434 TCameraInfo::EViewFinderMirrorSupported; |
|
3435 //TCameraInfo::EContrastSupported | |
|
3436 //TCameraInfo::EBrightnessSupported; |
|
3437 assertL( info.iOptionsSupported == optionsSupported ); |
|
3438 |
|
3439 TUint32 flashModesSupported = CCamera::EFlashNone | |
|
3440 CCamera::EFlashAuto | |
|
3441 CCamera::EFlashForced | |
|
3442 CCamera::EFlashRedEyeReduce; |
|
3443 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3444 |
|
3445 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3446 CCamera::EExposureNight | |
|
3447 CCamera::EExposureCenter | |
|
3448 CCamera::EExposureBacklight | |
|
3449 CCamera::EExposureSport; |
|
3450 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3451 |
|
3452 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto | |
|
3453 CCamera::EWBDaylight | |
|
3454 CCamera::EWBCloudy | |
|
3455 CCamera::EWBTungsten | |
|
3456 CCamera::EWBFluorescent; |
|
3457 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3458 |
|
3459 TInt minzoom = 0; |
|
3460 assertL( info.iMinZoom == minzoom ); |
|
3461 |
|
3462 TInt maxZoom = 0; |
|
3463 assertL( info.iMaxZoom == maxZoom ); |
|
3464 |
|
3465 TInt maxDigitalZoom = 71; |
|
3466 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3467 |
|
3468 TReal32 minZoomFactor = 0.0; |
|
3469 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3470 |
|
3471 TReal32 maxZoomFactor = 0.0; |
|
3472 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3473 |
|
3474 TReal32 maxDigitalZoomFactor = 20.0; |
|
3475 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3476 |
|
3477 TInt numImageSizesSupported = 4; |
|
3478 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3479 |
|
3480 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3481 CCamera::EFormatFbsBitmapColor64K | |
|
3482 CCamera::EFormatFbsBitmapColor16M | |
|
3483 CCamera::EFormatExif; |
|
3484 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3485 |
|
3486 TInt numStillQualityLevelsSupported = 3; |
|
3487 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3488 |
|
3489 TInt numVideoQualityLevelsSupported = 3; |
|
3490 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3491 |
|
3492 } |
|
3493 |
|
3494 |
|
3495 |
|
3496 void CCaeTestRelease::TestGetInfoPROD8MirageXL() |
|
3497 |
|
3498 { |
|
3499 |
|
3500 // Group: Settings |
|
3501 // |
|
3502 // ID: CAE.GEN.GETINFO.008 |
|
3503 // |
|
3504 // Action : Call GetInfo. Engine initialized |
|
3505 // ** For PROD8 Mirage X** |
|
3506 // |
|
3507 // Output : OK. |
|
3508 |
|
3509 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3510 |
|
3511 // Get Camera Application Engine info object. |
|
3512 TCamAppEngineInfo info; |
|
3513 iSettingsClient->GetInfo( info ); |
|
3514 |
|
3515 // Do comparisons. |
|
3516 |
|
3517 /* |
|
3518 TVersion hardwareVersion = TVersion(0,0,0); |
|
3519 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
3520 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
3521 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
3522 |
|
3523 TVersion softwareVersion = TVersion(0,0,0); |
|
3524 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
3525 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
3526 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
3527 */ |
|
3528 |
|
3529 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3530 assertL( info.iOrientation == orientation ); |
|
3531 |
|
3532 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3533 TCameraInfo::EImageCaptureSupported | |
|
3534 TCameraInfo::EVideoCaptureSupported; |
|
3535 assertL( info.iOptionsSupported == optionsSupported ); |
|
3536 |
|
3537 TUint32 flashModesSupported = CCamera::EFlashNone; |
|
3538 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3539 |
|
3540 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3541 CCamera::EExposureNight | |
|
3542 CCamera::EExposureSport | |
|
3543 CCamera::EExposureCenter; |
|
3544 |
|
3545 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3546 |
|
3547 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto | |
|
3548 CCamera::EWBDaylight | |
|
3549 CCamera::EWBCloudy | |
|
3550 CCamera::EWBTungsten | |
|
3551 CCamera::EWBFluorescent; |
|
3552 |
|
3553 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3554 |
|
3555 TInt minzoom = 0; |
|
3556 assertL( info.iMinZoom == minzoom ); |
|
3557 |
|
3558 TInt maxZoom = 0; |
|
3559 assertL( info.iMaxZoom == maxZoom ); |
|
3560 |
|
3561 TInt maxDigitalZoom = 71; |
|
3562 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3563 |
|
3564 TReal32 minZoomFactor = 0.0; |
|
3565 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3566 |
|
3567 TReal32 maxZoomFactor = 0.0; |
|
3568 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3569 |
|
3570 TReal32 maxDigitalZoomFactor = 20.0; |
|
3571 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3572 |
|
3573 TInt numImageSizesSupported = 5; |
|
3574 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3575 |
|
3576 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3577 CCamera::EFormatFbsBitmapColor64K | |
|
3578 CCamera::EFormatFbsBitmapColor16M | |
|
3579 CCamera::EFormatExif; |
|
3580 |
|
3581 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3582 |
|
3583 TInt numStillQualityLevelsSupported = 3; |
|
3584 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3585 |
|
3586 TInt numVideoQualityLevelsSupported = 3; |
|
3587 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3588 |
|
3589 } |
|
3590 |
|
3591 |
|
3592 void CCaeTestRelease::TestGetInfoPROD9HWL() |
|
3593 |
|
3594 { |
|
3595 |
|
3596 // Group: Settings |
|
3597 // |
|
3598 // ID: CAE.GEN.GETINFO.009 |
|
3599 // |
|
3600 // Action : Call GetInfo. Engine initialized |
|
3601 // ** For PROD9 HW ** |
|
3602 // |
|
3603 // Output : OK. |
|
3604 |
|
3605 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3606 |
|
3607 // Get Camera Application Engine info object. |
|
3608 TCamAppEngineInfo info; |
|
3609 iSettingsClient->GetInfo( info ); |
|
3610 |
|
3611 // Do comparisons. |
|
3612 |
|
3613 /* |
|
3614 TVersion hardwareVersion = TVersion(0,0,0); |
|
3615 assertL( ( info.iHardwareVersion.iMajor == hardwareVersion.iMajor ) && |
|
3616 ( info.iHardwareVersion.iMinor == hardwareVersion.iMinor ) && |
|
3617 ( info.iHardwareVersion.iBuild == hardwareVersion.iBuild ) ); |
|
3618 |
|
3619 TVersion softwareVersion = TVersion(0,0,0); |
|
3620 assertL( ( info.iSoftwareVersion.iMajor == softwareVersion.iMajor ) && |
|
3621 ( info.iSoftwareVersion.iMinor == softwareVersion.iMinor ) && |
|
3622 ( info.iSoftwareVersion.iBuild == softwareVersion.iBuild ) ); |
|
3623 */ |
|
3624 |
|
3625 TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3626 assertL( info.iOrientation == orientation ); |
|
3627 |
|
3628 TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3629 TCameraInfo::EImageCaptureSupported | |
|
3630 TCameraInfo::EVideoCaptureSupported; |
|
3631 assertL( info.iOptionsSupported == optionsSupported ); |
|
3632 |
|
3633 TUint32 flashModesSupported = CCamera::EFlashAuto | |
|
3634 CCamera::EFlashForced | |
|
3635 CCamera::EFlashRedEyeReduce; |
|
3636 assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3637 |
|
3638 TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3639 CCamera::EExposureNight | |
|
3640 CCamera::EExposureBacklight | |
|
3641 CCamera::EExposureCenter | |
|
3642 CCamera::EExposureSuperNight; |
|
3643 |
|
3644 RDebug::Print(_L("info.iExposureModesSupported = 0x%x / 0x%x"), info.iExposureModesSupported, exposureModesSupported); |
|
3645 assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3646 |
|
3647 TUint32 whiteBalanceModesSupported = CCamera::EWBAuto | |
|
3648 CCamera::EWBDaylight | |
|
3649 CCamera::EWBTungsten | |
|
3650 CCamera::EWBFluorescent; |
|
3651 |
|
3652 assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3653 |
|
3654 TInt minzoom = 0; |
|
3655 assertL( info.iMinZoom == minzoom ); |
|
3656 |
|
3657 TInt maxZoom = 0; |
|
3658 assertL( info.iMaxZoom == maxZoom ); |
|
3659 |
|
3660 TInt maxDigitalZoom = 40; |
|
3661 assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3662 |
|
3663 TReal32 minZoomFactor = 0.0; |
|
3664 assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3665 |
|
3666 TReal32 maxZoomFactor = 0.0; |
|
3667 assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3668 |
|
3669 TReal32 maxDigitalZoomFactor = 4.0; |
|
3670 assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3671 |
|
3672 #if ( defined (__WINS__) || defined (__WINSCW) ) // this different on hw |
|
3673 TInt numImageSizesSupported = 3; |
|
3674 #else |
|
3675 TInt numImageSizesSupported = 4; |
|
3676 #endif |
|
3677 RDebug::Print(_L("info.iNumImageSizesSupported = %d"), info.iNumImageSizesSupported); |
|
3678 |
|
3679 assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3680 |
|
3681 TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3682 CCamera::EFormatFbsBitmapColor64K | |
|
3683 CCamera::EFormatFbsBitmapColor16M | |
|
3684 CCamera::EFormatExif; |
|
3685 |
|
3686 assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3687 |
|
3688 TInt numStillQualityLevelsSupported = 3; |
|
3689 assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3690 |
|
3691 TInt numVideoQualityLevelsSupported = 3; |
|
3692 assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3693 |
|
3694 } |
|
3695 |
|
3696 |
|
3697 void CCaeTestRelease::TestGetInfoDevlonHWL() |
|
3698 { |
|
3699 |
|
3700 // Group: Settings |
|
3701 // |
|
3702 // ID: CAE.GEN.GETINFO.010 |
|
3703 // |
|
3704 // Action : Call GetInfo. Engine initialized |
|
3705 // ** For Devlon HW ** |
|
3706 // |
|
3707 // Output : OK. Note only interfaces are tested, not the content itself anymore |
|
3708 |
|
3709 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EGetInfo ); |
|
3710 |
|
3711 // Get Camera Application Engine info object. |
|
3712 TCamAppEngineInfo info; |
|
3713 iSettingsClient->GetInfo( info ); |
|
3714 |
|
3715 // TCameraInfo::TCameraOrientation orientation = TCameraInfo::EOrientationOutwards; |
|
3716 // assertL( info.iOrientation == orientation ); |
|
3717 RDebug::Print(_L("info.iOrientation = 0x%x"), info.iOrientation); |
|
3718 |
|
3719 // TUint32 optionsSupported = TCameraInfo::EViewFinderBitmapsSupported | |
|
3720 // TCameraInfo::EImageCaptureSupported | |
|
3721 // TCameraInfo::EVideoCaptureSupported; |
|
3722 // assertL( info.iOptionsSupported == optionsSupported ); |
|
3723 RDebug::Print(_L("info.iOptionsSupported = 0x%x"), info.iOptionsSupported); |
|
3724 |
|
3725 // TUint32 flashModesSupported = CCamera::EFlashAuto | |
|
3726 // CCamera::EFlashForced | |
|
3727 // CCamera::EFlashRedEyeReduce; |
|
3728 // assertL( info.iFlashModesSupported == flashModesSupported ); |
|
3729 RDebug::Print(_L("info.iFlashModesSupported = 0x%x"), info.iFlashModesSupported); |
|
3730 |
|
3731 // TUint32 exposureModesSupported = CCamera::EExposureAuto | |
|
3732 // CCamera::EExposureNight | |
|
3733 // CCamera::EExposureBacklight | |
|
3734 // CCamera::EExposureCenter; |
|
3735 |
|
3736 // assertL( info.iExposureModesSupported == exposureModesSupported ); |
|
3737 RDebug::Print(_L("info.iExposureModesSupported = 0x%x"), info.iExposureModesSupported); |
|
3738 |
|
3739 // TUint32 whiteBalanceModesSupported = CCamera::EWBAuto | |
|
3740 // CCamera::EWBDaylight | |
|
3741 // CCamera::EWBTungsten | |
|
3742 // CCamera::EWBFluorescent; |
|
3743 |
|
3744 // assertL( info.iWhiteBalanceModesSupported == whiteBalanceModesSupported ); |
|
3745 RDebug::Print(_L("info.iWhiteBalanceModesSupported = 0x%x"), info.iWhiteBalanceModesSupported); |
|
3746 |
|
3747 // TInt minzoom = 0; |
|
3748 // assertL( info.iMinZoom == minzoom ); |
|
3749 RDebug::Print(_L("info.iMinZoom = 0x%x"), info.iMinZoom); |
|
3750 |
|
3751 // TInt maxZoom = 0; |
|
3752 // assertL( info.iMaxZoom == maxZoom ); |
|
3753 RDebug::Print(_L("info.iMaxZoom = 0x%x"), info.iMaxZoom); |
|
3754 |
|
3755 // TInt maxDigitalZoom = 40; |
|
3756 // assertL( info.iMaxDigitalZoom == maxDigitalZoom ); |
|
3757 RDebug::Print(_L("info.iMaxDigitalZoom = 0x%x"), info.iMaxDigitalZoom); |
|
3758 |
|
3759 // TReal32 minZoomFactor = 0.0; |
|
3760 // assertL( info.iMinZoomFactor == minZoomFactor ); |
|
3761 RDebug::Print(_L("info.minZoomFactor = 0x%x"), info.iMinZoomFactor); |
|
3762 |
|
3763 // TReal32 maxZoomFactor = 0.0; |
|
3764 // assertL( info.iMaxZoomFactor == maxZoomFactor ); |
|
3765 RDebug::Print(_L("info.iMaxZoomFactor = 0x%x"), info.iMaxZoomFactor); |
|
3766 |
|
3767 // TReal32 maxDigitalZoomFactor = 4.0; |
|
3768 // assertL( info.iMaxDigitalZoomFactor == maxDigitalZoomFactor ); |
|
3769 RDebug::Print(_L("info.iMaxDigitalZoomFactor = 0x%x"), info.iMaxDigitalZoomFactor); |
|
3770 |
|
3771 //#if ( defined (__WINS__) || defined (__WINSCW) ) // this different on hw |
|
3772 // TInt numImageSizesSupported = 3; |
|
3773 //#else |
|
3774 // TInt numImageSizesSupported = 4; |
|
3775 //#endif |
|
3776 // RDebug::Print(_L("info.iNumImageSizesSupported = %d"), info.iNumImageSizesSupported); |
|
3777 |
|
3778 // assertL( info.iNumImageSizesSupported == numImageSizesSupported ); |
|
3779 RDebug::Print(_L("info.iNumImageSizesSupported = 0x%x"), info.iNumImageSizesSupported); |
|
3780 |
|
3781 // TUint32 imageFormatsSupported = CCamera::EFormatFbsBitmapColor4K | |
|
3782 // CCamera::EFormatFbsBitmapColor64K | |
|
3783 // CCamera::EFormatFbsBitmapColor16M | |
|
3784 // CCamera::EFormatExif; |
|
3785 |
|
3786 // assertL( info.iImageFormatsSupported == imageFormatsSupported ); |
|
3787 RDebug::Print(_L("info.iImageFormatsSupported = 0x%x"), info.iImageFormatsSupported); |
|
3788 |
|
3789 // TInt numStillQualityLevelsSupported = 3; |
|
3790 // assertL( info.iNumStillQualityLevelsSupported == numStillQualityLevelsSupported ); |
|
3791 RDebug::Print(_L("info.iNumStillQualityLevelsSupported = 0x%x"), info.iNumStillQualityLevelsSupported); |
|
3792 |
|
3793 // TInt numVideoQualityLevelsSupported = 3; |
|
3794 // assertL( info.iNumVideoQualityLevelsSupported == numVideoQualityLevelsSupported ); |
|
3795 RDebug::Print(_L("info.iNumVideoQualityLevelsSupported = 0x%x"), info.iNumVideoQualityLevelsSupported); |
|
3796 |
|
3797 } |
|
3798 |
|
3799 |
|
3800 /********************************************************/ |
|
3801 /* RESUME VIDEO RECORDING */ |
|
3802 /********************************************************/ |
|
3803 |
|
3804 void CCaeTestRelease::TestRecordPauseResumeStopL() |
|
3805 { |
|
3806 // ID: CAE.VR.RESUMEVIDEORECORDING.001 |
|
3807 // |
|
3808 // Group: Record. |
|
3809 // |
|
3810 // Action : Resume video clip recording after pause. |
|
3811 // Video recording. |
|
3812 // |
|
3813 // Output : No leave. File KVideoFileName, "videoclip.3gp". |
|
3814 |
|
3815 iStatesClient->SetTimeout( 4000000 ); |
|
3816 |
|
3817 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
3818 |
|
3819 #if (MIRAGE_X_PROD3) |
|
3820 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
3821 #else |
|
3822 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
3823 #endif |
|
3824 |
|
3825 iStatesClient->SetVideoFileName( _L("cae_pause_resume.3gp") ); |
|
3826 |
|
3827 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareRecordPauseResumeStopVideo ); |
|
3828 |
|
3829 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
3830 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
3831 assertL( iStatesClient->CountVideoRecordingPaused() == 1 ); |
|
3832 assertL( iStatesClient->CountVideoRecordingOn() == 2 ); |
|
3833 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
3834 } |
|
3835 |
|
3836 /********************************************************/ |
|
3837 /* STILL CAPTURE EXPOSURE MODE */ |
|
3838 /********************************************************/ |
|
3839 |
|
3840 void CCaeTestRelease::TestSCExposureMode0L() |
|
3841 { |
|
3842 // Group: Settings. |
|
3843 // |
|
3844 // ID: CAE.SET-SC.SETEXPOSUREMODEL.001 |
|
3845 // |
|
3846 // Action : Test auto exposure mode setting with still image capture and viewfinding. |
|
3847 // |
|
3848 // Output : No leave. |
|
3849 |
|
3850 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
3851 |
|
3852 iSettingsClient->SetExposureMode( 0 ); // auto mode should be supported |
|
3853 |
|
3854 iSettingsClient->SetStillFileName( _L("cae_exposure_mode_0.jpg") ); |
|
3855 |
|
3856 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenStillPrepared ); |
|
3857 } |
|
3858 |
|
3859 void CCaeTestRelease::TestSCExposureMode1L() |
|
3860 { |
|
3861 // Group: Settings. |
|
3862 // |
|
3863 // ID: CAE.SET-SC.SETEXPOSUREMODEL.002 |
|
3864 // |
|
3865 // Action : Test night exposure mode setting with still image capture and viewfinding. |
|
3866 // |
|
3867 // Output : No leave. |
|
3868 |
|
3869 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
3870 |
|
3871 iSettingsClient->SetExposureMode( 1 ); // night mode should be supported |
|
3872 |
|
3873 iSettingsClient->SetStillFileName( _L("cae_exposure_mode_1.jpg") ); |
|
3874 |
|
3875 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenStillPrepared ); |
|
3876 } |
|
3877 |
|
3878 void CCaeTestRelease::TestSCExposureModeInitialized0L() |
|
3879 { |
|
3880 // Group: Settings. |
|
3881 // |
|
3882 // ID: CAE.SET-SC.SETEXPOSUREMODEL.015 |
|
3883 // |
|
3884 // Action : Test auto exposure mode setting with still image capture and viewfinding. |
|
3885 // |
|
3886 // Output : No leave. |
|
3887 |
|
3888 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
3889 |
|
3890 iSettingsClient->SetExposureMode( 0 ); // auto mode should be supported |
|
3891 |
|
3892 iSettingsClient->SetStillFileName( _L("cae_exposure_mode_initialized_0.jpg") ); |
|
3893 |
|
3894 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenInitialized ); |
|
3895 } |
|
3896 |
|
3897 void CCaeTestRelease::TestSCExposureModeInitialized1L() |
|
3898 { |
|
3899 // Group: Settings. |
|
3900 // |
|
3901 // ID: CAE.SET-SC.SETEXPOSUREMODEL.016 |
|
3902 // |
|
3903 // Action : Test night exposure mode setting with still image capture and viewfinding. |
|
3904 // |
|
3905 // Output : No leave. |
|
3906 |
|
3907 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
3908 |
|
3909 iSettingsClient->SetExposureMode( 1 ); // night mode should be supported |
|
3910 |
|
3911 iSettingsClient->SetStillFileName( _L("cae_exposure_mode_initialized_1.jpg") ); |
|
3912 |
|
3913 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenInitialized ); |
|
3914 } |
|
3915 |
|
3916 /********************************************************/ |
|
3917 /* VIDEO RECORDING EXPOSURE MODE */ |
|
3918 /********************************************************/ |
|
3919 |
|
3920 void CCaeTestRelease::TestVRExposureMode0L() |
|
3921 { |
|
3922 // Group: Settings. |
|
3923 // |
|
3924 // ID: CAE.SET-VR.SETEXPOSUREMODEL.008 |
|
3925 // |
|
3926 // Action : Test auto exposure mode setting with video recording and viewfinding. |
|
3927 // |
|
3928 // Output : No leave. |
|
3929 |
|
3930 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
3931 |
|
3932 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
3933 |
|
3934 iSettingsClient->SetTimeout( 4000000 ); |
|
3935 |
|
3936 iSettingsClient->SetExposureMode( 0 ); // auto mode should be supported |
|
3937 |
|
3938 #if (MIRAGE_X_PROD3) |
|
3939 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
3940 #else |
|
3941 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
3942 #endif |
|
3943 |
|
3944 iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_0.3gp") ); |
|
3945 |
|
3946 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoPrepared ); |
|
3947 } |
|
3948 |
|
3949 void CCaeTestRelease::TestVRExposureMode1L() |
|
3950 { |
|
3951 // Group: Settings. |
|
3952 // |
|
3953 // ID: CAE.SET-VR.SETEXPOSUREMODEL.009 |
|
3954 // |
|
3955 // Action : Test night exposure mode setting with video recording and viewfinding. |
|
3956 // |
|
3957 // Output : No leave. |
|
3958 |
|
3959 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
3960 |
|
3961 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
3962 |
|
3963 iSettingsClient->SetTimeout( 4000000 ); |
|
3964 |
|
3965 iSettingsClient->SetExposureMode( 1 ); // night mode should be supported |
|
3966 |
|
3967 #if (MIRAGE_X_PROD3) |
|
3968 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
3969 #else |
|
3970 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
3971 #endif |
|
3972 |
|
3973 iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_1.3gp") ); |
|
3974 |
|
3975 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoPrepared ); |
|
3976 } |
|
3977 |
|
3978 void CCaeTestRelease::TestVRExposureModeRecording0L() |
|
3979 { |
|
3980 // Group: Settings. |
|
3981 // |
|
3982 // ID: CAE.SET-VR.SETEXPOSUREMODEL.017 |
|
3983 // |
|
3984 // Action : Test auto exposure mode setting with Video image capture and viewfinding. |
|
3985 // |
|
3986 // Output : No leave. |
|
3987 |
|
3988 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
3989 |
|
3990 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
3991 |
|
3992 iSettingsClient->SetTimeout( 4000000 ); |
|
3993 |
|
3994 iSettingsClient->SetExposureMode( 0 ); // auto mode should be supported |
|
3995 |
|
3996 #if (MIRAGE_X_PROD3) |
|
3997 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
3998 #else |
|
3999 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4000 #endif |
|
4001 |
|
4002 iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_recording_0.3gp") ); |
|
4003 |
|
4004 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoRecording ); |
|
4005 } |
|
4006 |
|
4007 void CCaeTestRelease::TestVRExposureModeRecording1L() |
|
4008 { |
|
4009 // Group: Settings. |
|
4010 // |
|
4011 // ID: CAE.SET-VR.SETEXPOSUREMODEL.018 |
|
4012 // |
|
4013 // Action : Test night exposure mode setting with Video image capture and viewfinding. |
|
4014 // |
|
4015 // Output : No leave. |
|
4016 |
|
4017 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4018 |
|
4019 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4020 |
|
4021 iSettingsClient->SetTimeout( 4000000 ); |
|
4022 |
|
4023 iSettingsClient->SetExposureMode( 1 ); // night mode should be supported |
|
4024 |
|
4025 #if (MIRAGE_X_PROD3) |
|
4026 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4027 #else |
|
4028 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4029 #endif |
|
4030 |
|
4031 iSettingsClient->SetVideoFileName( _L("cae_exposure_mode_recording_1.3gp") ); |
|
4032 |
|
4033 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetExposureModeWhenVideoRecording ); |
|
4034 } |
|
4035 |
|
4036 /********************************************************/ |
|
4037 /* STILL CAPTURE EV COMPENSATION */ |
|
4038 /********************************************************/ |
|
4039 |
|
4040 void CCaeTestRelease::TestSCEvCompensation0L() |
|
4041 { |
|
4042 // Group: Settings |
|
4043 // |
|
4044 // ID: CAE.SET-SC.SETEVCOMP.001 |
|
4045 // |
|
4046 // Action : Test Ev compensation with still image capture and viewfinding. |
|
4047 // |
|
4048 // Output : KErrNotSupported. |
|
4049 |
|
4050 iSettingsClient->SetEvCompensation( 0 ); |
|
4051 |
|
4052 iSettingsClient->SetSnapFileName( _L("cae_evcomp_0.mbm") ); |
|
4053 |
|
4054 iSettingsClient->SetStillFileName( _L("cae_evcomp_0.jpg") ); |
|
4055 |
|
4056 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenStillPrepared ) ); |
|
4057 if( err == KErrNoMemory ) |
|
4058 { |
|
4059 User::Leave( err ); // For memory test |
|
4060 } |
|
4061 |
|
4062 assertL(err == KErrNotSupported); |
|
4063 } |
|
4064 |
|
4065 void CCaeTestRelease::TestSCEvCompensationMaxL() |
|
4066 { |
|
4067 // Group: Settings |
|
4068 // |
|
4069 // ID: CAE.SET-SC.SETEVCOMP.002 |
|
4070 // |
|
4071 // Action : Test Ev compensation with still image capture and viewfinding. |
|
4072 // |
|
4073 // Output : KErrNotSupported. |
|
4074 |
|
4075 TCamAppEngineInfo info; |
|
4076 iSettingsClient->GetInfo(info); |
|
4077 iSettingsClient->SetEvCompensation( info.iMaxEvCompensation ); |
|
4078 |
|
4079 iSettingsClient->SetSnapFileName( _L("cae_evcomp_max.mbm") ); |
|
4080 |
|
4081 iSettingsClient->SetStillFileName( _L("cae_evcomp_max.jpg") ); |
|
4082 |
|
4083 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenStillPrepared ) ); |
|
4084 if( err == KErrNoMemory ) |
|
4085 { |
|
4086 User::Leave( err ); // For memory test |
|
4087 } |
|
4088 |
|
4089 assertL(err == KErrNotSupported); |
|
4090 } |
|
4091 |
|
4092 void CCaeTestRelease::TestSCEvCompensationMinL() |
|
4093 { |
|
4094 // Group: Settings |
|
4095 // |
|
4096 // ID: CAE.SET-SC.SETEVCOMP.003 |
|
4097 // |
|
4098 // Action : Test Ev compensation with still image capture and viewfinding. |
|
4099 // |
|
4100 // Output : KErrNotSupported. |
|
4101 |
|
4102 TCamAppEngineInfo info; |
|
4103 iSettingsClient->GetInfo(info); |
|
4104 iSettingsClient->SetEvCompensation( info.iMinEvCompensation ); |
|
4105 |
|
4106 iSettingsClient->SetSnapFileName( _L("cae_evcomp_min.mbm") ); |
|
4107 |
|
4108 iSettingsClient->SetStillFileName( _L("cae_evcomp_min.jpg") ); |
|
4109 |
|
4110 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenStillPrepared ) ); |
|
4111 if( err == KErrNoMemory ) |
|
4112 { |
|
4113 User::Leave( err ); // For memory test |
|
4114 } |
|
4115 |
|
4116 assertL(err == KErrNotSupported); |
|
4117 } |
|
4118 |
|
4119 |
|
4120 void CCaeTestRelease::TestSCEvCompensationInitialized0L() |
|
4121 { |
|
4122 // Group: Settings |
|
4123 // |
|
4124 // ID: CAE.SET-SC.SETEVCOMP.004 |
|
4125 // |
|
4126 // Action : Test Ev compensation with still image capture and viewfinding. |
|
4127 // |
|
4128 // Output : KErrNotSupported. |
|
4129 |
|
4130 iSettingsClient->SetEvCompensation( 0 ); |
|
4131 |
|
4132 iSettingsClient->SetSnapFileName( _L("cae_evcomp_initialized_0.mbm") ); |
|
4133 |
|
4134 iSettingsClient->SetStillFileName( _L("cae_evcomp_initialized_0.jpg") ); |
|
4135 |
|
4136 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenInitialized ) ); |
|
4137 if( err == KErrNoMemory ) |
|
4138 { |
|
4139 User::Leave( err ); // For memory test |
|
4140 } |
|
4141 |
|
4142 assertL(err == KErrNotSupported); |
|
4143 } |
|
4144 |
|
4145 void CCaeTestRelease::TestSCEvCompensationInitializedMaxL() |
|
4146 { |
|
4147 // Group: Settings |
|
4148 // |
|
4149 // ID: CAE.SET-SC.SETEVCOMP.005 |
|
4150 // |
|
4151 // Action : Test Ev compensation with still image capture and viewfinding. |
|
4152 // |
|
4153 // Output : KErrNotSupported. |
|
4154 |
|
4155 TCamAppEngineInfo info; |
|
4156 iSettingsClient->GetInfo(info); |
|
4157 iSettingsClient->SetEvCompensation( info.iMaxEvCompensation ); |
|
4158 |
|
4159 iSettingsClient->SetSnapFileName( _L("cae_evcomp_initilized_max.mbm") ); |
|
4160 |
|
4161 iSettingsClient->SetStillFileName( _L("cae_evcomp_initilized_max.jpg") ); |
|
4162 |
|
4163 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenInitialized ) ); |
|
4164 if( err == KErrNoMemory ) |
|
4165 { |
|
4166 User::Leave( err ); // For memory test |
|
4167 } |
|
4168 |
|
4169 assertL(err == KErrNotSupported); |
|
4170 } |
|
4171 |
|
4172 void CCaeTestRelease::TestSCEvCompensationInitializedMinL() |
|
4173 { |
|
4174 // Group: Settings |
|
4175 // |
|
4176 // ID: CAE.SET-SC.SETEVCOMP.006 |
|
4177 // |
|
4178 // Action : Test Ev compensation with still image capture and viewfinding. |
|
4179 // |
|
4180 // Output : KErrNotSupported. |
|
4181 |
|
4182 TCamAppEngineInfo info; |
|
4183 iSettingsClient->GetInfo(info); |
|
4184 iSettingsClient->SetEvCompensation( info.iMinEvCompensation ); |
|
4185 |
|
4186 iSettingsClient->SetSnapFileName( _L("cae_evcomp_initialized_min.mbm") ); |
|
4187 |
|
4188 iSettingsClient->SetStillFileName( _L("cae_evcomp_initialized_min.jpg") ); |
|
4189 |
|
4190 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenInitialized ) ); |
|
4191 if( err == KErrNoMemory ) |
|
4192 { |
|
4193 User::Leave( err ); // For memory test |
|
4194 } |
|
4195 |
|
4196 assertL(err == KErrNotSupported); |
|
4197 } |
|
4198 |
|
4199 void CCaeTestRelease::TestSCEvCompensationInitializedInvalidL() |
|
4200 { |
|
4201 // Group: Settings |
|
4202 // |
|
4203 // ID: CAE.SET-SC.SETEVCOMP.007 |
|
4204 // |
|
4205 // Action : Test Ev compensation with still image capture and viewfinding. |
|
4206 // |
|
4207 // Output : KErrNotSupported. |
|
4208 |
|
4209 TCamAppEngineInfo info; |
|
4210 iSettingsClient->GetInfo(info); |
|
4211 iSettingsClient->SetEvCompensation( info.iMaxEvCompensation + 1 ); |
|
4212 |
|
4213 TRAPD( error, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenInitialized ) ); |
|
4214 if( error == KErrNoMemory ) |
|
4215 { |
|
4216 User::Leave( error ); // For memory test |
|
4217 } |
|
4218 assertL(error == KErrNotSupported); |
|
4219 } |
|
4220 |
|
4221 |
|
4222 |
|
4223 /********************************************************/ |
|
4224 /* VIDEO RECORDING EV COMPENSATION */ |
|
4225 /********************************************************/ |
|
4226 |
|
4227 void CCaeTestRelease::TestVREvCompensationMinL() |
|
4228 { |
|
4229 // Group: Settings |
|
4230 // |
|
4231 // ID: CAE.SET-VR.SETEVCOMP.001 |
|
4232 // |
|
4233 // Action : Test Ev compensation with Video image capture and viewfinding. |
|
4234 // |
|
4235 // Output : KErrNotSupported. |
|
4236 |
|
4237 iSettingsClient->SetTimeout( 4000000 ); |
|
4238 |
|
4239 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4240 |
|
4241 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4242 |
|
4243 TCamAppEngineInfo info; |
|
4244 iSettingsClient->GetInfo(info); |
|
4245 iSettingsClient->SetEvCompensation( info.iMinEvCompensation ); |
|
4246 |
|
4247 #if (MIRAGE_X_PROD3) |
|
4248 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4249 #else |
|
4250 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4251 #endif |
|
4252 |
|
4253 iSettingsClient->SetVideoFileName( _L("cae_evcomp_min.3gp") ); |
|
4254 |
|
4255 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenVideoPrepared ) ); |
|
4256 if( err == KErrNoMemory ) |
|
4257 { |
|
4258 User::Leave( err ); // For memory test |
|
4259 } |
|
4260 |
|
4261 assertL(err == KErrNotSupported); |
|
4262 } |
|
4263 |
|
4264 void CCaeTestRelease::TestVREvCompensationRecordingMaxL() |
|
4265 { |
|
4266 // Group: Settings |
|
4267 // |
|
4268 // ID: CAE.SET-VR.SETEVCOMP.002 |
|
4269 // |
|
4270 // Action : Test Ev compensation with Video image capture and viewfinding. |
|
4271 // |
|
4272 // Output : KErrNotSupported. |
|
4273 |
|
4274 iSettingsClient->SetTimeout( 4000000 ); |
|
4275 |
|
4276 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4277 |
|
4278 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4279 |
|
4280 TCamAppEngineInfo info; |
|
4281 iSettingsClient->GetInfo(info); |
|
4282 iSettingsClient->SetEvCompensation( info.iMaxEvCompensation ); |
|
4283 |
|
4284 #if (MIRAGE_X_PROD3) |
|
4285 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4286 #else |
|
4287 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4288 #endif |
|
4289 |
|
4290 iSettingsClient->SetVideoFileName( _L("cae_evcomp_recording_max.3gp") ); |
|
4291 |
|
4292 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenVideoRecording ) ); |
|
4293 if( err == KErrNoMemory ) |
|
4294 { |
|
4295 User::Leave( err ); // For memory test |
|
4296 } |
|
4297 |
|
4298 assertL(err == KErrNotSupported); |
|
4299 } |
|
4300 |
|
4301 |
|
4302 /* UNUSED |
|
4303 |
|
4304 void CCaeTestRelease::TestVREvCompensation0L() |
|
4305 { |
|
4306 // Group: Settings |
|
4307 // |
|
4308 // ID: CAE.SET-VR.SETEVCOMP.001 |
|
4309 // |
|
4310 // Action : Test Ev compensation with Video image capture and viewfinding. |
|
4311 // |
|
4312 // Output : OK. |
|
4313 |
|
4314 iSettingsClient->SetTimeout( 4000000 ); |
|
4315 |
|
4316 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4317 |
|
4318 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4319 |
|
4320 iSettingsClient->SetEvCompensation( 0 ); |
|
4321 |
|
4322 #if (MIRAGE_X_PROD3) |
|
4323 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4324 #else |
|
4325 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4326 #endif |
|
4327 |
|
4328 iSettingsClient->SetVideoFileName( _L("cae_evcomp_0.3gp") ); |
|
4329 |
|
4330 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenVideoPrepared ); |
|
4331 } |
|
4332 |
|
4333 void CCaeTestRelease::TestVREvCompensationMaxL() |
|
4334 { |
|
4335 // Group: Settings |
|
4336 // |
|
4337 // ID: CAE.SET-VR.SETEVCOMP.002 |
|
4338 // |
|
4339 // Action : Test Ev compensation with Video image capture and viewfinding. |
|
4340 // |
|
4341 // Output : OK. |
|
4342 |
|
4343 iSettingsClient->SetTimeout( 4000000 ); |
|
4344 |
|
4345 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4346 |
|
4347 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4348 |
|
4349 TCamAppEngineInfo info; |
|
4350 iSettingsClient->GetInfo(info); |
|
4351 iSettingsClient->SetEvCompensation( info.iMaxEvCompensation ); |
|
4352 |
|
4353 #if (MIRAGE_X_PROD3) |
|
4354 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4355 #else |
|
4356 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4357 #endif |
|
4358 |
|
4359 iSettingsClient->SetVideoFileName( _L("cae_evcomp_max.3gp") ); |
|
4360 |
|
4361 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenVideoPrepared ); |
|
4362 } |
|
4363 |
|
4364 void CCaeTestRelease::TestVREvCompensationRecording0L() |
|
4365 { |
|
4366 // Group: Settings |
|
4367 // |
|
4368 // ID: CAE.SET-VR.SETEVCOMP.004 |
|
4369 // |
|
4370 // Action : Test Ev compensation with Video image capture and viewfinding. |
|
4371 // |
|
4372 // Output : OK. |
|
4373 |
|
4374 iSettingsClient->SetTimeout( 4000000 ); |
|
4375 |
|
4376 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4377 |
|
4378 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4379 |
|
4380 iSettingsClient->SetEvCompensation( 0 ); |
|
4381 |
|
4382 #if (MIRAGE_X_PROD3) |
|
4383 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4384 #else |
|
4385 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4386 #endif |
|
4387 |
|
4388 iSettingsClient->SetVideoFileName( _L("cae_evcomp_recording_0.3gp") ); |
|
4389 |
|
4390 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenVideoRecording ); |
|
4391 } |
|
4392 |
|
4393 void CCaeTestRelease::TestVREvCompensationRecordingMinL() |
|
4394 { |
|
4395 // Group: Settings |
|
4396 // |
|
4397 // ID: CAE.SET-VR.SETEVCOMP.006 |
|
4398 // |
|
4399 // Action : Test Ev compensation with Video image capture and viewfinding. |
|
4400 // |
|
4401 // Output : OK. |
|
4402 |
|
4403 iSettingsClient->SetTimeout( 4000000 ); |
|
4404 |
|
4405 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4406 |
|
4407 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4408 |
|
4409 TCamAppEngineInfo info; |
|
4410 iSettingsClient->GetInfo(info); |
|
4411 iSettingsClient->SetEvCompensation( info.iMinEvCompensation ); |
|
4412 |
|
4413 #if (MIRAGE_X_PROD3) |
|
4414 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4415 #else |
|
4416 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4417 #endif |
|
4418 |
|
4419 iSettingsClient->SetVideoFileName( _L("cae_evcomp_recording_min.3gp") ); |
|
4420 |
|
4421 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenVideoRecording ); |
|
4422 } |
|
4423 |
|
4424 void CCaeTestRelease::TestVREvCompensationRecordingInvalidL() |
|
4425 { |
|
4426 // Group: Settings |
|
4427 // |
|
4428 // ID: CAE.SET-VR.SETEVCOMP.007 |
|
4429 // |
|
4430 // Action : Test Ev compensation with Video image capture and viewfinding. |
|
4431 // |
|
4432 // Output : OK. |
|
4433 |
|
4434 iSettingsClient->SetTimeout( 4000000 ); |
|
4435 |
|
4436 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4437 |
|
4438 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4439 |
|
4440 TCamAppEngineInfo info; |
|
4441 iSettingsClient->GetInfo(info); |
|
4442 iSettingsClient->SetEvCompensation( info.iMinEvCompensation - 1 ); |
|
4443 |
|
4444 #if (MIRAGE_X_PROD3) |
|
4445 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4446 #else |
|
4447 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4448 #endif |
|
4449 |
|
4450 iSettingsClient->SetVideoFileName( _L("cae_evcomp_recording_invalid.3gp") ); |
|
4451 |
|
4452 TRAPD( error, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetEvCompensationWhenVideoRecording ) ); |
|
4453 assertL(error == KErrNotSupported); |
|
4454 } |
|
4455 |
|
4456 */ |
|
4457 |
|
4458 /********************************************************/ |
|
4459 /* STILL CAPTURE WHITE BALANCE MODE */ |
|
4460 /********************************************************/ |
|
4461 |
|
4462 void CCaeTestRelease::TestSCWhiteBalanceMode0L() |
|
4463 { |
|
4464 // Group: Settings. |
|
4465 // |
|
4466 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.001 |
|
4467 // |
|
4468 // Action : Test white balance setting with still image capture and viewfinding. |
|
4469 // |
|
4470 // Output : No leave. |
|
4471 |
|
4472 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
4473 |
|
4474 iSettingsClient->SetWhiteBalanceMode( 0 ); // auto mode should always be supported |
|
4475 |
|
4476 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_0.jpg") ); |
|
4477 |
|
4478 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenStillPrepared ); |
|
4479 } |
|
4480 |
|
4481 void CCaeTestRelease::TestSCWhiteBalanceModeInitialized0L() |
|
4482 { |
|
4483 // Group: Settings. |
|
4484 // |
|
4485 // ID: CAE.SET-SC.SETWHITEBALANCEMODEL.019 |
|
4486 // |
|
4487 // Action : Test white balance setting with still image capture and viewfinding. |
|
4488 // |
|
4489 // Output : No leave. |
|
4490 |
|
4491 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
4492 |
|
4493 iSettingsClient->SetWhiteBalanceMode( 0 ); // auto mode should always be supported |
|
4494 |
|
4495 iSettingsClient->SetStillFileName( _L("cae_white_balance_mode_initialized_0.jpg") ); |
|
4496 |
|
4497 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenInitialized ); |
|
4498 } |
|
4499 |
|
4500 /********************************************************/ |
|
4501 /* VIDEO RECORDING WHITE BALANCE MODE */ |
|
4502 /********************************************************/ |
|
4503 |
|
4504 void CCaeTestRelease::TestVRWhiteBalanceMode0L() |
|
4505 { |
|
4506 // Group: Settings. |
|
4507 // |
|
4508 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.010 |
|
4509 // |
|
4510 // Action : Test white balance setting with video recording and viewfinding. |
|
4511 // |
|
4512 // Output : No leave. |
|
4513 |
|
4514 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4515 |
|
4516 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4517 |
|
4518 iSettingsClient->SetTimeout( 4000000 ); |
|
4519 |
|
4520 iSettingsClient->SetWhiteBalanceMode( 0 ); // auto mode should always be supported |
|
4521 |
|
4522 #if (MIRAGE_X_PROD3) |
|
4523 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4524 #else |
|
4525 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4526 #endif |
|
4527 |
|
4528 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_0.3gp") ); |
|
4529 |
|
4530 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoPrepared ); |
|
4531 } |
|
4532 |
|
4533 void CCaeTestRelease::TestVRWhiteBalanceModeRecording0L() |
|
4534 { |
|
4535 // Group: Settings. |
|
4536 // |
|
4537 // ID: CAE.SET-VR.SETWHITEBALANCEMODEL.020 |
|
4538 // |
|
4539 // Action : Test white balance setting with Video image capture and viewfinding. |
|
4540 // |
|
4541 // Output : No leave. |
|
4542 |
|
4543 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4544 |
|
4545 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4546 |
|
4547 iSettingsClient->SetTimeout( 4000000 ); |
|
4548 |
|
4549 iSettingsClient->SetWhiteBalanceMode( 0 ); // auto mode should always be supported |
|
4550 |
|
4551 #if (MIRAGE_X_PROD3) |
|
4552 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4553 #else |
|
4554 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4555 #endif |
|
4556 |
|
4557 iSettingsClient->SetVideoFileName( _L("cae_white_balance_mode_recording_0.3gp") ); |
|
4558 |
|
4559 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetWhiteBalanceModeWhenVideoRecording ); |
|
4560 } |
|
4561 |
|
4562 /********************************************************/ |
|
4563 /* STILL CAPTURE CONTRAST */ |
|
4564 /********************************************************/ |
|
4565 |
|
4566 void CCaeTestRelease::TestSCContrast50L() |
|
4567 { |
|
4568 // Group: Settings. |
|
4569 // |
|
4570 // ID: CAE.SET-SC.SETCONTRASTL.001 |
|
4571 // |
|
4572 // Action : Test contrast setting with still image capture and viewfinding. |
|
4573 // |
|
4574 // Output : No leave. |
|
4575 |
|
4576 TCamAppEngineInfo info; |
|
4577 iSettingsClient->GetInfo(info); |
|
4578 |
|
4579 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
4580 |
|
4581 iSettingsClient->SetContrast( 50 ); |
|
4582 |
|
4583 iSettingsClient->SetStillFileName( _L("cae_contrast_50.jpg") ); |
|
4584 |
|
4585 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenStillPrepared ) ); |
|
4586 if( err == KErrNoMemory ) |
|
4587 { |
|
4588 User::Leave( err ); // For memory test |
|
4589 } |
|
4590 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
4591 { |
|
4592 assertL( err == KErrNone ); |
|
4593 } |
|
4594 else |
|
4595 { |
|
4596 assertL( err == KErrNotSupported ); |
|
4597 } |
|
4598 } |
|
4599 |
|
4600 void CCaeTestRelease::TestSCContrastInitialized50L() |
|
4601 { |
|
4602 // Group: Settings. |
|
4603 // |
|
4604 // ID: CAE.SET-SC.SETCONTRASTL.007 |
|
4605 // |
|
4606 // Action : Test contrast setting with still image capture and viewfinding. |
|
4607 // |
|
4608 // Output : No leave. |
|
4609 |
|
4610 TCamAppEngineInfo info; |
|
4611 iSettingsClient->GetInfo(info); |
|
4612 |
|
4613 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
4614 |
|
4615 iSettingsClient->SetContrast( 50 ); |
|
4616 |
|
4617 iSettingsClient->SetStillFileName( _L("cae_contrast_initialized_50.jpg") ); |
|
4618 |
|
4619 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenInitialized ) ); |
|
4620 if( err == KErrNoMemory ) |
|
4621 { |
|
4622 User::Leave( err ); // For memory test |
|
4623 } |
|
4624 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
4625 { |
|
4626 assertL( err == KErrNone ); |
|
4627 } |
|
4628 else |
|
4629 { |
|
4630 assertL( err == KErrNotSupported ); |
|
4631 } |
|
4632 } |
|
4633 |
|
4634 /********************************************************/ |
|
4635 /* STILL CAPTURE BRIGHTNESS */ |
|
4636 /********************************************************/ |
|
4637 |
|
4638 void CCaeTestRelease::TestSCBrightness50L() |
|
4639 { |
|
4640 // Group: Settings. |
|
4641 // |
|
4642 // ID: CAE.SET-SC.SETBRIGHTNESSL.001 |
|
4643 // |
|
4644 // Action : Test brightness setting with still image capture and viewfinding. |
|
4645 // |
|
4646 // Output : No leave. |
|
4647 |
|
4648 TCamAppEngineInfo info; |
|
4649 iSettingsClient->GetInfo(info); |
|
4650 |
|
4651 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
4652 |
|
4653 iSettingsClient->SetBrightness( 50 ); |
|
4654 |
|
4655 iSettingsClient->SetStillFileName( _L("cae_brightness_50.jpg") ); |
|
4656 |
|
4657 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenStillPrepared ) ); |
|
4658 if( err == KErrNoMemory ) |
|
4659 { |
|
4660 User::Leave( err ); // For memory test |
|
4661 } |
|
4662 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
4663 { |
|
4664 assertL( err == KErrNone ); |
|
4665 } |
|
4666 else |
|
4667 { |
|
4668 assertL( err == KErrNotSupported ); |
|
4669 } |
|
4670 } |
|
4671 |
|
4672 void CCaeTestRelease::TestSCBrightnessInitialized50L() |
|
4673 { |
|
4674 // Group: Settings. |
|
4675 // |
|
4676 // ID: CAE.SET-SC.SETBRIGHTNESSL.007 |
|
4677 // |
|
4678 // Action : Test brightness setting with still image capture and viewfinding. |
|
4679 // |
|
4680 // Output : No leave. |
|
4681 |
|
4682 TCamAppEngineInfo info; |
|
4683 iSettingsClient->GetInfo(info); |
|
4684 |
|
4685 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
4686 |
|
4687 iSettingsClient->SetBrightness( 50 ); |
|
4688 |
|
4689 iSettingsClient->SetStillFileName( _L("cae_brightness_initialized_50.jpg") ); |
|
4690 |
|
4691 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenInitialized ) ); |
|
4692 if( err == KErrNoMemory ) |
|
4693 { |
|
4694 User::Leave( err ); // For memory test |
|
4695 } |
|
4696 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
4697 { |
|
4698 assertL( err == KErrNone ); |
|
4699 } |
|
4700 else |
|
4701 { |
|
4702 assertL( err == KErrNotSupported ); |
|
4703 } |
|
4704 } |
|
4705 |
|
4706 /********************************************************/ |
|
4707 /* VIDEO RECORDING CONTRAST */ |
|
4708 /********************************************************/ |
|
4709 |
|
4710 void CCaeTestRelease::TestVRContrast50L() |
|
4711 { |
|
4712 // Group: Settings. |
|
4713 // |
|
4714 // ID: CAE.SET-VR.SETCONTRASTL.008 |
|
4715 // |
|
4716 // Action : Test contrast setting with video recording and viewfinding. |
|
4717 // |
|
4718 // Output : No leave. |
|
4719 |
|
4720 TCamAppEngineInfo info; |
|
4721 iSettingsClient->GetInfo(info); |
|
4722 |
|
4723 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4724 |
|
4725 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4726 |
|
4727 iSettingsClient->SetTimeout( 4000000 ); |
|
4728 |
|
4729 iSettingsClient->SetContrast( 50 ); |
|
4730 |
|
4731 #if (MIRAGE_X_PROD3) |
|
4732 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4733 #else |
|
4734 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4735 #endif |
|
4736 |
|
4737 iSettingsClient->SetVideoFileName( _L("cae_contrast_50.3gp") ); |
|
4738 |
|
4739 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenVideoPrepared ) ); |
|
4740 if( err == KErrNoMemory ) |
|
4741 { |
|
4742 User::Leave( err ); // For memory test |
|
4743 } |
|
4744 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
4745 { |
|
4746 assertL( err == KErrNone ); |
|
4747 } |
|
4748 else |
|
4749 { |
|
4750 assertL( err == KErrNotSupported ); |
|
4751 } |
|
4752 } |
|
4753 |
|
4754 void CCaeTestRelease::TestVRContrastRecording50L() |
|
4755 { |
|
4756 // Group: Settings. |
|
4757 // |
|
4758 // ID: CAE.SET-VR.SETCONTRASTL.014 |
|
4759 // |
|
4760 // Action : Test contrast setting with Video image capture and viewfinding. |
|
4761 // |
|
4762 // Output : No leave. |
|
4763 |
|
4764 TCamAppEngineInfo info; |
|
4765 iSettingsClient->GetInfo(info); |
|
4766 |
|
4767 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4768 |
|
4769 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4770 |
|
4771 iSettingsClient->SetTimeout( 4000000 ); |
|
4772 |
|
4773 iSettingsClient->SetContrast( 50 ); |
|
4774 |
|
4775 #if (MIRAGE_X_PROD3) |
|
4776 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4777 #else |
|
4778 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4779 #endif |
|
4780 |
|
4781 iSettingsClient->SetVideoFileName( _L("cae_contrast_recording_50.3gp") ); |
|
4782 |
|
4783 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetContrastWhenVideoRecording ) ); |
|
4784 if( err == KErrNoMemory ) |
|
4785 { |
|
4786 User::Leave( err ); // For memory test |
|
4787 } |
|
4788 if ( TCameraInfo::EContrastSupported & info.iOptionsSupported ) |
|
4789 { |
|
4790 assertL( err == KErrNone ); |
|
4791 } |
|
4792 else |
|
4793 { |
|
4794 assertL( err == KErrNotSupported ); |
|
4795 } |
|
4796 } |
|
4797 |
|
4798 /********************************************************/ |
|
4799 /* VIDEO RECORDING BRIGHTNESS */ |
|
4800 /********************************************************/ |
|
4801 |
|
4802 void CCaeTestRelease::TestVRBrightness50L() |
|
4803 { |
|
4804 // Group: Settings. |
|
4805 // |
|
4806 // ID: CAE.SET-VR.SETBRIGHTNESSL.008 |
|
4807 // |
|
4808 // Action : Test brightness setting with video recording and viewfinding. |
|
4809 // |
|
4810 // Output : No leave. |
|
4811 |
|
4812 TCamAppEngineInfo info; |
|
4813 iSettingsClient->GetInfo(info); |
|
4814 |
|
4815 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4816 |
|
4817 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4818 |
|
4819 iSettingsClient->SetTimeout( 4000000 ); |
|
4820 |
|
4821 iSettingsClient->SetBrightness( 50 ); |
|
4822 |
|
4823 #if (MIRAGE_X_PROD3) |
|
4824 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4825 #else |
|
4826 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4827 #endif |
|
4828 |
|
4829 iSettingsClient->SetVideoFileName( _L("cae_brightness_50.3gp") ); |
|
4830 |
|
4831 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenVideoPrepared ) ); |
|
4832 if( err == KErrNoMemory ) |
|
4833 { |
|
4834 User::Leave( err ); // For memory test |
|
4835 } |
|
4836 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
4837 { |
|
4838 assertL( err == KErrNone ); |
|
4839 } |
|
4840 else |
|
4841 { |
|
4842 assertL( err == KErrNotSupported ); |
|
4843 } |
|
4844 } |
|
4845 |
|
4846 void CCaeTestRelease::TestVRBrightnessRecording50L() |
|
4847 { |
|
4848 // Group: Settings. |
|
4849 // |
|
4850 // ID: CAE.SET-VR.SETBRIGHTNESSL.014 |
|
4851 // |
|
4852 // Action : Test brightness setting with Video image capture and viewfinding. |
|
4853 // |
|
4854 // Output : No leave. |
|
4855 |
|
4856 TCamAppEngineInfo info; |
|
4857 iSettingsClient->GetInfo(info); |
|
4858 |
|
4859 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4860 |
|
4861 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4862 |
|
4863 iSettingsClient->SetTimeout( 4000000 ); |
|
4864 |
|
4865 iSettingsClient->SetBrightness( 50 ); |
|
4866 |
|
4867 #if (MIRAGE_X_PROD3) |
|
4868 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4869 #else |
|
4870 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4871 #endif |
|
4872 |
|
4873 iSettingsClient->SetVideoFileName( _L("cae_brightness_recording_50.3gp") ); |
|
4874 |
|
4875 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetBrightnessWhenVideoRecording ) ); |
|
4876 if( err == KErrNoMemory ) |
|
4877 { |
|
4878 User::Leave( err ); // For memory test |
|
4879 } |
|
4880 if ( TCameraInfo::EBrightnessSupported & info.iOptionsSupported ) |
|
4881 { |
|
4882 assertL( err == KErrNone ); |
|
4883 } |
|
4884 else |
|
4885 { |
|
4886 assertL( err == KErrNotSupported ); |
|
4887 } |
|
4888 } |
|
4889 |
|
4890 /********************************************************/ |
|
4891 /* VIDEO RECORDING CLIP MAX SIZE */ |
|
4892 /********************************************************/ |
|
4893 |
|
4894 void CCaeTestRelease::TestVideoClipMaxSize10000L() |
|
4895 { |
|
4896 // Group: Settings. |
|
4897 // |
|
4898 //ID: CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.002 |
|
4899 // |
|
4900 // Action : Test video clip max size setting with recording. |
|
4901 // |
|
4902 // Output : Leave. |
|
4903 |
|
4904 iSettingsClient->SetOpMode( CCaeTestSettingsClient::EClientOpModeVideo ); |
|
4905 |
|
4906 iSettingsClient->SetTimeout( 20000000 ); |
|
4907 |
|
4908 iSettingsClient->SetVideoQualityLevelIndex( 0 ); |
|
4909 |
|
4910 iSettingsClient->SetVideoClipMaxSize( 10000 ); |
|
4911 |
|
4912 #if (MIRAGE_X_PROD3) |
|
4913 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
4914 #else |
|
4915 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
4916 #endif |
|
4917 |
|
4918 iSettingsClient->SetVideoFileName( _L("cae_clip_max_size_10000.3gp") ); |
|
4919 |
|
4920 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetClipMaxSizeWhenVideoPrepared ) ); |
|
4921 if( err == KErrNoMemory ) |
|
4922 { |
|
4923 User::Leave( err ); // For memory test |
|
4924 } |
|
4925 assertL( err == KErrCompletion ); |
|
4926 } |
|
4927 |
|
4928 /********************************************************/ |
|
4929 /* CANCEL CAPTURE STILL */ |
|
4930 /********************************************************/ |
|
4931 |
|
4932 void CCaeTestRelease::TestCancelCaptureStillL() |
|
4933 { |
|
4934 // ID: CAE.SC.CANCELCAPTURESTILL.001 |
|
4935 // |
|
4936 // Group: Capture |
|
4937 // |
|
4938 // Action : Cancel on-going still image capture request, |
|
4939 // when already prepared. |
|
4940 // |
|
4941 // Output : OK. |
|
4942 |
|
4943 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
4944 |
|
4945 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureAndCancelStill ); |
|
4946 |
|
4947 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
4948 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
4949 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
4950 assertL( iStatesClient->CountStillImageReady() == 0 ); |
|
4951 } |
|
4952 |
|
4953 /********************************************************/ |
|
4954 /* GET QUALITY INDEX */ |
|
4955 /********************************************************/ |
|
4956 |
|
4957 void CCaeTestRelease::TestGetStillQualityIndexWhenEngineInitializedL() |
|
4958 { |
|
4959 // ID: CAE.SC.GETSTILLQUALITYINDEX.001 |
|
4960 // |
|
4961 // Group: Capture |
|
4962 // |
|
4963 // Action : Get still quality index, when engine is initialized. |
|
4964 // |
|
4965 // Output : OK. |
|
4966 |
|
4967 iStatesClient->SetStillQualityLevelIndex( 1 ); |
|
4968 |
|
4969 iStatesClient->RunTestActionL( CCaeTestStatesClient::EGetStillQualityIndexWhenEngineInitialized ); |
|
4970 } |
|
4971 |
|
4972 void CCaeTestRelease::TestGetStillQualityIndexWhenPreparedL() |
|
4973 { |
|
4974 // ID: CAE.SC.GETSTILLQUALITYINDEX.002 |
|
4975 // |
|
4976 // Group: Capture |
|
4977 // |
|
4978 // Action : Get still quality index, when still image capture is prepared. |
|
4979 // |
|
4980 // Output : OK. |
|
4981 |
|
4982 iStatesClient->SetStillQualityLevelIndex( 1 ); |
|
4983 |
|
4984 iStatesClient->RunTestActionL( CCaeTestStatesClient::EGetStillQualityIndexWhenPrepared ); |
|
4985 } |
|
4986 |
|
4987 void CCaeTestRelease::TestGetVideoQualityIndexWhenEngineInitializedL() |
|
4988 { |
|
4989 // Group: Video. |
|
4990 // |
|
4991 // ID: CAE.VR.GETVIDEOQUALITYINDEX.001 |
|
4992 // |
|
4993 // Action : Get video quality index, when engine is initialized. |
|
4994 // |
|
4995 // Output : No leave. |
|
4996 |
|
4997 iStatesClient->SetTimeout( 1000000 ); |
|
4998 |
|
4999 iStatesClient->SetVideoQualityLevelIndex( 1 ); |
|
5000 |
|
5001 iStatesClient->RunTestActionL( CCaeTestStatesClient::EGetVideoQualityIndexWhenEngineInitialized ); |
|
5002 } |
|
5003 |
|
5004 void CCaeTestRelease::TestGetVideoQualityIndexWhenPreparedL() |
|
5005 { |
|
5006 // Group: Video. |
|
5007 // |
|
5008 // ID: CAE.VR.GETVIDEOQUALITYINDEX.002 |
|
5009 // |
|
5010 // Action : Get video quality index, when video recording is prepared. |
|
5011 // |
|
5012 // Output : No leave. |
|
5013 |
|
5014 iStatesClient->SetTimeout( 1000000 ); |
|
5015 |
|
5016 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
5017 |
|
5018 iStatesClient->RunTestActionL( CCaeTestStatesClient::EGetVideoQualityIndexWhenPrepared ); |
|
5019 } |
|
5020 |
|
5021 /********************************************************/ |
|
5022 /* REMAINING VIDEO RECORDING TIME */ |
|
5023 /********************************************************/ |
|
5024 |
|
5025 void CCaeTestRelease::TestRemainingTimeWhenVideoPreparedL() |
|
5026 { |
|
5027 // Group: Video. |
|
5028 // |
|
5029 // ID: CAE.VR.REMAININGVIDEORECORDINGTIME.001 |
|
5030 // |
|
5031 // Action : Get RemainingVideoRecordingTime, when video recording is prepared. |
|
5032 // |
|
5033 // Output : No leave. |
|
5034 |
|
5035 iStatesClient->RunTestActionL( CCaeTestStatesClient::ERemainingTimeWhenVideoPrepared ); |
|
5036 } |
|
5037 |
|
5038 /********************************************************/ |
|
5039 /* PREPARE AUDIO BIT RATE AND RECORD VIDEO */ |
|
5040 /********************************************************/ |
|
5041 |
|
5042 void CCaeTestRelease::TestPrepareAudioBitRateVR5000L() |
|
5043 { |
|
5044 // ID: CAE.VR.PREPAREAUDIOBITRATEANDRECORDVIDEO.001 |
|
5045 // |
|
5046 // Group: Record |
|
5047 // |
|
5048 // Action : To ensure that the implementation is compatible with camcorder plug-in. |
|
5049 // |
|
5050 // Output : OK. |
|
5051 |
|
5052 iStatesClient->SetTimeout( 4000000 ); |
|
5053 |
|
5054 TSize sizeQcif( KImgWidthQCIF, KImgHeightQCIF ); |
|
5055 |
|
5056 iStatesClient->SetVideoFrameSize( sizeQcif ); |
|
5057 iStatesClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
5058 iStatesClient->SetVideoBitRate( TInt( 25000 ) ); |
|
5059 iStatesClient->SetAudioBitRate( TInt( 5000 ) ); |
|
5060 |
|
5061 #if (MIRAGE_X_PROD3) |
|
5062 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
5063 #else |
|
5064 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
5065 #endif |
|
5066 |
|
5067 iStatesClient->SetVideoFileName( _L("cae_subqcif_AudioBitRate_5000.3gp") ); |
|
5068 |
|
5069 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAudioBrAndRecordVideo ); |
|
5070 |
|
5071 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5072 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
5073 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
5074 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
5075 } |
|
5076 |
|
5077 |
|
5078 /************************************************************************/ |
|
5079 /* STILL AND STILL BURST CAPTURE - snap-image creation switched off */ |
|
5080 /************************************************************************/ |
|
5081 |
|
5082 void CCaeTestRelease::TestCaptureVga16M_NoSnapL() |
|
5083 { |
|
5084 // ID: CAE.SC.CAPTURESTILL.VGA16M.015 |
|
5085 // |
|
5086 // Group: Capture |
|
5087 // |
|
5088 // Action : Test to setup still capturing and capture VGA 16M |
|
5089 // image when initialization is done. |
|
5090 // Snap image creation switched off. |
|
5091 // |
|
5092 // Output : OK. |
|
5093 |
|
5094 iStatesClient->SetSnapImageCreation( EFalse ); |
|
5095 |
|
5096 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
5097 |
|
5098 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
5099 |
|
5100 iStatesClient->SetStillFrameSize( sizeVga ); |
|
5101 |
|
5102 // iStatesClient->SetStillFileName( _L("cae_vga16M_NoSnap.mbm") ); |
|
5103 |
|
5104 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
5105 |
|
5106 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5107 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5108 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
5109 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5110 } |
|
5111 |
|
5112 |
|
5113 void CCaeTestRelease::TestCaptureQualityLevel0_NoSnapL() |
|
5114 { |
|
5115 // ID: CAE.SC.CAPTURESTILL.JPEGVGA90.016 |
|
5116 // |
|
5117 // Group: Capture |
|
5118 // |
|
5119 // Action : Test to prepare still capturing and capture quality level 0 |
|
5120 // image when initialization is done and viewfinder is running. |
|
5121 // Snap image creation switched off. |
|
5122 // |
|
5123 // Output : OK. |
|
5124 |
|
5125 iStatesClient->SetSnapImageCreation( EFalse ); |
|
5126 |
|
5127 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
5128 |
|
5129 // iStatesClient->SetStillFileName( _L("cae_ql_0_vga90_NoSnap.jpg") ); |
|
5130 |
|
5131 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVf ); |
|
5132 |
|
5133 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5134 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5135 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
5136 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5137 } |
|
5138 |
|
5139 |
|
5140 void CCaeTestRelease::TestCaptureVgaExif_NoSnapL() |
|
5141 { |
|
5142 // ID: CAE.SC.CAPTURESTILL.VGA.EXIF.017 |
|
5143 // |
|
5144 // Group: Capture |
|
5145 // |
|
5146 // Action : Test to prepare still capturing and capture Vga Exif |
|
5147 // image when initialization is done and viewfinder is running. |
|
5148 // Snap image creation switched off. |
|
5149 // |
|
5150 // Output : OK. |
|
5151 |
|
5152 iStatesClient->SetSnapImageCreation( EFalse ); |
|
5153 |
|
5154 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
5155 |
|
5156 iStatesClient->SetStillFrameSize( sizeVga ); |
|
5157 |
|
5158 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
5159 |
|
5160 // iStatesClient->SetStillFileName( _L("cae_vga_exif_NoSnap.jpg") ); |
|
5161 |
|
5162 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareCaptureStillStartAndStopVfExif ); |
|
5163 |
|
5164 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5165 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5166 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
5167 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5168 } |
|
5169 |
|
5170 |
|
5171 void CCaeTestRelease::TestCaptureStillBurst3_NoSnapL() |
|
5172 { |
|
5173 // ID: CAE.SC.CAPTURESTILLBURST.3.007 |
|
5174 // |
|
5175 // Group: Capture |
|
5176 // |
|
5177 // Action : Test to prepare still capturing burst mode and capture three |
|
5178 // images in a burst when initialization is done. |
|
5179 // Snap image creation switched off. |
|
5180 // |
|
5181 // Output : OK. |
|
5182 |
|
5183 const TInt KStillBurstLength = 3; |
|
5184 |
|
5185 iStatesClient->SetSnapImageCreation( EFalse ); |
|
5186 |
|
5187 iStatesClient->SetStillQualityLevelIndex( 0 ); |
|
5188 |
|
5189 // iStatesClient->SetStillFileName( _L("cae_vga16M_burst3_NoSnap.jpg") ); |
|
5190 |
|
5191 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
5192 |
|
5193 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurst ); |
|
5194 |
|
5195 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5196 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5197 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
5198 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
5199 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
5200 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
5201 } |
|
5202 |
|
5203 |
|
5204 void CCaeTestRelease::TestSpecPrepCaptureStillBurst3_NoSnapL() |
|
5205 { |
|
5206 // ID: CAE.SC.CAPTURESTILLBURST.3.008 |
|
5207 // |
|
5208 // Group: Capture |
|
5209 // |
|
5210 // Action : Test to prepare still capturing burst mode and capture three |
|
5211 // images in a burst when initialization is done. |
|
5212 // Preparation is done using explicitly specified image format parameters. |
|
5213 // Snap image creation switched off. |
|
5214 // |
|
5215 // Output : OK. |
|
5216 |
|
5217 const TInt KStillBurstLength = 3; |
|
5218 |
|
5219 iStatesClient->SetSnapImageCreation( EFalse ); |
|
5220 |
|
5221 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
5222 |
|
5223 TSize sizevga( KImgWidthVGA, KImgHeightVGA ); |
|
5224 |
|
5225 iStatesClient->SetStillFrameSize( sizevga ); |
|
5226 |
|
5227 // iStatesClient->SetStillFileName( _L("cae_qqvga16M_spburst3_NoSnap.mbm") ); |
|
5228 |
|
5229 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
5230 |
|
5231 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecPrepAndCaptureStillBurst ); |
|
5232 |
|
5233 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5234 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5235 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
5236 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
5237 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
5238 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
5239 } |
|
5240 |
|
5241 |
|
5242 void CCaeTestRelease::TestCaptureStillBurstExif3_NoSnapL() |
|
5243 { |
|
5244 // ID: CAE.SC.CAPTURESTILLBURSTEXIF.3.004 |
|
5245 // |
|
5246 // Group: Capture |
|
5247 // |
|
5248 // Action : Test to prepare still capturing burst mode and capture three |
|
5249 // VGA Exif images in a burst when initialization is done. |
|
5250 // Snap image creation switched off. |
|
5251 // |
|
5252 // Output : OK. |
|
5253 |
|
5254 const TInt KStillBurstLength = 3; |
|
5255 |
|
5256 iStatesClient->SetSnapImageCreation( EFalse ); |
|
5257 |
|
5258 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
5259 |
|
5260 iStatesClient->SetStillFrameSize( sizeVga ); |
|
5261 |
|
5262 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
5263 |
|
5264 // iStatesClient->SetStillFileName( _L("cae_burst3_exif_NoSnap.jpg") ); |
|
5265 |
|
5266 iStatesClient->SetStillBurstLength( KStillBurstLength ); |
|
5267 |
|
5268 iStatesClient->RunTestActionL( CCaeTestStatesClient::EPrepareAndCaptureStillBurstExif ); |
|
5269 |
|
5270 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5271 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5272 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
5273 assertL( iStatesClient->CountStillImageReady() == KStillBurstLength ); |
|
5274 |
|
5275 assertL( iStatesClient->CountStillBurstCaptureMoment() == KStillBurstLength ); |
|
5276 assertL( iStatesClient->CountStillBurstComplete() == 1 ); |
|
5277 } |
|
5278 |
|
5279 |
|
5280 void CCaeTestRelease::TestEnumerateCaptureSizesL() |
|
5281 { |
|
5282 // ID: CAE.GEN.ENUMERATE.001 |
|
5283 // |
|
5284 // Group: General |
|
5285 // |
|
5286 // Action : Test to enumerate still capture sizes. Tests the largest image size only. |
|
5287 // |
|
5288 // Output : OK. |
|
5289 |
|
5290 iStatesClient->SetStillFormat( CCamera::EFormatFbsBitmapColor16M ); |
|
5291 |
|
5292 #if (MIRAGE_X_PROD1) |
|
5293 TSize sizeMp1( KImgWidthMP1, KImgHeightMP1 ); |
|
5294 iStatesClient->SetStillFrameSize( sizeMp1 ); |
|
5295 #elif (MIRAGE_X_PROD2) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD3) |
|
5296 TSize sizeMp1M3( KImgWidthMP1M3, KImgHeightMP1M3 ); |
|
5297 iStatesClient->SetStillFrameSize( sizeMp1M3 ); |
|
5298 #elif (MIRAGE_X_PROD7) |
|
5299 TSize sizeMp2( KImgWidthMP2, KImgHeightMP2 ); |
|
5300 iStatesClient->SetStillFrameSize( sizeMp2 ); |
|
5301 #elif (MIRAGE_X_PROD6) || (MIRAGE_X_PROD8) || (MIRAGE_X_PROD9) |
|
5302 TSize sizeMp2( KImgWidthMP2, KImgHeightMP2 ); |
|
5303 iStatesClient->SetStillFrameSize( sizeMp2 ); |
|
5304 #elif (HW_DEVLON) |
|
5305 iStatesClient->SetStillFormat( CCamera::EFormatExif ); |
|
5306 TSize sizeMp3( KImgWidthMP3, KImgHeightMP3 ); |
|
5307 iStatesClient->SetStillFrameSize( sizeMp3 ); |
|
5308 #else |
|
5309 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
5310 iStatesClient->SetStillFrameSize( sizeVga ); |
|
5311 #endif |
|
5312 |
|
5313 // ignore errors if correct resolution was not found |
|
5314 TRAPD( err, iStatesClient->RunTestActionL( CCaeTestStatesClient::EEnumerateCaptureSizes ) ); |
|
5315 |
|
5316 if ( err ) |
|
5317 { |
|
5318 RDebug::Print(_L("CCaeTestRelease::TestEnumerateCaptureSizesL() failed = %d, ignored"), err); |
|
5319 } |
|
5320 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5321 assertL( iStatesClient->CountStillPrepareComplete() == 0 ); |
|
5322 assertL( iStatesClient->CountSnapImageReady() == 0 ); |
|
5323 assertL( iStatesClient->CountStillImageReady() == 0 ); |
|
5324 } |
|
5325 |
|
5326 |
|
5327 void CCaeTestRelease::TestSetJpegQuality50L() |
|
5328 { |
|
5329 // ID: CAE.SET-SC.SETJPEGQUALITY.001 |
|
5330 // |
|
5331 // Group: Capture |
|
5332 // |
|
5333 // Action : Test to prepare still capturing and capture quality level 0 |
|
5334 // image when initialization is done and viewfinder is running. |
|
5335 // |
|
5336 // Output : OK. |
|
5337 |
|
5338 iSettingsClient->SetStillFormat( CCamera::EFormatJpeg ); |
|
5339 |
|
5340 iSettingsClient->SetStillCompressionQuality( 50 ); |
|
5341 |
|
5342 TSize sizeVga( KImgWidthVGA, KImgHeightVGA ); |
|
5343 |
|
5344 iSettingsClient->SetStillFrameSize( sizeVga ); |
|
5345 |
|
5346 // iSettingsClient->SetStillFileName( _L("cae_jpeg_quality_setting_50.jpg") ); |
|
5347 |
|
5348 iSettingsClient->RunTestActionL( CCaeTestStatesClient::ESetJpegQualityWhenStillPrepared ); |
|
5349 |
|
5350 assertL( iSettingsClient->CountInitComplete() == 1 ); |
|
5351 assertL( iSettingsClient->CountStillPrepareComplete() == 1 ); |
|
5352 assertL( iSettingsClient->CountSnapImageReady() == 1 ); |
|
5353 assertL( iSettingsClient->CountStillImageReady() == 1 ); |
|
5354 } |
|
5355 |
|
5356 void CCaeTestRelease::TestSCCustomInterfaceL() |
|
5357 { |
|
5358 // ID: CAE.GEN.CUSTOMINTERFACE.001 |
|
5359 // |
|
5360 // Group: General |
|
5361 // |
|
5362 // Action : Test custom interface with illegal UID values -1, 0 and 1. |
|
5363 // |
|
5364 // Output : Returns 0 with illegal UID values. |
|
5365 |
|
5366 TUid interfaceUid; |
|
5367 |
|
5368 interfaceUid.iUid = -1; |
|
5369 iStatesClient->SetCustomInterfaceUid( interfaceUid ); |
|
5370 iStatesClient->RunTestActionL( CCaeTestStatesClient::EGetCustomInterface ); |
|
5371 assertL( iStatesClient->CustomInterfacePointer() == 0 ); |
|
5372 |
|
5373 interfaceUid.iUid = 0; |
|
5374 iStatesClient->SetCustomInterfaceUid( interfaceUid ); |
|
5375 iStatesClient->RunTestActionL( CCaeTestStatesClient::EGetCustomInterface ); |
|
5376 assertL( iStatesClient->CustomInterfacePointer() == 0 ); |
|
5377 |
|
5378 interfaceUid.iUid = 1; |
|
5379 iStatesClient->SetCustomInterfaceUid( interfaceUid ); |
|
5380 iStatesClient->RunTestActionL( CCaeTestStatesClient::EGetCustomInterface ); |
|
5381 assertL( iStatesClient->CustomInterfacePointer() == 0 ); |
|
5382 } |
|
5383 |
|
5384 /******************************/ |
|
5385 /* FLASH MODE */ |
|
5386 /******************************/ |
|
5387 |
|
5388 void CCaeTestRelease::TestFlashMode0L() |
|
5389 { |
|
5390 // Group: Settings. |
|
5391 // |
|
5392 // ID: CAE.SET-SC.SETFLASHMODEL.001 |
|
5393 // |
|
5394 // Action : Test flash mode setting with still image capture and viewfinding. |
|
5395 // |
|
5396 // Output : No leave. |
|
5397 |
|
5398 const TInt KSetVal = 0; |
|
5399 |
|
5400 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
5401 |
|
5402 iSettingsClient->SetFlashMode( KSetVal ); |
|
5403 |
|
5404 iSettingsClient->SetStillFileName( _L("cae_flash_mode_0.jpg") ); |
|
5405 |
|
5406 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ); |
|
5407 } |
|
5408 |
|
5409 void CCaeTestRelease::TestFlashMode1L() |
|
5410 { |
|
5411 // Group: Settings. |
|
5412 // |
|
5413 // ID: CAE.SET-SC.SETFLASHMODEL.002 |
|
5414 // |
|
5415 // Action : Test flash mode setting with still image capture and viewfinding. |
|
5416 // |
|
5417 // Output : Leave. |
|
5418 |
|
5419 const TInt KSetVal = 1; |
|
5420 |
|
5421 TCamAppEngineInfo info; |
|
5422 iSettingsClient->GetInfo( info ); |
|
5423 |
|
5424 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
5425 |
|
5426 iSettingsClient->SetFlashMode( KSetVal ); |
|
5427 |
|
5428 iSettingsClient->SetStillFileName( _L("cae_flash_mode_1.jpg") ); |
|
5429 |
|
5430 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
5431 if( err == KErrNoMemory ) |
|
5432 { |
|
5433 User::Leave( err ); // For memory test |
|
5434 } |
|
5435 if ( KSetVal & info.iFlashModesSupported ) |
|
5436 { |
|
5437 assertL( err == KErrNone ); |
|
5438 } |
|
5439 else |
|
5440 { |
|
5441 assertL( err == KErrNotSupported ); |
|
5442 } |
|
5443 } |
|
5444 |
|
5445 void CCaeTestRelease::TestFlashMode2L() |
|
5446 { |
|
5447 // Group: Settings. |
|
5448 // |
|
5449 // ID: CAE.SET-SC.SETFLASHMODEL.003 |
|
5450 // |
|
5451 // Action : Test flash mode setting with still image capture and viewfinding. |
|
5452 // |
|
5453 // Output : Leave. |
|
5454 |
|
5455 const TInt KSetVal = 2; |
|
5456 |
|
5457 TCamAppEngineInfo info; |
|
5458 iSettingsClient->GetInfo( info ); |
|
5459 |
|
5460 iSettingsClient->SetStillQualityLevelIndex( 0 ); |
|
5461 |
|
5462 iSettingsClient->SetFlashMode( KSetVal ); |
|
5463 |
|
5464 iSettingsClient->SetStillFileName( _L("cae_flash_mode_2.jpg") ); |
|
5465 |
|
5466 TRAPD( err, iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetFlashModeWhenStillPrepared ) ); |
|
5467 if( err == KErrNoMemory ) |
|
5468 { |
|
5469 User::Leave( err ); // For memory test |
|
5470 } |
|
5471 if ( KSetVal & info.iFlashModesSupported ) |
|
5472 { |
|
5473 assertL( err == KErrNone ); |
|
5474 } |
|
5475 else |
|
5476 { |
|
5477 assertL( err == KErrNotSupported ); |
|
5478 } |
|
5479 } |
|
5480 |
|
5481 void CCaeTestRelease::TestSCColorToneNormalL() |
|
5482 { |
|
5483 // ID: CAE.SET-SC.COLORTONE.001 |
|
5484 // |
|
5485 // Group: General |
|
5486 // |
|
5487 // Action : Test Color Tone interface with ENormal parameter. |
|
5488 // |
|
5489 // Output : OK. |
|
5490 |
|
5491 iStatesClient->SetColorToneValue( MCameraColorToneSettings::ENormal ); |
|
5492 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5493 iStatesClient->SetSnapFileName( _L("cae_snap_colortone_normal1.mbm") ); |
|
5494 iStatesClient->SetStillFileName( _L("cae_colortone_normal.jpg") ); |
|
5495 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorTone ); |
|
5496 assertL( iStatesClient->CustomInterfacePointer() != 0 ); |
|
5497 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5498 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5499 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
5500 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5501 } |
|
5502 |
|
5503 void CCaeTestRelease::TestSCColorToneSepiaL() |
|
5504 { |
|
5505 // ID: CAE.SET-SC.COLORTONE.002 |
|
5506 // |
|
5507 // Group: General |
|
5508 // |
|
5509 // Action : Test Color Tone interface with ESepia parameter. |
|
5510 // |
|
5511 // Output : OK. |
|
5512 |
|
5513 iStatesClient->SetColorToneValue( MCameraColorToneSettings::ESepia ); |
|
5514 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5515 iStatesClient->SetSnapFileName( _L("cae_snap_colortone_sepia.mbm") ); |
|
5516 iStatesClient->SetStillFileName( _L("cae_colortone_sepia.jpg") ); |
|
5517 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorTone ); |
|
5518 assertL( iStatesClient->CustomInterfacePointer() != 0 ); |
|
5519 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5520 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5521 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
5522 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5523 } |
|
5524 |
|
5525 void CCaeTestRelease::TestSCColorToneGrayscaleL() |
|
5526 { |
|
5527 // ID: CAE.SET-SC.COLORTONE.003 |
|
5528 // |
|
5529 // Group: General |
|
5530 // |
|
5531 // Action : Test Color Tone interface with EGrayscale parameter. |
|
5532 // |
|
5533 // Output : OK. |
|
5534 |
|
5535 iStatesClient->SetColorToneValue( MCameraColorToneSettings::EGrayscale ); |
|
5536 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5537 iStatesClient->SetSnapFileName( _L("cae_snap_colortone_grayscale.mbm") ); |
|
5538 iStatesClient->SetStillFileName( _L("cae_colortone_grayscale.jpg") ); |
|
5539 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorTone ); |
|
5540 assertL( iStatesClient->CustomInterfacePointer() != 0 ); |
|
5541 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5542 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5543 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
5544 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5545 } |
|
5546 |
|
5547 void CCaeTestRelease::TestSCColorToneNegativeL() |
|
5548 { |
|
5549 // ID: CAE.SET-SC.COLORTONE.004 |
|
5550 // |
|
5551 // Group: General |
|
5552 // |
|
5553 // Action : Test Color Tone interface with ENegative parameter. |
|
5554 // |
|
5555 // Output : OK. |
|
5556 |
|
5557 iStatesClient->SetColorToneValue( MCameraColorToneSettings::ENegative ); |
|
5558 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5559 iStatesClient->SetSnapFileName( _L("cae_snap_colortone_negative.mbm") ); |
|
5560 iStatesClient->SetStillFileName( _L("cae_colortone_negative.jpg") ); |
|
5561 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorTone ); |
|
5562 assertL( iStatesClient->CustomInterfacePointer() != 0 ); |
|
5563 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5564 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5565 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
5566 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5567 } |
|
5568 |
|
5569 void CCaeTestRelease::TestVRColorToneL() |
|
5570 { |
|
5571 // ID: CAE.SET-VR.COLORTONE.005 |
|
5572 // |
|
5573 // Group: General |
|
5574 // |
|
5575 // Action : Test Color Tone interface with video recording. Test case will start video recording |
|
5576 // and then sets every supported color tone with 5 second interval. Total execution time is |
|
5577 // then with 4 color tones 20 seconds. Test case will report interface failures. Color tone |
|
5578 // fuctionality must be checked manually from .3gp file. |
|
5579 // |
|
5580 // Output : OK. |
|
5581 |
|
5582 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
5583 |
|
5584 #if (MIRAGE_X_PROD3) |
|
5585 iStatesClient->SetVideoCodecSet( 2 ); // 2: AAC audio, MPEG-4 video |
|
5586 #else |
|
5587 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
5588 #endif |
|
5589 |
|
5590 iStatesClient->SetVideoFileName( _L("cae_colortone.3gp") ); |
|
5591 iStatesClient->SetTimeout( 5000000 ); // time for one color, then change |
|
5592 |
|
5593 // this walue is set before exiting |
|
5594 iStatesClient->SetColorToneValue( MCameraColorToneSettings::ENormal ); |
|
5595 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5596 |
|
5597 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorToneVideoRecording ); |
|
5598 |
|
5599 assertL( iStatesClient->CustomInterfacePointer() != 0 ); |
|
5600 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5601 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
5602 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
5603 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
5604 } |
|
5605 |
|
5606 void CCaeTestRelease::TestSCColorToneWrongParams1L() |
|
5607 { |
|
5608 // ID: CAE.SET-SC.COLORTONE.006 |
|
5609 // |
|
5610 // Group: General |
|
5611 // |
|
5612 // Action : Test Color Tone interface with illegal Color Tone parameter 2^31. |
|
5613 // Should leave with code KErrNotSupported. |
|
5614 // |
|
5615 // Output : OK. |
|
5616 |
|
5617 iStatesClient->SetColorToneValue( (MCameraColorToneSettings::TColorTone) 0x80000000 ); |
|
5618 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5619 iStatesClient->SetSnapFileName( _L("cae_snap_colortone_wrong_params.mbm") ); |
|
5620 iStatesClient->SetStillFileName( _L("cae_colortone_wrong_params.jpg") ); |
|
5621 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorToneWrongParams ) ); |
|
5622 if( error == KErrNoMemory ) |
|
5623 { |
|
5624 User::Leave( error ); // For memory test |
|
5625 } |
|
5626 assertL( error == KErrNotSupported ); |
|
5627 } |
|
5628 |
|
5629 void CCaeTestRelease::TestSCColorToneWrongParams2L() |
|
5630 { |
|
5631 // ID: CAE.SET-SC.COLORTONE.007 |
|
5632 // |
|
5633 // Group: General |
|
5634 // |
|
5635 // Action : Test Color Tone interface with illegal Color Tone parameter 0x07. |
|
5636 // Should leave with code KErrArgument. |
|
5637 // |
|
5638 // Output : OK. |
|
5639 |
|
5640 iStatesClient->SetColorToneValue( (MCameraColorToneSettings::TColorTone) 0x07 ); |
|
5641 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5642 iStatesClient->SetSnapFileName( _L("cae_snap_colortone_wrong_params.mbm") ); |
|
5643 iStatesClient->SetStillFileName( _L("cae_colortone_wrong_params.jpg") ); |
|
5644 TRAPD( error, iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorToneWrongParams ) ); |
|
5645 if( error == KErrNoMemory ) |
|
5646 { |
|
5647 User::Leave( error ); // For memory test |
|
5648 } |
|
5649 assertL( error == KErrArgument ); |
|
5650 } |
|
5651 |
|
5652 void CCaeTestRelease::TestSCColorToneReleaseL() |
|
5653 { |
|
5654 // ID: CAE.SET-SC.COLORTONE.008 |
|
5655 // |
|
5656 // Group: General |
|
5657 // |
|
5658 // Action : Test Color Tone interface with ENegative parameter when |
|
5659 // Release() and Reserve() has been used. After Reserve() the default |
|
5660 // values should be set (ENormal) by CameraAPI |
|
5661 // |
|
5662 // Output : OK. |
|
5663 |
|
5664 iStatesClient->SetColorToneValue( MCameraColorToneSettings::ENegative ); |
|
5665 iStatesClient->SetCustomInterfaceUid( KCameraColorToneSettingsUid ); |
|
5666 iStatesClient->SetSnapFileName( _L("cae_snap_colortone_release.mbm") ); |
|
5667 iStatesClient->SetStillFileName( _L("cae_colortone_release.jpg") ); |
|
5668 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetColorToneRelease ); |
|
5669 assertL( iStatesClient->CustomInterfacePointer() != 0 ); |
|
5670 assertL( iStatesClient->CountInitComplete() == 2 ); // reserve() calls once McaeoInitComplete |
|
5671 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5672 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
5673 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5674 } |
|
5675 |
|
5676 /********************************************************/ |
|
5677 /* DISPLAY INDEX */ |
|
5678 /********************************************************/ |
|
5679 |
|
5680 void CCaeTestRelease::TestSetDisplayIndexL() |
|
5681 { |
|
5682 // ID: CAE.SC.SETDISPLAYINDEX.001 |
|
5683 // |
|
5684 // Group: Capture |
|
5685 // |
|
5686 // Action : Set display index to 1 and capture a still image. |
|
5687 // |
|
5688 // Output : No errors. Snap image should be enhanced. |
|
5689 |
|
5690 iStatesClient->SetDisplayIndex( 1 ); |
|
5691 iStatesClient->SetSnapFileName( _L("cae_snap_disp_index_1.mbm") ); |
|
5692 //iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill ); |
|
5693 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESetDisplayIndex ); |
|
5694 } |
|
5695 |
|
5696 /********************************************************/ |
|
5697 /* VIDEO RECORDING ENUMERATE FRAME SIZES */ |
|
5698 /********************************************************/ |
|
5699 |
|
5700 void CCaeTestRelease::TestEnumerateVideoFrameSize001L() |
|
5701 { |
|
5702 // Group: Settings. |
|
5703 // |
|
5704 // ID: CAE.SET-VR.ENUMERATEVIDEOFRAMESIZE.001 |
|
5705 // |
|
5706 // Action : Test that enumerate can be called with correct and incorrect frame sizes |
|
5707 // |
|
5708 // Output : No leave. |
|
5709 |
|
5710 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EEnumerateVideoFrameSize ); |
|
5711 } |
|
5712 |
|
5713 |
|
5714 /********************************************************/ |
|
5715 /* Extension mode test cases */ |
|
5716 /********************************************************/ |
|
5717 |
|
5718 void CCaeTestRelease::TestProcessExtViewFinderFrameReadyL() |
|
5719 { |
|
5720 // Group: still capture/extension mode. |
|
5721 // |
|
5722 // ID: CAE.SC.ProcessExtViewFinderFrameReadyL.001 |
|
5723 // |
|
5724 // Action : Test extension mode ProcessExtViewFinderFrameReadyL normal operation |
|
5725 // |
|
5726 // Output : No leave. |
|
5727 |
|
5728 TSize sizeQqvga( KImgWidthQQVGA, KImgHeightQQVGA ); |
|
5729 iSettingsClient->SetViewFinderSize( sizeQqvga ); |
|
5730 iSettingsClient->SetRunningWithViewFinder( ETrue ); |
|
5731 |
|
5732 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtViewFinderFrameReady ); |
|
5733 } |
|
5734 |
|
5735 void CCaeTestRelease::TestProcessExtSnapImageL() |
|
5736 { |
|
5737 // Group: still capture/extension mode. |
|
5738 // |
|
5739 // ID: CAE.SC.ProcessExtSnapImageL.001 |
|
5740 // |
|
5741 // Action : Test extension mode ProcessExtSnapImageL normal operation |
|
5742 // |
|
5743 // Output : No leave. |
|
5744 |
|
5745 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtSnapImage ); |
|
5746 } |
|
5747 |
|
5748 void CCaeTestRelease::TestProcessExtCapturedImageL() |
|
5749 { |
|
5750 // Group: still capture/extension mode. |
|
5751 // |
|
5752 // ID: CAE.SC.ProcessExtCapturedImageL.001 |
|
5753 // |
|
5754 // Action : Test extension mode ProcessExtCapturedImageL normal operation with HBufC8 param |
|
5755 // |
|
5756 // Output : No leave. |
|
5757 |
|
5758 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCapturedImage ); |
|
5759 } |
|
5760 |
|
5761 |
|
5762 void CCaeTestRelease::TestProcessExtCapturedImage2L() |
|
5763 { |
|
5764 // Group: still capture/extension mode. |
|
5765 // |
|
5766 // ID: CAE.SC.ProcessExtCapturedImageL.002 |
|
5767 // |
|
5768 // Action : Test extension mode ProcessExtCapturedImageL normal operation with TDesC8 param |
|
5769 // Test that Relese() can be called |
|
5770 // |
|
5771 // Output : No leave. |
|
5772 |
|
5773 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCapturedImageTDesC8 ); |
|
5774 } |
|
5775 |
|
5776 void CCaeTestRelease::TestProcessExtCapturedImage3L() |
|
5777 { |
|
5778 // Group: still capture/extension mode. |
|
5779 // |
|
5780 // ID: CAE.SC.ProcessExtCapturedImageL.003 |
|
5781 // |
|
5782 // Action : Test extension mode ProcessExtCapturedImageL normal operation with CFbsBitmap param |
|
5783 // |
|
5784 // Output : No leave. |
|
5785 |
|
5786 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCapturedImageCFbsBitmap ); |
|
5787 } |
|
5788 |
|
5789 void CCaeTestRelease::TestProcessExtCapturedImage4L() |
|
5790 { |
|
5791 // Group: still capture/extension mode. |
|
5792 // |
|
5793 // ID: CAE.SC.ProcessExtCapturedImageL.004 |
|
5794 // |
|
5795 // Action : Test extension mode ProcessExtCapturedImageL normal operation with HBufC8 param |
|
5796 // |
|
5797 // Output : No leave. |
|
5798 |
|
5799 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCapturedImageNoInit ); |
|
5800 } |
|
5801 |
|
5802 void CCaeTestRelease::TestProcessExtCancelL() |
|
5803 { |
|
5804 // Group: still capture/extension mode. |
|
5805 // |
|
5806 // ID: CAE.SC.ProcessExtCancel.001 |
|
5807 // |
|
5808 // Action : Test extension mode ProcessExtCancel call before extension interface is used |
|
5809 // |
|
5810 // Output : No leave. |
|
5811 |
|
5812 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCancel ); |
|
5813 } |
|
5814 |
|
5815 |
|
5816 void CCaeTestRelease::TestProcessExtCancel2L() |
|
5817 { |
|
5818 // Group: still capture/extension mode. |
|
5819 // |
|
5820 // ID: CAE.SC.ProcessExtCancel.002 |
|
5821 // |
|
5822 // Action : Test extension mode ProcessExtCancel normal operation. Cancell is called when extension |
|
5823 // processing is in progress |
|
5824 // |
|
5825 // Output : No leave. |
|
5826 |
|
5827 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCancel2 ); |
|
5828 } |
|
5829 |
|
5830 void CCaeTestRelease::TestProcessExtCapturedImageBurstL() |
|
5831 { |
|
5832 // Group: still capture/extension mode. |
|
5833 // |
|
5834 // ID: CAE.SC.ProcessExtCapturedImageBurstL.001 |
|
5835 // |
|
5836 // Action : Test extension mode ProcessExtCapturedImageL normal burst operation with HBufC8 param |
|
5837 // One image is captured and then it is sent as 6 burst images to extension handling. |
|
5838 // Also snap images are sent 6 times. |
|
5839 // |
|
5840 // Output : No leave. |
|
5841 |
|
5842 iSettingsClient->SetStillBurstLength( 6 ); |
|
5843 iSettingsClient->SetStillFormat( CCamera::EFormatExif ); |
|
5844 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCapturedImageBurst ); |
|
5845 assertL( iSettingsClient->CountStillImageReady() == 6 ); |
|
5846 assertL( iSettingsClient->CountSnapImageReady() == 6 ); |
|
5847 assertL( iSettingsClient->CountStillBurstComplete() == 1 ); |
|
5848 } |
|
5849 |
|
5850 void CCaeTestRelease::TestProcessExtCapturedImageBurst2L() |
|
5851 { |
|
5852 // Group: still capture/extension mode. |
|
5853 // |
|
5854 // ID: CAE.SC.ProcessExtCapturedImageBurstL.002 |
|
5855 // |
|
5856 // Action : Test extension mode ProcessExtCapturedImageL normal burst operation with TDesC8 param |
|
5857 // One image is captured and then it is sent as 6 burst images to extension handling |
|
5858 // Also snap images are sent 6 times. |
|
5859 // |
|
5860 // Output : No leave. |
|
5861 |
|
5862 iSettingsClient->SetStillBurstLength( 6 ); |
|
5863 iSettingsClient->SetStillFormat( CCamera::EFormatExif ); |
|
5864 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EProcessExtCapturedImageBurstTDesC8 ); |
|
5865 assertL( iSettingsClient->CountSnapImageReady() == 6 ); |
|
5866 assertL( iSettingsClient->CountStillImageReady() == 6 ); |
|
5867 assertL( iSettingsClient->CountStillBurstComplete() == 1 ); |
|
5868 } |
|
5869 |
|
5870 void CCaeTestRelease::TestInstalledExtensionListL() |
|
5871 { |
|
5872 // Group: still capture/extension mode. |
|
5873 // |
|
5874 // ID: CAE.SC.InstalledExtensionList.001 |
|
5875 // |
|
5876 // Action : Test extension mode InstalledExtensionList normal operation |
|
5877 // |
|
5878 // Output : No leave. |
|
5879 |
|
5880 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::EInstalledExtensionList ); |
|
5881 } |
|
5882 |
|
5883 void CCaeTestRelease::TestSkippedExtensionListL() |
|
5884 { |
|
5885 // Group: still capture/extension mode. |
|
5886 // |
|
5887 // ID: CAE.SC.SkippedExtensionListL.001 |
|
5888 // |
|
5889 // Action : Test extension mode SkippedExtensionList normal operation |
|
5890 // |
|
5891 // Output : No leave. |
|
5892 |
|
5893 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESkippedExtensionList ); |
|
5894 } |
|
5895 |
|
5896 void CCaeTestRelease::TestSetSkippedExtensionListL() |
|
5897 { |
|
5898 // Group: still capture/extension mode. |
|
5899 // |
|
5900 // ID: CAE.SC.SetSkippedExtensionList.001 |
|
5901 // |
|
5902 // Action : Test extension mode SetSkippedExtensionList normal operation |
|
5903 // |
|
5904 // Output : No leave. |
|
5905 |
|
5906 iSettingsClient->RunTestActionL( CCaeTestSettingsClient::ESetSkippedExtensionList ); |
|
5907 } |
|
5908 |
|
5909 |
|
5910 void CCaeTestRelease::TestStartAndStopVideoRecordingSubQcifNoInitL() |
|
5911 { |
|
5912 // ID: CAE.VR.STARTSTOPVIDEORECORDING.SUBQCIF.NOINIT.001 |
|
5913 // |
|
5914 // Group: Record |
|
5915 // |
|
5916 // Action : To ensure that the implementation is compatible with camcorder plug-in. |
|
5917 // To ensure that starting and stopping video recording works. |
|
5918 // To ensure that recording subQCIF sized video works. |
|
5919 // Video recording prepared for subQCIF format. |
|
5920 // |
|
5921 // Output : OK. |
|
5922 |
|
5923 iStatesClient->SetTimeout( 4000000 ); |
|
5924 |
|
5925 TSize sizeQcif( KImgWidthQCIF, KImgHeightQCIF ); |
|
5926 |
|
5927 iStatesClient->SetVideoFrameSize( sizeQcif ); |
|
5928 iStatesClient->SetVideoFrameRate( TReal32( 10.0 ) ); |
|
5929 iStatesClient->SetVideoBitRate( TInt( 25000 ) ); |
|
5930 |
|
5931 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
5932 |
|
5933 iStatesClient->SetVideoFileName( _L("cae_subqcif_noinit.3gp") ); |
|
5934 |
|
5935 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndRecordVideoNoInit ); |
|
5936 |
|
5937 assertL( iStatesClient->CountInitComplete() == 0 ); |
|
5938 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
5939 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
5940 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
5941 } |
|
5942 |
|
5943 |
|
5944 |
|
5945 void CCaeTestRelease::TestSecondaryCamera001L() |
|
5946 { |
|
5947 // ID: CAE.SC.SecondaryCamera.001 |
|
5948 // |
|
5949 // Group: Capture |
|
5950 // |
|
5951 // Action : Test to setup still capturing for secondary camera and capture Jpeg |
|
5952 // image when initialization is done. |
|
5953 // |
|
5954 // ** For PROD9 320x240 camera ** |
|
5955 // |
|
5956 // Output : OK. |
|
5957 |
|
5958 TSize sizeQVGA( KImgWidthQVGA, KImgHeightQVGA ); |
|
5959 |
|
5960 iStatesClient->SetStillFormat( CCamera::EFormatJpeg ); |
|
5961 iStatesClient->SetStillCompressionQuality( 80 ); |
|
5962 iStatesClient->SetStillFrameSize( sizeQVGA ); // only supported size |
|
5963 iStatesClient->SetSnapImageSize( TSize( 240, 180 ) ); // no action, cae returns qvga if no adis |
|
5964 iStatesClient->SetSnapImageSource( CCaeEngine::ESnapImageSourceThumbnail ); // no action as C-API returns bitmap |
|
5965 iStatesClient->SetStillFileName( _L("cae_jpegsecond_001.jpg") ); |
|
5966 |
|
5967 iStatesClient->RunTestActionL( CCaeTestStatesClient::ESpecifiedPrepareAndCaptureStill2nd ); |
|
5968 |
|
5969 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
5970 assertL( iStatesClient->CountStillPrepareComplete() == 1 ); |
|
5971 assertL( iStatesClient->CountSnapImageReady() == 1 ); |
|
5972 assertL( iStatesClient->CountStillImageReady() == 1 ); |
|
5973 } |
|
5974 |
|
5975 void CCaeTestRelease::TestRecordAsyncStop001L() |
|
5976 { |
|
5977 // ID: CAE.VR.VIDEORECORDING.AsyncStop.001 |
|
5978 // |
|
5979 // Group: Record. |
|
5980 // |
|
5981 // Action : Test to prepare video recording and record quality level 0 |
|
5982 // video clip when async stop is enabled. |
|
5983 // |
|
5984 // Output : No leave. |
|
5985 |
|
5986 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
5987 |
|
5988 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
5989 |
|
5990 iStatesClient->SetViewFinderSize( sizeSubQcif ); |
|
5991 |
|
5992 iStatesClient->SetVfFileName( _L("cae_video_asyncstop_001.mbm") ); |
|
5993 |
|
5994 iStatesClient->SetVideoStopMode( ETrue ); |
|
5995 |
|
5996 iStatesClient->SetTimeout( 30000000 ); |
|
5997 |
|
5998 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
5999 |
|
6000 iStatesClient->SetVideoFileName( _L("cae_video_asyncstop_001.3gp") ); |
|
6001 |
|
6002 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareRecordVideoStartAndStopVf ); |
|
6003 |
|
6004 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
6005 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
6006 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
6007 assertL( iStatesClient->CountVideoRecordingStopped() == 1 ); |
|
6008 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
6009 } |
|
6010 |
|
6011 void CCaeTestRelease::TestRecordAsyncStop002L() |
|
6012 { |
|
6013 // ID: CAE.VR.VIDEORECORDING.AsyncStop.002 |
|
6014 // |
|
6015 // Group: Record. |
|
6016 // |
|
6017 // Action : Test to prepare video recording and record quality level 0 |
|
6018 // video clip when async stop is disabled. |
|
6019 // |
|
6020 // Output : No leave. |
|
6021 |
|
6022 iStatesClient->SetVideoQualityLevelIndex( 0 ); |
|
6023 |
|
6024 TSize sizeSubQcif( KImgWidthSubQCIF, KImgHeightSubQCIF ); |
|
6025 |
|
6026 iStatesClient->SetViewFinderSize( sizeSubQcif ); |
|
6027 |
|
6028 iStatesClient->SetVfFileName( _L("cae_video_asyncstop_001.mbm") ); |
|
6029 |
|
6030 iStatesClient->SetVideoStopMode( EFalse ); |
|
6031 |
|
6032 iStatesClient->SetTimeout( 30000000 ); |
|
6033 |
|
6034 iStatesClient->SetVideoCodecSet( 0 ); // 0: AMR audio, H.263 video |
|
6035 |
|
6036 iStatesClient->SetVideoFileName( _L("cae_video_asyncstop_001.3gp") ); |
|
6037 |
|
6038 iStatesClient->RunTestActionL( CCaeTestStatesClient::EStartVfPrepareRecordVideoStartAndStopVf ); |
|
6039 |
|
6040 assertL( iStatesClient->CountInitComplete() == 1 ); |
|
6041 assertL( iStatesClient->CountVideoPrepareComplete() == 1 ); |
|
6042 assertL( iStatesClient->CountVideoRecordingOn() == 1 ); |
|
6043 assertL( iStatesClient->CountVideoRecordingStopped() == 0 ); |
|
6044 assertL( iStatesClient->CountVideoRecordingComplete() == 1 ); |
|
6045 } |
|
6046 |
|
6047 |
|
6048 // |
|
6049 // An own static function to collect the test functions into one |
|
6050 // suite of tests. The framework will run the tests and free the |
|
6051 // memory allocated for the test suite. |
|
6052 // |
|
6053 |
|
6054 #if 1 |
|
6055 |
|
6056 MTest* CCaeTestRelease::suiteL () |
|
6057 { |
|
6058 // Always use NewL (Do not use NewLC) !!! |
|
6059 CTestSuite *suite = CTestSuite::NewL( _L8("CCaeTestRelease") ); |
|
6060 |
|
6061 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.INITL.001"), &TestInitL ) ); |
|
6062 |
|
6063 #if VIDEO_RECORDING_TEST_CASES |
|
6064 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.INITVIDEORECORDERL.001"), &TestInitVideoRecorderL ) ); |
|
6065 #endif |
|
6066 |
|
6067 #if (!MIRAGE_X) && (!UNAGI_2M) |
|
6068 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.001"), &TestGetInfoL ) ); |
|
6069 #endif |
|
6070 |
|
6071 #if MIRAGE_X_PROD1 |
|
6072 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.002"), &TestGetInfoPROD1MirageXL ) ); |
|
6073 #endif |
|
6074 |
|
6075 #if MIRAGE_X_PROD2 |
|
6076 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.003"), &TestGetInfoPROD2MirageXL ) ); |
|
6077 #endif |
|
6078 |
|
6079 #if MIRAGE_X_PROD3 |
|
6080 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.004"), &TestGetInfoPROD3MirageXPL ) ); |
|
6081 #endif |
|
6082 |
|
6083 #if MIRAGE_X_PROD4 |
|
6084 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.005"), &TestGetInfoPROD4MirageXL ) ); |
|
6085 #endif |
|
6086 |
|
6087 #if MIRAGE_X_PROD6 |
|
6088 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.006"), &TestGetInfoPROD6MirageXL ) ); |
|
6089 #endif |
|
6090 |
|
6091 #if MIRAGE_X_PROD7 |
|
6092 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.007"), &TestGetInfoPROD7Unagi2ML ) ); |
|
6093 #endif |
|
6094 |
|
6095 #if MIRAGE_X_PROD8 |
|
6096 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.008"), &TestGetInfoPROD8MirageXL ) ); |
|
6097 #endif |
|
6098 |
|
6099 #if MIRAGE_X_PROD9 |
|
6100 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.009"), &TestGetInfoPROD9HWL ) ); |
|
6101 #endif |
|
6102 |
|
6103 #if HW_DEVLON |
|
6104 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.GETINFO.010"), &TestGetInfoDevlonHWL ) ); |
|
6105 #endif |
|
6106 |
|
6107 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.POWEROFFANDON.001"), &TestPowerOffAndOnL ) ); |
|
6108 |
|
6109 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.RELESEANDRESERVE.001"), &TestReleaseAndReserveL ) ); |
|
6110 |
|
6111 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-SC.POWERON.001"), &TestPowerOnWhenInitializedL ) ); |
|
6112 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-SC.POWERON.002"), &TestPowerOnWhenStillCapturePreparedL ) ); |
|
6113 |
|
6114 #if VIDEO_RECORDING_TEST_CASES |
|
6115 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-VR.POWERON.003"), &TestPowerOnWhenVideoRecordingPreparedL ) ); |
|
6116 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-VR.POWERON.004"), &TestPowerOnWhenRecordingL ) ); |
|
6117 #endif |
|
6118 |
|
6119 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-SC.POWEROFF.001"), &TestPowerOffWhenStillCapturePreparedL ) ); |
|
6120 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-SC.POWEROFF.002"), &TestPowerOffWhenViewfinderRunningL ) ); |
|
6121 |
|
6122 #if VIDEO_RECORDING_TEST_CASES |
|
6123 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-VR.POWEROFF.003"), &TestPowerOffWhenVideoRecordingPreparedL ) ); |
|
6124 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN-VR.POWEROFF.004"), &TestPowerOffWhenRecordingL ) ); |
|
6125 #endif |
|
6126 |
|
6127 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VF.STARTSTOPVIEWFINDER.QQVGA.001"), &TestViewFinderStartAndStopQqvgaL ) ); |
|
6128 |
|
6129 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VF.STARTSTOPVIEWFINDER.SUBQCIF.002"), &TestViewFinderStartAndStopSubqcifL ) ); |
|
6130 |
|
6131 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VF.STARTSTOPVIEWFINDER.CROPPED.003"), &TestCroppedViewFinderStartAndStopL ) ); |
|
6132 #if !( (HW_DEVLON) ) |
|
6133 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VF.STARTSTOPVIEWFINDERDIRECT.001"), &TestViewFinderDirectStartAndStopL ) ); |
|
6134 #endif |
|
6135 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VF.STARTSTOPVIEWFINDERDIRECT.002"), &TestCroppedViewFinderDirectStartAndStopL ) ); |
|
6136 |
|
6137 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.001"), &TestCaptureStillWhenEngineInitializedL ) ); |
|
6138 |
|
6139 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA16M.002"), &TestCaptureVga16ML ) ); |
|
6140 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA64K.003"), &TestCaptureVga64KL ) ); |
|
6141 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA4K.004"), &TestCaptureVga4KL ) ); |
|
6142 |
|
6143 #if !( (MIRAGE_X_PROD9) || (HW_DEVLON) ) |
|
6144 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.QQVGA16M.005"), &TestCaptureQqvga16ML ) ); |
|
6145 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.QQVGA64K.006"), &TestCaptureQqvga64KL ) ); |
|
6146 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.QQVGA4K.007"), &TestCaptureQqvga4KL ) ); |
|
6147 #endif |
|
6148 |
|
6149 #if MIRAGE_X_PROD1 |
|
6150 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP1.16M.011"), &TestCaptureMp1_16ML ) ); |
|
6151 |
|
6152 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP1.64K.012"), &TestCaptureMp1_64KL ) ); |
|
6153 |
|
6154 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP1.4K.013"), &TestCaptureMp1_4KL ) ); |
|
6155 |
|
6156 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.JPEGMP1.014"), &TestCaptureJpegMp1L ) ); |
|
6157 |
|
6158 #endif |
|
6159 |
|
6160 #if (MIRAGE_X_PROD2) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD3) |
|
6161 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP1M3.16M.018"), &TestCaptureMp1M3_16ML ) ); |
|
6162 |
|
6163 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP1M3.64K.019"), &TestCaptureMp1M3_64KL ) ); |
|
6164 |
|
6165 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP1M3.4K.020"), &TestCaptureMp1M3_4KL ) ); |
|
6166 |
|
6167 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.JPEGMP1M3.021"), &TestCaptureJpegMp1M3L ) ); |
|
6168 |
|
6169 #endif // (MIRAGE_X_PROD2) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD3) |
|
6170 |
|
6171 #if MIRAGE_X_PROD7 |
|
6172 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP2.16M.025"), &TestCaptureMp2_16ML ) ); |
|
6173 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP2.64K.026"), &TestCaptureMp2_64KL ) ); |
|
6174 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.MP2.4K.027"), &TestCaptureMp2_4KL ) ); |
|
6175 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.JPEG.MP2.028"), &TestCaptureJpegMp2L ) ); |
|
6176 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.EXIF.MP2.029"), &TestCaptureExifMp2L ) ); |
|
6177 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.EXIF.SVGA.030"), &TestCaptureExifSVGAL ) ); |
|
6178 #endif // MIRAGE_X_PROD7 |
|
6179 |
|
6180 #if MIRAGE_X_PROD8 |
|
6181 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.CODEC.031"), &TestCaptureCodecL ) ); |
|
6182 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.CODEC.032"), &TestCaptureCodec2L ) ); |
|
6183 #endif // MIRAGE_X_PROD8 |
|
6184 |
|
6185 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.JPEGVGA90.008"), &TestCaptureQualityLevel0L ) ); |
|
6186 |
|
6187 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.JPEGVGA50.009"), &TestCaptureQualityLevel1L ) ); |
|
6188 |
|
6189 #if !( (MIRAGE_X_PROD9) || (HW_DEVLON) ) |
|
6190 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.JPEGQQVGA90.010"), &TestCaptureQualityLevel2L ) ); |
|
6191 #endif |
|
6192 |
|
6193 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURECAPTURE.001"), &TestCaptureCaptureL ) ); |
|
6194 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURECAPTURE.002"), &TestCaptureCaptureSpecPrepL ) ); |
|
6195 |
|
6196 |
|
6197 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.PREPARESTILLCAPTUREL.001"), &TestPrepareStillCapture0L ) ); |
|
6198 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.PREPARESTILLCAPTUREL.002"), &TestPrepareStillCapture1L ) ); |
|
6199 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.PREPARESTILLCAPTUREL.003"), &TestPrepareStillCapture2L ) ); |
|
6200 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.PREPARESTILLCAPTUREL.004"), &TestPrepareStillCapture0WhenPreparedL ) ); |
|
6201 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.PREPARESTILLCAPTUREL.007"), &TestSpecPrepareSCSupportedFormatWhenInitializedL ) ); |
|
6202 |
|
6203 #if VIDEO_RECORDING_TEST_CASES |
|
6204 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREVIDEORECORDINGL.001"), &TestPrepareVideoRecording0L ) ); |
|
6205 |
|
6206 #if !( (HW_DEVLON) ) |
|
6207 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREVIDEORECORDINGL.002"), &TestPrepareVideoRecording1L ) ); |
|
6208 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREVIDEORECORDINGL.003"), &TestPrepareVideoRecording2L ) ); |
|
6209 #endif |
|
6210 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREVIDEORECORDINGL.004"), &TestPrepareVideoRecording0WhenPreparedL ) ); |
|
6211 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREVIDEORECORDINGL.007"), &TestSpecPrepareVRSupportedFormatWhenVRInitializedL ) ); |
|
6212 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.VIDEORECORDING.QCIF64000FR15.001"), &TestRecordQualityLevel0L ) ); |
|
6213 |
|
6214 #if !( (HW_DEVLON) ) |
|
6215 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.VIDEORECORDING.SUBQCIF60000FR15.002"), &TestRecordQualityLevel1L ) ); |
|
6216 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.VIDEORECORDING.SUBQCIF40000FR5.003"), &TestRecordQualityLevel2L ) ); |
|
6217 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.STARTSTOPVIDEORECORDING.SUBQCIF.001"), &TestStartAndStopVideoRecordingSubQcifL ) ); |
|
6218 #endif |
|
6219 |
|
6220 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.STARTSTOPVIDEORECORDING.QCIF.002"), &TestStartAndStopVideoRecordingQcifL ) ); |
|
6221 #endif |
|
6222 |
|
6223 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.001"), &TestSCDigiZoomVal0L ) ); |
|
6224 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.002_vga"), &TestSCDigiZoomVal1VgaL ) ); |
|
6225 #if !( (MIRAGE_X_PROD9) || (HW_DEVLON) ) |
|
6226 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.002_qqvga"), &TestSCDigiZoomVal1QqvgaL ) ); |
|
6227 #endif |
|
6228 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.005"), &TestSCDigiZoomInitializedVal0L ) ); |
|
6229 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.012_vga"), &TestSCDigiZoomInitializedVal1VgaL ) ); |
|
6230 |
|
6231 #if !( (MIRAGE_X_PROD9) || (HW_DEVLON) ) |
|
6232 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETZOOMVALUEL.012_qqvga"), &TestSCDigiZoomInitializedVal1QqvgaL ) ); |
|
6233 #endif |
|
6234 |
|
6235 #if VIDEO_RECORDING_TEST_CASES |
|
6236 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETZOOMVALUEL.006"), &TestVRDigiZoomVal0L ) ); |
|
6237 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETZOOMVALUEL.007"), &TestVRDigiZoomVal1L ) ); |
|
6238 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETZOOMVALUEL.010"), &TestVRDigiZoomRecordingVal0L ) ); |
|
6239 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETZOOMVALUEL.011"), &TestVRDigiZoomRecordingVal1L ) ); |
|
6240 |
|
6241 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.RESUMEVIDEORECORDING.001"), &TestRecordPauseResumeStopL ) ); |
|
6242 #endif |
|
6243 |
|
6244 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.001"), &TestSCExposureMode0L ) ); |
|
6245 |
|
6246 #if !MIRAGE_X_PROD6 |
|
6247 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.002"), &TestSCExposureMode1L ) ); |
|
6248 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.016"), &TestSCExposureModeInitialized1L ) ); |
|
6249 #endif |
|
6250 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEXPOSUREMODEL.015"), &TestSCExposureModeInitialized0L ) ); |
|
6251 |
|
6252 #if VIDEO_RECORDING_TEST_CASES |
|
6253 #if !MIRAGE_X_PROD6 |
|
6254 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.008"), &TestVRExposureMode0L ) ); |
|
6255 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.009"), &TestVRExposureMode1L ) ); |
|
6256 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.018"), &TestVRExposureModeRecording1L ) ); |
|
6257 #endif |
|
6258 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETEXPOSUREMODEL.017"), &TestVRExposureModeRecording0L ) ); |
|
6259 #endif |
|
6260 |
|
6261 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEVCOMP.001"), &TestSCEvCompensation0L ) ); |
|
6262 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEVCOMP.002"), &TestSCEvCompensationMaxL ) ); |
|
6263 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEVCOMP.003"), &TestSCEvCompensationMinL ) ); |
|
6264 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEVCOMP.004"), &TestSCEvCompensationInitialized0L ) ); |
|
6265 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEVCOMP.005"), &TestSCEvCompensationInitializedMaxL ) ); |
|
6266 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEVCOMP.006"), &TestSCEvCompensationInitializedMinL ) ); |
|
6267 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETEVCOMP.007"), &TestSCEvCompensationInitializedInvalidL ) ); |
|
6268 |
|
6269 #if VIDEO_RECORDING_TEST_CASES |
|
6270 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETEVCOMP.001"), &TestVREvCompensationMinL ) ); |
|
6271 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETEVCOMP.002"), &TestVREvCompensationRecordingMaxL ) ); |
|
6272 #endif |
|
6273 |
|
6274 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.001"), &TestSCWhiteBalanceMode0L ) ); |
|
6275 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETWHITEBALANCEMODEL.019"), &TestSCWhiteBalanceModeInitialized0L ) ); |
|
6276 |
|
6277 #if VIDEO_RECORDING_TEST_CASES |
|
6278 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.010"), &TestVRWhiteBalanceMode0L ) ); |
|
6279 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETWHITEBALANCEMODEL.020"), &TestVRWhiteBalanceModeRecording0L ) ); |
|
6280 #endif |
|
6281 |
|
6282 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETBRIGHTNESSL.001"), &TestSCBrightness50L ) ); |
|
6283 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETBRIGHTNESSL.007"), &TestSCBrightnessInitialized50L ) ); |
|
6284 |
|
6285 #if VIDEO_RECORDING_TEST_CASES |
|
6286 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETBRIGHTNESSL.008"), &TestVRBrightness50L ) ); |
|
6287 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETBRIGHTNESSL.014"), &TestVRBrightnessRecording50L ) ); |
|
6288 #endif |
|
6289 |
|
6290 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETCONTRASTL.001"), &TestSCContrast50L ) ); |
|
6291 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETCONTRASTL.007"), &TestSCContrastInitialized50L ) ); |
|
6292 |
|
6293 #if VIDEO_RECORDING_TEST_CASES |
|
6294 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETCONTRASTL.008"), &TestVRContrast50L ) ); |
|
6295 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETCONTRASTL.014"), &TestVRContrastRecording50L ) ); |
|
6296 |
|
6297 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.SETVIDEOCLIPMAXSIZEL.002"), &TestVideoClipMaxSize10000L ) ); |
|
6298 #endif |
|
6299 |
|
6300 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CANCELCAPTURESTILL.001"), &TestCancelCaptureStillL ) ); |
|
6301 |
|
6302 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.GETSTILLQUALITYINDEX.001"), &TestGetStillQualityIndexWhenEngineInitializedL ) ); |
|
6303 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.GETSTILLQUALITYINDEX.002"), &TestGetStillQualityIndexWhenPreparedL ) ); |
|
6304 |
|
6305 #if VIDEO_RECORDING_TEST_CASES |
|
6306 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.GETVIDEOQUALITYINDEX.001"), &TestGetVideoQualityIndexWhenEngineInitializedL ) ); |
|
6307 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.GETVIDEOQUALITYINDEX.002"), &TestGetVideoQualityIndexWhenPreparedL ) ); |
|
6308 |
|
6309 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.REMAININGVIDEORECORDINGTIME.001"), &TestRemainingTimeWhenVideoPreparedL ) ); |
|
6310 |
|
6311 // suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.STARTSTOPVRTOOBIGSIZE.SUBQCIF.001"), &TestStartAndStopVRWhenTooBigSizeSubQcifL ) ); |
|
6312 |
|
6313 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREAUDIOBITRATEANDRECORDVIDEO.001"), &TestPrepareAudioBitRateVR5000L ) ); |
|
6314 |
|
6315 #if (MIRAGE_X_PROD7) |
|
6316 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREAUDIOBITRATEANDRECORDVIDEO.002"), &TestPrepareAudioBitRateVR128L ) ); |
|
6317 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.PREPAREAUDIOBITRATEANDRECORDVIDEO.003"), &TestPrepareAudioBitRateVR128InvVtypeL ) ); |
|
6318 #endif |
|
6319 |
|
6320 #endif |
|
6321 |
|
6322 #ifdef __CAMERA_BURST_MODE |
|
6323 // Only if Still BURST is supported (built in). |
|
6324 |
|
6325 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.3.001"), &TestCaptureStillBurst3L ) ); |
|
6326 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.0.002"), &TestCaptureStillBurst0L ) ); |
|
6327 |
|
6328 // suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.100.003"), &TestCaptureStillBurst100L ) ); |
|
6329 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.CANCEL.004"), &TestCancelCaptureStillBurst3L ) ); |
|
6330 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.STOP2.005"), &TestStopCaptureStillBurstAfter2L ) ); |
|
6331 |
|
6332 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.3.006"), &TestSpecPrepCaptureStillBurst3L ) ); |
|
6333 |
|
6334 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTINTERVAL.0.001"), &TestCaptureStillBurstInterval0L ) ); |
|
6335 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTINTERVAL.1000000.002"), &TestCaptureStillBurstInterval1000000L ) ); |
|
6336 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTINTERVAL.M1.003"), &TestCaptureStillBurstIntervalM1L ) ); |
|
6337 #endif |
|
6338 |
|
6339 |
|
6340 #if (MIRAGE_X_PROD2) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD3) || (MIRAGE_X_PROD7) |
|
6341 |
|
6342 #ifdef __CAMERA_BURST_MODE |
|
6343 // Exif burst test |
|
6344 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.3.001"), &TestCaptureStillBurstExif3L ) ); |
|
6345 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.6.002"), &TestCaptureStillBurstExif6L ) ); |
|
6346 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.100.003"), &TestCaptureStillBurstExif100L ) ); |
|
6347 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.6.VF.004"), &TestCaptureStillBurstExif6VfL ) ); |
|
6348 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.6.VF.CANCEL.005"), &TestCaptureStillBurstExif6VfCancelL ) ); |
|
6349 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.6.006"), &TestCaptureStillBurstExif6NSL ) ); |
|
6350 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.6.007"), &TestCaptureStillBurstExif6_ThumbnailL ) ); |
|
6351 #endif |
|
6352 |
|
6353 // Exif tests |
|
6354 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.001"), &TestCaptureVgaExifL ) ); |
|
6355 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.QQVGA.EXIF.002"), &TestCaptureQqvgaExifL ) ); |
|
6356 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.003"), &TestCaptureVgaSnapOneHalfExifL ) ); |
|
6357 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.004"), &TestCaptureVgaSnapOneFourthExifL ) ); |
|
6358 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.005"), &TestCaptureVgaSnapOneEighthExifL ) ); |
|
6359 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.006"), &TestCaptureVgaSnapExifL ) ); |
|
6360 |
|
6361 // Jpeg tests |
|
6362 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.JPEG.007"), &TestCaptureVgaSnapOneEighthJpegL ) ); |
|
6363 |
|
6364 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.008"), &TestCaptureVgaSnapOneEighthExif2L ) ); |
|
6365 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.009"), &TestCaptureVgaSnapColor16MExifL ) ); |
|
6366 #endif // (MIRAGE_X_PROD2) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD3) || (MIRAGE_X_PROD7) |
|
6367 |
|
6368 // Test cases for snap-image creation switched off. |
|
6369 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA16M.015"), &TestCaptureVga16M_NoSnapL ) ); |
|
6370 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.JPEGVGA90.016"), &TestCaptureQualityLevel0_NoSnapL ) ); |
|
6371 #if (MIRAGE_X_PROD2) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD3) || (MIRAGE_X_PROD7) |
|
6372 // Exif tests |
|
6373 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.VGA.EXIF.017"), &TestCaptureVgaExif_NoSnapL ) ); |
|
6374 #endif |
|
6375 |
|
6376 #ifdef __CAMERA_BURST_MODE |
|
6377 // Only if Still BURST is supported (built in). |
|
6378 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.3.007"), &TestCaptureStillBurst3_NoSnapL ) ); |
|
6379 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURST.3.008"), &TestSpecPrepCaptureStillBurst3_NoSnapL ) ); |
|
6380 |
|
6381 #if (MIRAGE_X_PROD2) || (MIRAGE_X_PROD4) || (MIRAGE_X_PROD3) || (MIRAGE_X_PROD7) |
|
6382 // Exif tests |
|
6383 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILLBURSTEXIF.3.004"), &TestCaptureStillBurstExif3_NoSnapL ) ); |
|
6384 #endif |
|
6385 #endif // __CAMERA_BURST_MODE |
|
6386 |
|
6387 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.ENUMERATE.001"), &TestEnumerateCaptureSizesL ) ); |
|
6388 |
|
6389 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETJPEGQUALITY.001"), &TestSetJpegQuality50L ) ); |
|
6390 |
|
6391 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.CUSTOMINTERFACE.001"), &TestSCCustomInterfaceL ) ); |
|
6392 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.001"), &TestFlashMode0L ) ); |
|
6393 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.002"), &TestFlashMode1L ) ); |
|
6394 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.SETFLASHMODEL.003"), &TestFlashMode2L ) ); |
|
6395 |
|
6396 #if COLOR_TONE_TEST_CASES |
|
6397 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.COLORTONE.001"), &TestSCColorToneNormalL ) ); |
|
6398 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.COLORTONE.002"), &TestSCColorToneSepiaL ) ); |
|
6399 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.COLORTONE.003"), &TestSCColorToneGrayscaleL ) ); |
|
6400 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.COLORTONE.004"), &TestSCColorToneNegativeL ) ); |
|
6401 #if VIDEO_RECORDING_TEST_CASES |
|
6402 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.COLORTONE.005"), &TestVRColorToneL ) ); |
|
6403 #endif |
|
6404 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.COLORTONE.006"), &TestSCColorToneWrongParams1L ) ); |
|
6405 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.COLORTONE.007"), &TestSCColorToneWrongParams2L ) ); |
|
6406 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-SC.COLORTONE.008"), &TestSCColorToneReleaseL ) ); |
|
6407 #endif // COLOR_TONE_TEST_CASES |
|
6408 |
|
6409 //#if (MIRAGE_X_PROD7) |
|
6410 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.SETDISPLAYINDEX.001"), &TestSetDisplayIndexL ) ); |
|
6411 //#endif |
|
6412 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.CAPTURESTILL.POWEROFF.001"), &TestCaptureAfterPowerOffL ) ); |
|
6413 |
|
6414 // new tests after 3.2 |
|
6415 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SET-VR.ENUMERATEVIDEOFRAMESIZE.001"), &TestEnumerateVideoFrameSize001L ) ); |
|
6416 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.GEN.CCAMERAHANDLE.001"), &TestCCameraHandleL ) ); |
|
6417 |
|
6418 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtViewFinderFrameReadyL.001"), &TestProcessExtViewFinderFrameReadyL ) ); |
|
6419 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtSnapImageL.001"), &TestProcessExtSnapImageL ) ); |
|
6420 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCapturedImageL.001"), &TestProcessExtCapturedImageL ) ); |
|
6421 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCapturedImageL.002"), &TestProcessExtCapturedImage2L ) ); |
|
6422 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCapturedImageL.003"), &TestProcessExtCapturedImage3L ) ); |
|
6423 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCapturedImageL.004"), &TestProcessExtCapturedImage4L ) ); |
|
6424 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCancel.001"), &TestProcessExtCancelL ) ); |
|
6425 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCancel.002"), &TestProcessExtCancel2L ) ); |
|
6426 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCapturedImageBurstL.001"), &TestProcessExtCapturedImageBurstL ) ); |
|
6427 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.ProcessExtCapturedImageBurstL.002"), &TestProcessExtCapturedImageBurst2L ) ); |
|
6428 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.InstalledExtensionList.001"), &TestInstalledExtensionListL ) ); |
|
6429 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.SkippedExtensionListL.001"), &TestSkippedExtensionListL ) ); |
|
6430 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.SetSkippedExtensionList.001"), &TestSetSkippedExtensionListL ) ); |
|
6431 |
|
6432 #if VIDEO_RECORDING_TEST_CASES |
|
6433 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.STARTSTOPVIDEORECORDING.SUBQCIF.NOINIT.001"), &TestStartAndStopVideoRecordingSubQcifNoInitL ) ); |
|
6434 #endif |
|
6435 |
|
6436 #if ( ((MIRAGE_X_PROD9) || (HW_DEVLON)) && (SECONDARY_CAMERA_TEST_CASES) ) |
|
6437 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.SC.SecondaryCamera.001"), &TestSecondaryCamera001L ) ); |
|
6438 #endif |
|
6439 |
|
6440 // Asynchronous video stop test cases |
|
6441 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.VIDEORECORDING.AsyncStop.001"), &TestRecordAsyncStop001L ) ); |
|
6442 suite->addTestL( CTestCaller<CCaeTestRelease>::NewL( _L8("CAE.VR.VIDEORECORDING.AsyncStop.002"), &TestRecordAsyncStop002L ) ); |
|
6443 |
|
6444 return suite; |
|
6445 } |
|
6446 |
|
6447 #else |
|
6448 |
|
6449 |
|
6450 MTest* CCaeTestRelease::suiteL () |
|
6451 { |
|
6452 // Always use NewL (Do not use NewLC) !!! |
|
6453 CTestSuite *suite = CTestSuite::NewL( _L8("CCaeTestRelease") ); |
|
6454 |
|
6455 |
|
6456 return suite; |
|
6457 } |
|
6458 |
|
6459 #endif |