|
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_CXESTILLIMAGESYMBIAN_H |
|
18 #define UNITTEST_CXESTILLIMAGESYMBIAN_H |
|
19 |
|
20 #include <QObject> |
|
21 #include "cxevideocapturecontrolsymbian.h" |
|
22 #include "cxevideocapturecontrolsymbianunit.h" |
|
23 |
|
24 class CxeFakeCameraDevice; |
|
25 class CxeFakeViewfinderControl; |
|
26 class CxeFakeCameraDeviceControl; |
|
27 class CxeFakeSettings; |
|
28 class CxeFakeFilenameGenerator; |
|
29 class QSignalSpy; |
|
30 class CxeFakeQualityPresets; |
|
31 |
|
32 class UnitTestCxeVideoCaptureControlSymbian : public QObject |
|
33 { |
|
34 Q_OBJECT |
|
35 |
|
36 public: |
|
37 UnitTestCxeVideoCaptureControlSymbian(); |
|
38 ~UnitTestCxeVideoCaptureControlSymbian(); |
|
39 |
|
40 private slots: |
|
41 void init(); |
|
42 void cleanup(); |
|
43 void initTestCase(); |
|
44 void cleanupTestCase(); |
|
45 |
|
46 void testState(); |
|
47 void testRecord(); |
|
48 void testPause(); |
|
49 void testStop(); |
|
50 void testRemainingTime(); |
|
51 void testElapsedTime(); |
|
52 void testReset(); |
|
53 void testFilename(); |
|
54 void testSnapshot(); |
|
55 void testHandleSnapshotEvent(); |
|
56 void testInit(); |
|
57 void testDeinit(); |
|
58 void testHandleSoundPlayed(); |
|
59 void testMvruoOpenComplete(); |
|
60 void testMvruoPrepareComplete(); |
|
61 void testMvruoRecordComplete(); |
|
62 void testMvruoEvent(); |
|
63 |
|
64 private: |
|
65 // Helper methods for test cases |
|
66 void doPrepareStuff(); |
|
67 |
|
68 private: |
|
69 CxeVideoCaptureControlSymbianUnit *mCxeVideoCaptureControlSymbian; |
|
70 CxeFakeCameraDevice *mCameraDevice; |
|
71 CxeFakeViewfinderControl *mViewfinderControl; |
|
72 CxeFakeCameraDeviceControl *mCameraDeviceControl; |
|
73 CxeFakeSettings *mSettings; |
|
74 CxeFakeFilenameGenerator *mFilenameGeneratorSymbian; |
|
75 QSignalSpy *mSpyState; |
|
76 CxeFakeQualityPresets *mFakeQualityPresets; |
|
77 }; |
|
78 |
|
79 #endif // UNITTEST_CXESTILLIMAGESYMBIAN_H |