|
1 /* |
|
2 * Copyright (c) 2009-2010 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: |
|
15 * |
|
16 */ |
|
17 #ifndef UNITTEST_CXEAUTOFOCUSCONTROLSYMBIAN_H |
|
18 #define UNITTEST_CXEAUTOFOCUSCONTROLSYMBIAN_H |
|
19 |
|
20 #include <QObject> |
|
21 |
|
22 #include "cxenamespace.h" |
|
23 |
|
24 class CxeAutoFocusControlSymbianUnit; |
|
25 class CxeFakeCameraDeviceControl; |
|
26 class CxeFakeCameraDevice; |
|
27 class CxeFakeSettings; |
|
28 |
|
29 class UnitTestCxeAutoFocusControlSymbian : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 public: |
|
34 UnitTestCxeAutoFocusControlSymbian(); |
|
35 ~UnitTestCxeAutoFocusControlSymbian(); |
|
36 |
|
37 private slots: |
|
38 void init(); |
|
39 void cleanup(); |
|
40 |
|
41 void testStart(); |
|
42 void testCancel(); |
|
43 |
|
44 void testIsFixedFocusMode(); |
|
45 void testSupported(); |
|
46 |
|
47 // tests for protected slots? |
|
48 void testPrepareForCameraDelete(); |
|
49 void testHandleCameraAllocated(); |
|
50 void testPrepareForRelease(); |
|
51 |
|
52 void testHandleCameraEventOptimalFocus(); |
|
53 void testHandleCameraEventAutofocusChanged(); |
|
54 void testHandleCameraEventFocusRangeChanged(); |
|
55 |
|
56 |
|
57 void testHandleSceneChanged(); |
|
58 void testHandleSettingValueChanged(); |
|
59 |
|
60 private: |
|
61 // Helper methods for test cases |
|
62 |
|
63 private: |
|
64 // Need to test with derived class to hide missing ECAM. |
|
65 CxeAutoFocusControlSymbianUnit *mAutoFocusControl; |
|
66 CxeFakeCameraDeviceControl *mCameraDeviceControl; |
|
67 CxeFakeCameraDevice *mCameraDevice; |
|
68 CxeFakeSettings *mFakeSettings; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // UNITTEST_CXEAUTOFOCUSCONTROLSYMBIAN_H |