|
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 |
|
18 |
|
19 #ifndef UT_LCUICOMPONENTREPOSITORY_H |
|
20 #define UT_LCUICOMPONENTREPOSITORY_H |
|
21 |
|
22 #include <QObject> |
|
23 |
|
24 class LcUiEngine; |
|
25 class LcUiComponentRepository; |
|
26 class HbMainWindow; |
|
27 |
|
28 |
|
29 class UT_LcUiComponentRepository : public QObject |
|
30 { |
|
31 Q_OBJECT |
|
32 |
|
33 private slots: |
|
34 |
|
35 /* |
|
36 * In addition, there are four private slots that are not treated as testfunctions. |
|
37 * They will be executed by the testing framework and can be used to initialize and clean |
|
38 * up either the entire test or the current test function. |
|
39 * |
|
40 * initTestCase() will be called before the first testfunction is executed. |
|
41 * cleanupTestCase() will be called after the last testfunction was executed. |
|
42 * init() will be called before each testfunction is executed. |
|
43 * cleanup() will be called after every testfunction. |
|
44 */ |
|
45 void initTestCase(); |
|
46 void cleanupTestCase(); |
|
47 void init(); |
|
48 void cleanup(); |
|
49 |
|
50 |
|
51 private slots: //test methods |
|
52 |
|
53 void testConstructor(); |
|
54 void testIdleView(); |
|
55 void testReceiveView(); |
|
56 void testTwowayView(); |
|
57 void testSendView(); |
|
58 void testAllInOneView(); |
|
59 void testReceiveOnlyView(); |
|
60 void testAcceptQuery(); |
|
61 void testInvitingNote(); |
|
62 void testWaitingNote(); |
|
63 void testRecipientQuery(); |
|
64 void testShareOwnVideoQuery(); |
|
65 void testSharedVideoContextMenu(); |
|
66 void testLoadView_FileNotFound(); |
|
67 void testConnect(); |
|
68 void testLoadLayout(); |
|
69 |
|
70 private: |
|
71 |
|
72 LcUiEngine* mEngine; |
|
73 LcUiComponentRepository* mRepository; |
|
74 }; |
|
75 |
|
76 |
|
77 #endif //UT_LCUICOMPONENTREPOSITORY_H |