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 CXEENGINETEST_H |
|
18 #define CXEENGINETEST_H |
|
19 |
|
20 // Traces are mandatory for automated testing |
|
21 #ifndef _DEBUG |
|
22 #define _DEBUG |
|
23 #endif |
|
24 |
|
25 #include <QObject> |
|
26 #include <hbmainwindow.h> |
|
27 |
|
28 class CxeEngine; |
|
29 |
|
30 class TestCxeEngine : public QObject |
|
31 { |
|
32 Q_OBJECT |
|
33 |
|
34 private: |
|
35 void init(); |
|
36 void cleanup(); |
|
37 |
|
38 private slots: |
|
39 void initTestCase(); |
|
40 void cleanupTestCase(); |
|
41 |
|
42 void createAndDestroyEngine(); |
|
43 void initStillImageMode(); |
|
44 |
|
45 void testAutoFocusBasic(); |
|
46 void testImageCapture(); |
|
47 void testBatchCapture(); |
|
48 |
|
49 void initVideoMode(); |
|
50 void testVideoCapture(); |
|
51 |
|
52 private: |
|
53 CxeEngine *mEngine; // This will be recreated for each test |
|
54 HbMainWindow *mWindow; |
|
55 }; |
|
56 |
|
57 #endif // CXEENGINETEST_H |
|