camerasrv_plat/camera_application_engine_api/tsrc/inc/CaeTestRelease.h
changeset 0 9b3e960ffc8a
equal deleted inserted replaced
-1:000000000000 0:9b3e960ffc8a
       
     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.h
       
    15 *
       
    16 */
       
    17 #ifndef CAE_TEST_RELEASE_H
       
    18 #define CAE_TEST_RELEASE_H
       
    19 
       
    20 
       
    21 #include <e32base.h>
       
    22 #include "CaeTestVariation.h"
       
    23 
       
    24 #include "CaeTestStatesClient.h"
       
    25 #include "CaeTestSettingsClient.h"
       
    26 
       
    27 class CCaeTestRelease : public CTestCase
       
    28 {
       
    29 public:
       
    30 
       
    31 	CCaeTestRelease ();
       
    32     ~CCaeTestRelease ();
       
    33 
       
    34 	// Allocate the resources for one test function
       
    35     void setUpL ();
       
    36 
       
    37 	// Free the resources reserved in setUpL()
       
    38 	void tearDown ();
       
    39 
       
    40 	// A function to collect and return a suite of tests
       
    41     static MTest* suiteL ();
       
    42 
       
    43 protected:
       
    44 
       
    45 	// Own test functions that use assertions and may leave:
       
    46     void TestInitL();
       
    47     void TestInitVideoRecorderL();
       
    48     void TestPowerOffAndOnL();
       
    49     void TestReleaseAndReserveL();
       
    50     void TestCCameraHandleL();
       
    51 
       
    52     void TestPowerOnWhenInitializedL();
       
    53     void TestPowerOnWhenStillCapturePreparedL();
       
    54     void TestPowerOffWhenStillCapturePreparedL();
       
    55     void TestPowerOffWhenViewfinderRunningL();
       
    56     void TestPowerOnWhenVideoRecordingPreparedL();
       
    57     void TestPowerOnWhenRecordingL();
       
    58     void TestPowerOffWhenVideoRecordingPreparedL();
       
    59     void TestPowerOffWhenRecordingL();
       
    60 
       
    61     void TestViewFinderStartAndStopQqvgaL();
       
    62     void TestViewFinderStartAndStopSubqcifL();
       
    63     void TestCroppedViewFinderStartAndStopL();
       
    64     void TestViewFinderDirectStartAndStopL();
       
    65     void TestCroppedViewFinderDirectStartAndStopL();
       
    66 
       
    67     void TestCaptureQualityLevel0L();
       
    68     void TestCaptureQualityLevel1L();
       
    69     void TestCaptureQualityLevel2L();
       
    70 
       
    71     void TestCaptureVga16ML();
       
    72     void TestCaptureVga64KL();
       
    73     void TestCaptureVga4KL();
       
    74 
       
    75     void TestCaptureQqvga16ML();
       
    76     void TestCaptureQqvga64KL();
       
    77     void TestCaptureQqvga4KL();
       
    78 
       
    79     void TestCaptureMp1_16ML();
       
    80     void TestCaptureMp1_64KL();
       
    81     void TestCaptureMp1_4KL();
       
    82     
       
    83     void TestCaptureJpegMp1L();
       
    84 
       
    85     void TestCaptureMp1M3_16ML();
       
    86     void TestCaptureMp1M3_64KL();
       
    87     void TestCaptureMp1M3_4KL();
       
    88     
       
    89     void TestCaptureJpegMp1M3L();
       
    90 
       
    91     void TestCaptureMp2_16ML();
       
    92     void TestCaptureMp2_64KL();
       
    93     void TestCaptureMp2_4KL();
       
    94     void TestCaptureJpegMp2L();
       
    95     void TestCaptureExifMp2L();
       
    96     void TestCaptureExifSVGAL();
       
    97 
       
    98 	void TestCaptureCodecL();
       
    99 	void TestCaptureCodec2L();
       
   100 
       
   101     void TestCaptureCaptureL();
       
   102     void TestCaptureCaptureSpecPrepL();
       
   103 
       
   104     void TestPrepareStillCapture0L();
       
   105     void TestPrepareStillCapture1L();
       
   106     void TestPrepareStillCapture2L();
       
   107     void TestPrepareStillCapture0WhenPreparedL();
       
   108     void TestSpecPrepareSCSupportedFormatWhenInitializedL();
       
   109 
       
   110     void TestCaptureStillWhenEngineInitializedL();
       
   111 
       
   112     void TestCaptureStillBurst3L();
       
   113     void TestCaptureStillBurst0L();
       
   114     void TestCaptureStillBurst100L();
       
   115 
       
   116     void TestCancelCaptureStillBurst3L();
       
   117     void TestStopCaptureStillBurstAfter2L();
       
   118     
       
   119     void TestSpecPrepCaptureStillBurst3L();
       
   120     
       
   121     void TestCaptureStillBurstInterval0L();
       
   122     void TestCaptureStillBurstInterval1000000L();
       
   123     void TestCaptureStillBurstIntervalM1L();
       
   124 
       
   125 	void TestCaptureStillBurstExif3L();
       
   126 	void TestCaptureStillBurstExif6L();
       
   127 	void TestCaptureStillBurstExif6NSL();
       
   128 	void TestCaptureStillBurstExif6_ThumbnailL();
       
   129 	void TestCaptureStillBurstExif100L();
       
   130 	void TestCaptureStillBurstExif6VfL();
       
   131 	void TestCaptureStillBurstExif6VfCancelL();
       
   132 
       
   133     void TestCaptureVgaExifL();
       
   134     void TestCaptureQqvgaExifL();
       
   135 	void TestCaptureVgaSnapOneHalfExifL();
       
   136 	void TestCaptureVgaSnapOneFourthExifL();
       
   137 	void TestCaptureVgaSnapOneEighthExifL();
       
   138 	void TestCaptureVgaSnapExifL();
       
   139 	void TestCaptureVgaSnapOneEighthJpegL();
       
   140 	void TestCaptureVgaSnapOneEighthExif2L();
       
   141 	void TestCaptureVgaSnapColor16MExifL();
       
   142     void TestCaptureAfterPowerOffL();
       
   143 
       
   144     void TestPrepareVideoRecording0L();
       
   145     void TestPrepareVideoRecording1L();
       
   146     void TestPrepareVideoRecording2L();
       
   147     void TestPrepareVideoRecording0WhenPreparedL();
       
   148     void TestSpecPrepareVRSupportedFormatWhenVRInitializedL();
       
   149    
       
   150     void TestRecordQualityLevel0L();
       
   151     void TestRecordQualityLevel1L();
       
   152     void TestRecordQualityLevel2L();
       
   153 
       
   154     void TestStartAndStopVideoRecordingSubQcifL();
       
   155     void TestStartAndStopVideoRecordingSubQcifNoInitL();
       
   156     void TestStartAndStopVideoRecordingQcifL();
       
   157 
       
   158     void TestSCDigiZoomVal0L();
       
   159     void TestSCDigiZoomVal1VgaL();
       
   160     void TestSCDigiZoomVal1QqvgaL();
       
   161     void TestSCDigiZoomInitializedVal0L();
       
   162     void TestSCDigiZoomInitializedVal1VgaL();
       
   163     void TestSCDigiZoomInitializedVal1QqvgaL();
       
   164     void TestVRDigiZoomVal0L();
       
   165     void TestVRDigiZoomVal1L();
       
   166     void TestVRDigiZoomRecordingVal0L();
       
   167     void TestVRDigiZoomRecordingVal1L(); 
       
   168     
       
   169     void TestStartAndStopVRWhenTooBigSizeSubQcifL();
       
   170 
       
   171     void TestGetInfoL();
       
   172     void TestGetInfoPROD1MirageXL();
       
   173     void TestGetInfoPROD2MirageXL();
       
   174     void TestGetInfoPROD3MirageXPL();
       
   175     void TestGetInfoPROD4MirageXL();
       
   176     void TestGetInfoPROD6MirageXL();
       
   177     void TestGetInfoPROD7Unagi2ML();
       
   178     void TestGetInfoPROD8MirageXL();
       
   179     void TestGetInfoPROD9HWL();
       
   180     void TestGetInfoDevlonHWL();
       
   181 
       
   182     void TestRecordPauseResumeStopL();
       
   183 
       
   184     void TestSCExposureMode0L();
       
   185     void TestSCExposureMode1L();
       
   186     void TestSCExposureModeInitialized0L();
       
   187     void TestSCExposureModeInitialized1L();
       
   188 
       
   189     void TestVRExposureMode0L();
       
   190     void TestVRExposureMode1L();
       
   191     void TestVRExposureModeRecording0L();
       
   192     void TestVRExposureModeRecording1L();
       
   193 
       
   194 	void TestSCEvCompensation0L();
       
   195 	void TestSCEvCompensationMaxL();
       
   196 	void TestSCEvCompensationMinL();
       
   197 	void TestSCEvCompensationInitialized0L();
       
   198 	void TestSCEvCompensationInitializedMaxL();
       
   199 	void TestSCEvCompensationInitializedMinL();
       
   200 	void TestSCEvCompensationInitializedInvalidL();
       
   201 
       
   202 	void TestVREvCompensationMinL();
       
   203 	void TestVREvCompensationRecordingMaxL();
       
   204 
       
   205     void TestSCWhiteBalanceMode0L();
       
   206     void TestSCWhiteBalanceModeInitialized0L();
       
   207 
       
   208     void TestVRWhiteBalanceMode0L();
       
   209     void TestVRWhiteBalanceModeRecording0L();
       
   210 
       
   211     void TestSCContrast50L();
       
   212     void TestSCContrastInitialized50L();
       
   213 
       
   214     void TestSCBrightness50L();
       
   215     void TestSCBrightnessInitialized50L();
       
   216 
       
   217     void TestVRContrast50L();
       
   218     void TestVRContrastRecording50L();
       
   219 
       
   220     void TestVRBrightness50L();
       
   221     void TestVRBrightnessRecording50L();
       
   222 
       
   223     void TestVideoClipMaxSize10000L();
       
   224     void TestVideoClipMaxSize10000_2L();
       
   225     
       
   226     void TestCancelCaptureStillL();
       
   227 
       
   228     void TestGetStillQualityIndexWhenEngineInitializedL();
       
   229     void TestGetStillQualityIndexWhenPreparedL();
       
   230     void TestGetVideoQualityIndexWhenEngineInitializedL();
       
   231     void TestGetVideoQualityIndexWhenPreparedL();
       
   232 
       
   233     void TestRemainingTimeWhenVideoPreparedL();
       
   234 
       
   235     void TestPrepareAudioBitRateVR5000L();
       
   236     void TestPrepareAudioBitRateVR128L();
       
   237     void TestPrepareAudioBitRateVR128InvVtypeL();
       
   238 
       
   239     void TestCaptureVga16M_NoSnapL();
       
   240     void TestCaptureQualityLevel0_NoSnapL();
       
   241     void TestCaptureVgaExif_NoSnapL();
       
   242     void TestCaptureStillBurst3_NoSnapL();
       
   243     void TestSpecPrepCaptureStillBurst3_NoSnapL();
       
   244     void TestCaptureStillBurstExif3_NoSnapL();
       
   245     
       
   246     void TestEnumerateCaptureSizesL();
       
   247     void TestSetJpegQuality50L();
       
   248     void TestSCCustomInterfaceL();    
       
   249     
       
   250     void TestFlashMode0L();
       
   251     void TestFlashMode1L();
       
   252     void TestFlashMode2L();
       
   253     
       
   254     void TestSCColorToneNormalL();
       
   255     void TestSCColorToneSepiaL();
       
   256     void TestSCColorToneGrayscaleL();
       
   257     void TestSCColorToneNegativeL();
       
   258     void TestVRColorToneL();
       
   259     void TestSCColorToneWrongParams1L();
       
   260     void TestSCColorToneWrongParams2L();
       
   261     void TestSCColorToneReleaseL();
       
   262 
       
   263     void TestSetDisplayIndexL();
       
   264     void TestEnumerateVideoFrameSize001L();
       
   265     void TestSecondaryCamera001L();
       
   266     void TestProcessExtViewFinderFrameReadyL();
       
   267     void TestProcessExtSnapImageL();
       
   268     void TestProcessExtCapturedImageL();
       
   269     void TestProcessExtCapturedImage2L();
       
   270     void TestProcessExtCapturedImage3L();
       
   271     void TestProcessExtCapturedImage4L();
       
   272     void TestProcessExtCancelL();
       
   273     void TestProcessExtCancel2L();
       
   274     void TestProcessExtCapturedImageBurstL();
       
   275     void TestProcessExtCapturedImageBurst2L();
       
   276     void TestInstalledExtensionListL();
       
   277     void TestSkippedExtensionListL();
       
   278     void TestSetSkippedExtensionListL();
       
   279     
       
   280     void TestRecordAsyncStop001L();
       
   281     void TestRecordAsyncStop002L();
       
   282 
       
   283 private:
       
   284     CCaeTestStatesClient * iStatesClient;
       
   285     CCaeTestSettingsClient * iSettingsClient;
       
   286 };
       
   287 
       
   288 #endif // CAE_TEST_RELEASE_H