|
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 testGetFocusIndex(); |
|
57 void testSetFocusIndex(); |
|
58 void testSetContextMode(); |
|
59 void testRetrieveItemUri(); |
|
60 void testRetrieveItemUriName(); |
|
61 void testRetrieveItemIcon(); |
|
62 void testRetrieveItemDateIsNotNull(); |
|
63 void testRetrieveItemDateIsValid(); |
|
64 void testRetrieveItemDateValidate(); |
|
65 void testGetVisibleWindowIndex(); |
|
66 void testSetVisibleWindowIndex(); |
|
67 void testItemsAdded(); |
|
68 void testItemsRemoved(); |
|
69 void testHandleReceivedIcon(); |
|
70 void testHandleIconCorrupt(); |
|
71 void testHandleListItemAvailable(); |
|
72 void testRetrieveItemDateIsNull(); |
|
73 // void testRetrieveListTitle(); |
|
74 // void testRetrieveListSubTitle(); |
|
75 // void testRetrieveItemDimension(); |
|
76 // void testHandleGeneralError(); |
|
77 |
|
78 private: |
|
79 |
|
80 /** |
|
81 * object under test |
|
82 */ |
|
83 GlxMLWrapper *mTestObject; |
|
84 }; |
|
85 |
|
86 #endif //__UNITTEST_MEDIALISTWRAPPER_H__ |