camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxeautofocuscontrolsymbian/unittest_cxeautofocuscontrolsymbian.h
equal
deleted
inserted
replaced
19 |
19 |
20 #include <QObject> |
20 #include <QObject> |
21 |
21 |
22 #include "cxenamespace.h" |
22 #include "cxenamespace.h" |
23 |
23 |
24 class CxeAutoFocusControlSymbian; |
24 class CxeAutoFocusControlSymbianUnit; |
25 class CxeFakeCameraDeviceControl; |
25 class CxeFakeCameraDeviceControl; |
26 class CxeFakeCameraDevice; |
26 class CxeFakeCameraDevice; |
27 class CxeFakeSettings; |
27 class CxeFakeSettings; |
28 |
28 |
29 class UnitTestCxeAutoFocusControlSymbian : public QObject |
29 class UnitTestCxeAutoFocusControlSymbian : public QObject |
38 void init(); |
38 void init(); |
39 void cleanup(); |
39 void cleanup(); |
40 |
40 |
41 void testStart(); |
41 void testStart(); |
42 void testCancel(); |
42 void testCancel(); |
43 void testMode(); |
43 |
44 void testIsFixedFocusMode(); |
44 void testIsFixedFocusMode(); |
|
45 void testSupported(); |
45 |
46 |
46 void testSupported(); |
47 // tests for protected slots? |
|
48 void testPrepareForCameraDelete(); |
|
49 void testHandleCameraAllocated(); |
|
50 void testPrepareForRelease(); |
|
51 void testHandleCameraEvent(); |
|
52 void testHandleSceneChanged(); |
|
53 void testHandleSettingValueChanged(); |
47 |
54 |
48 private: |
55 private: |
49 // Helper methods for test cases |
56 // Helper methods for test cases |
50 |
57 |
51 private: |
58 private: |
52 |
|
53 // Need to test with derived class to hide missing ECAM. |
59 // Need to test with derived class to hide missing ECAM. |
54 CxeAutoFocusControlSymbian *mAutoFocusControl; |
60 CxeAutoFocusControlSymbianUnit *mAutoFocusControl; |
55 CxeFakeCameraDeviceControl *mCameraDeviceControl; |
61 CxeFakeCameraDeviceControl *mCameraDeviceControl; |
56 CxeFakeCameraDevice *mCameraDevice; |
62 CxeFakeCameraDevice *mCameraDevice; |
57 CxeFakeSettings *mFakeSettings; |
63 CxeFakeSettings *mFakeSettings; |
|
64 |
58 }; |
65 }; |
59 |
66 |
60 #endif // UNITTEST_CXEAUTOFOCUSCONTROLSYMBIAN_H |
67 #endif // UNITTEST_CXEAUTOFOCUSCONTROLSYMBIAN_H |