emailservices/nmutilities/tsrc/unittests/unittest_nmcontacthistorymodel/unittest_nmcontacthistorymodel.h
equal
deleted
inserted
replaced
|
1 /* |
|
2 * unittest_ |
|
3 * |
|
4 */ |
|
5 |
|
6 #ifndef UNITTEST_NMCONTACTHISTORYMODEL_H_ |
|
7 #define UNITTEST_NMCONTACTHISTORYMODEL_H_ |
|
8 |
|
9 #include <QtTest/QtTest> |
|
10 |
|
11 class NmContactHistoryModel; |
|
12 |
|
13 class TestNmContactHistoryModel : public QObject |
|
14 { |
|
15 Q_OBJECT |
|
16 |
|
17 public: |
|
18 |
|
19 TestNmContactHistoryModel(); |
|
20 ~TestNmContactHistoryModel(); |
|
21 |
|
22 private slots: |
|
23 |
|
24 void initTestCase(); |
|
25 void cleanupTestCase(); |
|
26 void init(); |
|
27 void cleanup(); |
|
28 |
|
29 // Test slot for testing signal. |
|
30 void test_modelCompleted(int err); |
|
31 |
|
32 //tests |
|
33 void testConstructor(); |
|
34 void testDestructor(); |
|
35 void testRowCount(); |
|
36 void testData(); |
|
37 void testQuery(); |
|
38 void testHandleQueryCompleted(); |
|
39 |
|
40 private: |
|
41 |
|
42 NmContactHistoryModel *mModel; |
|
43 bool mSlotCalled; |
|
44 }; |
|
45 |
|
46 #endif /* UNITTEST_NMCONTACTHISTORYMODEL_H_ */ |