|
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_MEDIALISTWRAPPER_H__ |
|
18 #define __UNITTEST_MEDIALISTWRAPPER_H__ |
|
19 |
|
20 #include <QtTest/QtTest> |
|
21 |
|
22 class GlxMLWrapper; |
|
23 |
|
24 class TestGlxMLWrapper : public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 signals: |
|
29 |
|
30 private slots: |
|
31 /** |
|
32 * called before anything else when test starts |
|
33 */ |
|
34 void initTestCase(); |
|
35 |
|
36 /** |
|
37 * will be called before each testfunction is executed. |
|
38 * |
|
39 */ |
|
40 void init(); |
|
41 |
|
42 /** |
|
43 * will be called after every testfunction. |
|
44 * |
|
45 */ |
|
46 void cleanup(); |
|
47 |
|
48 /** |
|
49 * will be called after testing ends |
|
50 * |
|
51 */ |
|
52 void cleanupTestCase(); |
|
53 |
|
54 |
|
55 void testGetItemCount(); |
|
56 void testRetrieveItemDateIsNull(); |
|
57 void testRetrieveItemIconIsNull(); |
|
58 void testSetContextMode(); |
|
59 void testRetrieveItemIcon(); |
|
60 void testGetFocusIndex(); |
|
61 void testSetFocusIndex(); |
|
62 void testRetrieveItemUri(); |
|
63 void testRetrieveItemUriName(); |
|
64 void testRetrieveItemDateIsNotNull(); |
|
65 void testRetrieveItemDateIsValid(); |
|
66 void testRetrieveItemDateValidate(); |
|
67 void testGetVisibleWindowIndex(); |
|
68 void testSetVisibleWindowIndex(); |
|
69 void testItemsAdded(); |
|
70 void testItemsRemoved(); |
|
71 void testHandleReceivedIcon(); |
|
72 void testHandleIconCorrupt(); |
|
73 void testHandleListItemAvailable(); |
|
74 // void testRetrieveListTitle(); |
|
75 // void testRetrieveListSubTitle(); |
|
76 // void testRetrieveItemDimension(); |
|
77 // void testHandleGeneralError(); |
|
78 |
|
79 private: |
|
80 |
|
81 /** |
|
82 * object under test |
|
83 */ |
|
84 GlxMLWrapper *mTestObject; |
|
85 }; |
|
86 |
|
87 #endif //__UNITTEST_MEDIALISTWRAPPER_H__ |