equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: tester for methods in VideoSortFilterProxyModel |
14 * Description: tester for methods in VideoSortFilterProxyModel |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 // Version : %version: 24 % |
|
19 |
18 #ifndef __TESTLISTWIDGET_H__ |
20 #ifndef __TESTLISTWIDGET_H__ |
19 #define __TESTLISTWIDGET_H__ |
21 #define __TESTLISTWIDGET_H__ |
20 |
22 |
21 |
|
22 // INCLUDES |
23 // INCLUDES |
23 #include <QtTest/QtTest> |
24 #include <QtTest/QtTest> |
|
25 #include "videocollectioncommon.h" |
24 |
26 |
25 class VideoListWidget; |
27 class VideoListWidget; |
26 class DummyDataModel; |
28 class DummyDataModel; |
27 class HbAbstractViewItem; |
29 class HbAbstractViewItem; |
28 class HbView; |
30 class HbView; |
32 class ListWidgetTester; |
34 class ListWidgetTester; |
33 class VideoServices; |
35 class VideoServices; |
34 class VideoListDataModel; |
36 class VideoListDataModel; |
35 class VideoCollectionUiLoader; |
37 class VideoCollectionUiLoader; |
36 |
38 |
|
39 using namespace VideoCollectionCommon; |
|
40 |
37 class TestListWidget : public QObject |
41 class TestListWidget : public QObject |
38 { |
42 { |
39 Q_OBJECT |
43 Q_OBJECT |
40 |
44 |
41 public: |
45 public: |
42 |
46 |
43 void setRowCount(int count, int type = 0, VideoListDataModel *model = 0); |
47 void setRowCount(int count, |
|
48 TModelType type = EModelTypeAllVideos, |
|
49 VideoListDataModel *model = 0); |
44 |
50 |
45 // test functions for the test framework |
51 // test functions for the test framework |
46 private slots: |
52 private slots: |
47 |
53 |
48 /** |
54 /** |
93 * verifies emitActivated |
99 * verifies emitActivated |
94 */ |
100 */ |
95 void testEmitActivated(); |
101 void testEmitActivated(); |
96 |
102 |
97 /** |
103 /** |
98 * verifies longPressGesture |
104 * verifies longPressedSlot |
99 */ |
105 */ |
100 void testLongPressGesture(); |
106 void testLongPressedSlot(); |
|
107 |
|
108 /** |
|
109 * verifies panGesture |
|
110 */ |
|
111 void testPanGesture(); |
101 |
112 |
102 /** |
113 /** |
103 * verifies setContextMenu |
114 * verifies setContextMenu |
104 */ |
115 */ |
105 void testSetContextMenu(); |
116 void testSetContextMenu(); |
118 * verifies renameSlot |
129 * verifies renameSlot |
119 */ |
130 */ |
120 void testRenameSlot(); |
131 void testRenameSlot(); |
121 |
132 |
122 /** |
133 /** |
123 * verifies playItemSlot |
134 * verifies openItemSlot |
124 */ |
135 */ |
125 void testPlayItemSlot(); |
136 void testOpenItemSlot(); |
126 |
|
127 /** |
|
128 * verifies playAllSlot |
|
129 */ |
|
130 void testPlayAllSlot(); |
|
131 |
137 |
132 /** |
138 /** |
133 * verifies addToCollectionSlot |
139 * verifies addToCollectionSlot |
134 */ |
140 */ |
135 void testAddToCollectionSlot(); |
141 void testAddToCollectionSlot(); |