camerauis/cameraxui/cxengine/tsrc/unit/unittest_cxecameradevicecontrolsymbian/unittest_cxecameradevicecontrolsymbian.h
equal
deleted
inserted
replaced
|
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: |
|
15 * |
|
16 */ |
|
17 #ifndef UNITTEST_CXECAMERADEVICECONTROLSYMBIAN_H |
|
18 #define UNITTEST_CXECAMERADEVICECONTROLSYMBIAN_H |
|
19 |
|
20 #include <QObject> |
|
21 |
|
22 #include "cxenamespace.h" |
|
23 |
|
24 class CxeCameraDeviceControlUnit; |
|
25 class CxeFakeCameraDevice; |
|
26 |
|
27 class UnitTestCxeCameraDeviceControlSymbian : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 UnitTestCxeCameraDeviceControlSymbian(); |
|
33 ~UnitTestCxeCameraDeviceControlSymbian(); |
|
34 |
|
35 private slots: |
|
36 void init(); |
|
37 void cleanup(); |
|
38 |
|
39 void testMode(); |
|
40 void testSetMode(); |
|
41 void testRelease(); |
|
42 void testCameraIndex(); |
|
43 void testSwitchCamera(); |
|
44 void testReserve(); |
|
45 |
|
46 private: |
|
47 // Helper methods for test cases |
|
48 |
|
49 private: |
|
50 // We actually use the a derived class (CxeCameraDeviceControlUnit) for testing, |
|
51 // because we need to be able to replace the CxeCameraDevice with a fake |
|
52 // implementation. |
|
53 CxeCameraDeviceControlUnit *mDeviceControl; // This will be recreated for each test |
|
54 CxeFakeCameraDevice *mFakeCameraDevice; // This will be recreated for each test |
|
55 }; |
|
56 |
|
57 #endif // UNITTEST_CXECAMERADEVICECONTROLSYMBIAN_H |