camerasrv_plat/camera_application_engine_api/tsrc/inc/CaeTestVideoStates.h
branchRCL_3
changeset 20 e3cdd00b5ae3
parent 19 18fa9327a158
child 21 27fe719c32e6
equal deleted inserted replaced
19:18fa9327a158 20:e3cdd00b5ae3
     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: CaeTestVideoStates.h
       
    15 *
       
    16 */
       
    17 #ifndef CAE_TEST_VIDEO_STATES_H
       
    18 #define CAE_TEST_VIDEO_STATES_H
       
    19 
       
    20 
       
    21 #include <e32base.h>
       
    22 
       
    23 #include "CaeTestStatesClient.h"
       
    24 
       
    25 class CCaeTestVideoStates : public CTestCase
       
    26 {
       
    27 public:
       
    28 
       
    29 	CCaeTestVideoStates ();
       
    30     ~CCaeTestVideoStates ();
       
    31 
       
    32 	// Allocate the resources for one test function
       
    33     void setUpL ();
       
    34 
       
    35 	// Free the resources reserved in setUpL()
       
    36 	void tearDown ();
       
    37 
       
    38 	// A function to collect and return a suite of tests
       
    39     static MTest* suiteL ();
       
    40 
       
    41 protected:
       
    42 
       
    43 	// Own test functions that use assertions and may leave:
       
    44 
       
    45     void TestPrepareAndRecordQualityLevel0L();
       
    46     void TestPrepareAndRecordQualityLevel1L();
       
    47     void TestPrepareAndRecordQualityLevel2L();
       
    48 
       
    49     void TestVideoRecordingQcif60000Fr10NoAudioNoVfL();
       
    50     void TestVideoRecordingQcif60000Fr10WithAudioNoVfL();
       
    51     void TestVideoRecordingQcif60000Fr10NoAudioWithVfL();
       
    52     void TestVideoRecordingQcif60000Fr10WithAudioWithVfL();
       
    53 
       
    54     void TestRecordPauseStopL();
       
    55     void TestPauseWhenPreparedL();
       
    56     void TestRecordPausePauseStopL();
       
    57 
       
    58     void TestResumeWhenPreparedL();
       
    59     void TestResumeWhenNotPausedL();
       
    60 
       
    61     void TestPrepareVideoRecordingNeg1L();   
       
    62     void TestPrepareVideoRecording3L();
       
    63     void TestSpecPrepareVRUnsupportedFormatWhenVRInitializedL();
       
    64     void TestSpecPrepareVRSupportedFormatWhenPreparedL();
       
    65 
       
    66     void TestStartVideoRecordingWhenVRInitializedL();
       
    67     void TestStartVideoRecordingWhenRecordingL();
       
    68 
       
    69     void TestStopVideoRecordingWhenVRInitializedL();
       
    70     void TestStopVideoRecordingWhenPreparedL();
       
    71 
       
    72     void TestCaptureRecordL();
       
    73     void TestRecordCaptureL();
       
    74     void TestRecordRecordL();
       
    75 
       
    76     void TestRecordCaptureComplexSequence1L();
       
    77     void TestRecordCaptureComplexSequence2L();
       
    78 
       
    79     void TestReleaseReserveRecordL();
       
    80 
       
    81     void TestDestroy1L();
       
    82     void TestDestroy2L();
       
    83     void TestDestroy3L();
       
    84     void TestDestroy4L();
       
    85 
       
    86     void TestVideoRecorderOpenErrorL();
       
    87     void TestVideoRecorderPrepareErrorL();
       
    88     void TestVideoRecordingCompleteErrorL();
       
    89     void TestPrepareVideoSettingsErrorL();
       
    90 
       
    91     void TestPrepareAudioBitRateVR0L();
       
    92     void TestPrepareAudioBitRateVR5150L();
       
    93     void TestPrepareAudioBitRateVR12200L();
       
    94     void TestPrepareAudioBitRateVR20000L();
       
    95     void TestPrepareAudioBitRateVR12200AudioType0L();
       
    96     void TestPrepareAudioBitRateVR12200AudioTypeInvL();
       
    97 
       
    98     void TestInitVideoRecorderWithUidL();
       
    99     void TestRemainingTimeWhenVideoNotInitializedL();
       
   100 
       
   101     	// Own test functions that use assertions and may leave (SET 1)
       
   102 
       
   103     void TestPrepareAndRecordQualityLevel0QL();
       
   104     void TestPrepareAndRecordQualityLevel1QL();
       
   105     void TestPrepareAndRecordQualityLevel2QL();
       
   106 
       
   107     void TestVideoRecordingQcif60000Fr10NoAudioNoVfQL();
       
   108     void TestVideoRecordingQcif60000Fr10WithAudioNoVfQL();
       
   109     void TestVideoRecordingQcif60000Fr10NoAudioWithVfQL();
       
   110     void TestVideoRecordingQcif60000Fr10WithAudioWithVfQL();
       
   111 
       
   112     void TestRecordPauseStopQL();
       
   113     void TestPauseWhenPreparedQL();
       
   114     void TestRecordPausePauseStopQL();
       
   115 
       
   116     void TestResumeWhenPreparedQL();
       
   117     void TestResumeWhenNotPausedQL();
       
   118 
       
   119     void TestPrepareVideoRecordingNeg1QL();   
       
   120     void TestPrepareVideoRecording3QL();
       
   121     void TestSpecPrepareVRUnsupportedFormatWhenVRInitializedQL();
       
   122     void TestSpecPrepareVRSupportedFormatWhenPreparedQL();
       
   123 
       
   124     void TestStartVideoRecordingWhenVRInitializedQL();
       
   125     void TestStartVideoRecordingWhenRecordingQL();
       
   126 
       
   127     void TestStopVideoRecordingWhenVRInitializedQL();
       
   128     void TestStopVideoRecordingWhenPreparedQL();
       
   129 
       
   130     void TestCaptureRecordQL();
       
   131     void TestRecordCaptureQL();
       
   132     void TestRecordRecordQL();
       
   133 
       
   134     void TestRecordCaptureComplexSequence1QL();
       
   135     void TestRecordCaptureComplexSequence2QL();
       
   136 
       
   137     void TestReleaseReserveRecordQL();
       
   138 
       
   139     void TestDestroy1QL();
       
   140     void TestDestroy2QL();
       
   141     void TestDestroy3QL();
       
   142     void TestDestroy4QL();
       
   143 
       
   144     void TestVideoRecorderOpenErrorQL();
       
   145     void TestVideoRecorderPrepareErrorQL();
       
   146     void TestVideoRecordingCompleteErrorQL();
       
   147     void TestPrepareVideoSettingsErrorQL();
       
   148 
       
   149     void TestPrepareAudioBitRateVR0QL();
       
   150     void TestPrepareAudioBitRateVR5150QL();
       
   151     void TestPrepareAudioBitRateVR12200QL();
       
   152     void TestPrepareAudioBitRateVR20000QL();
       
   153     void TestPrepareAudioBitRateVR12200AudioType0QL();
       
   154     void TestPrepareAudioBitRateVR12200AudioTypeInvQL();
       
   155 
       
   156     void TestInitVideoRecorderWithUidQL();
       
   157 
       
   158 
       
   159     	// Own test functions that use assertions and may leave (SET 2)
       
   160 
       
   161     void TestPrepareAndRecordQualityLevel0Q4L();
       
   162     void TestPrepareAndRecordQualityLevel1Q4L();
       
   163     void TestPrepareAndRecordQualityLevel2Q4L();
       
   164 
       
   165     void TestVideoRecordingQcif60000Fr10NoAudioNoVfQ4L();
       
   166     void TestVideoRecordingQcif60000Fr10WithAudioNoVfQ4L();
       
   167     void TestVideoRecordingQcif60000Fr10NoAudioWithVfQ4L();
       
   168     void TestVideoRecordingQcif60000Fr10WithAudioWithVfQ4L();
       
   169 
       
   170     void TestRecordPauseStopQ4L();
       
   171     void TestPauseWhenPreparedQ4L();
       
   172     void TestRecordPausePauseStopQ4L();
       
   173 
       
   174     void TestResumeWhenPreparedQ4L();
       
   175     void TestResumeWhenNotPausedQ4L();
       
   176 
       
   177     void TestPrepareVideoRecordingNeg1Q4L();   
       
   178     void TestPrepareVideoRecording3Q4L();
       
   179     void TestSpecPrepareVRUnsupportedFormatWhenVRInitializedQ4L();
       
   180     void TestSpecPrepareVRSupportedFormatWhenPreparedQ4L();
       
   181 
       
   182     void TestStartVideoRecordingWhenVRInitializedQ4L();
       
   183     void TestStartVideoRecordingWhenRecordingQ4L();
       
   184 
       
   185     void TestStopVideoRecordingWhenVRInitializedQ4L();
       
   186     void TestStopVideoRecordingWhenPreparedQ4L();
       
   187 
       
   188     void TestCaptureRecordQ4L();
       
   189     void TestRecordCaptureQ4L();
       
   190     void TestRecordRecordQ4L();
       
   191 
       
   192     void TestRecordCaptureComplexSequence1Q4L();
       
   193     void TestRecordCaptureComplexSequence2Q4L();
       
   194 
       
   195     void TestReleaseReserveRecordQ4L();
       
   196 
       
   197     void TestDestroy1Q4L();
       
   198     void TestDestroy2Q4L();
       
   199     void TestDestroy3Q4L();
       
   200     void TestDestroy4Q4L();
       
   201 
       
   202     void TestVideoRecorderOpenErrorQ4L();
       
   203     void TestVideoRecorderPrepareErrorQ4L();
       
   204     void TestVideoRecordingCompleteErrorQ4L();
       
   205     void TestPrepareVideoSettingsErrorQ4L();
       
   206 
       
   207     void TestPrepareAudioBitRateVR0Q4L();
       
   208     void TestPrepareAudioBitRateVR5150Q4L();
       
   209     void TestPrepareAudioBitRateVR12200Q4L();
       
   210     void TestPrepareAudioBitRateVR20000Q4L();
       
   211     void TestPrepareAudioBitRateVR12200AudioType0Q4L();
       
   212     void TestPrepareAudioBitRateVR12200AudioTypeInvQ4L();
       
   213 
       
   214     void TestInitVideoRecorderWithUidQ4L();
       
   215 
       
   216 
       
   217 private:
       
   218     CCaeTestStatesClient * iStatesClient;
       
   219 };
       
   220 
       
   221 #endif // CAE_TEST_VIDEO_STATES_H