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 UT_LCACTIVITYMANAGER_H |
|
18 #define UT_LCACTIVITYMANAGER_H |
|
19 |
|
20 #include <QObject> |
|
21 class LcActivityManager; |
|
22 |
|
23 |
|
24 class UT_LcActivityManager : public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 private slots: |
|
29 |
|
30 /* |
|
31 * In addition, there are four private slots that are not treated as testfunctions. |
|
32 * They will be executed by the testing framework and can be used to initialize and clean up |
|
33 * either the entire test or the current test function. |
|
34 * |
|
35 * initTestCase() will be called before the first testfunction is executed. |
|
36 * cleanupTestCase() will be called after the last testfunction was executed. |
|
37 * init() will be called before each testfunction is executed. |
|
38 * cleanup() will be called after every testfunction. |
|
39 */ |
|
40 void initTestCase(); |
|
41 void cleanupTestCase(); |
|
42 void init(); |
|
43 void cleanup(); |
|
44 |
|
45 private slots: //test methods |
|
46 |
|
47 void testConstructor(); |
|
48 void testInitInactivityTimeout(); |
|
49 void testEnableActivitySimulation(); |
|
50 void testIsActivitySimulationEnabled(); |
|
51 void testTimerEvent(); |
|
52 |
|
53 private: |
|
54 |
|
55 LcActivityManager* mActivityManager; |
|
56 }; |
|
57 |
|
58 |
|
59 |
|
60 |
|
61 #endif //UT_LCACTIVITYMANAGER_H |
|