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: CaeTestStillStates.h |
|
15 * |
|
16 */ |
|
17 #ifndef CAE_TEST_STILL_STATES_H |
|
18 #define CAE_TEST_STILL_STATES_H |
|
19 |
|
20 |
|
21 #include <e32base.h> |
|
22 |
|
23 #include "CaeTestStatesClient.h" |
|
24 |
|
25 class CCaeTestStillStates : public CTestCase |
|
26 { |
|
27 public: |
|
28 |
|
29 CCaeTestStillStates (); |
|
30 ~CCaeTestStillStates (); |
|
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 void TestPrepareStillCaptureNeg1L(); |
|
45 void TestPrepareStillCapture3L(); |
|
46 void TestSpecPrepareSCUnsupportedFormatWhenInitializedL(); |
|
47 void TestSpecPrepareSCSupportedFormatWhenPreparedL(); |
|
48 |
|
49 void TestPrepareCroppedStillCapturingL(); |
|
50 void TestPrepareStillCaptureWhenPowerOffL(); |
|
51 void TestCaptureAfterPowerOffOnL(); |
|
52 |
|
53 void TestPrepareStillCaptureWhenRecordingL(); |
|
54 void TestPrepareStillCaptrureWrongSizeL(); |
|
55 |
|
56 void TestReleaseL(); |
|
57 void TestReleaseReleaseL(); |
|
58 void TestReserveL(); |
|
59 void TestReleaseReserveCaptureL(); |
|
60 |
|
61 void TestPowerOffPowerOffL(); |
|
62 void TestStartVfStartVfL(); |
|
63 void TestStartVfWhenPowerOffL(); |
|
64 |
|
65 void TestCancelCaptureStillWhenInitializedL(); |
|
66 void TestCancelCaptureStillAtSnapL(); |
|
67 |
|
68 void TestCaptureCaptureStillBurst3L(); |
|
69 void TestSpecPrepCaptureCaptureStillBurst3L(); |
|
70 void TestCaptureStillBurst3CaptureStillL(); |
|
71 void TestSpecPrepCaptureStillBurst3CaptureStillL(); |
|
72 void TestCancelCaptureStillBurst3AtSnapL(); |
|
73 void TestCancelCaptureStillBurst3AtMomentL(); |
|
74 void TestCaptureStillBurstMp2Exif100IgnoreErrorsL(); |
|
75 void TestCaptureStillBurstMp1Exif100IgnoreErrorsL(); |
|
76 void TestCaptureStillBurstVgaBitmap100IgnoreErrorsL(); |
|
77 void TestCaptureStillBurstVgaJpeg100IgnoreErrorsL(); |
|
78 |
|
79 void TestDestroy1L(); |
|
80 void TestDestroy2L(); |
|
81 void TestDestroy3L(); |
|
82 void TestDestroy4L(); |
|
83 void TestDestroy5L(); |
|
84 void TestDestroy6L(); |
|
85 void TestDestroy7L(); |
|
86 |
|
87 void TestEncodingErrorL(); |
|
88 void TestPowerErrorL(); |
|
89 void TestReserveErrorL(); |
|
90 void TestStillCaptureErrorL(); |
|
91 void TestSnapImageErrorL(); |
|
92 void TestStillImageErrorL(); |
|
93 void TestStillConvertError1L(); |
|
94 void TestStillConvertError2L(); |
|
95 void TestStillConvertError3L(); |
|
96 void TestSetCameraIndexLowL(); |
|
97 void TestSetCameraIndexHighL(); |
|
98 |
|
99 private: |
|
100 |
|
101 CCaeTestStatesClient * iStatesClient; |
|
102 }; |
|
103 |
|
104 #endif // CAE_TEST_STILL_STATES_H |
|