equal
deleted
inserted
replaced
18 #ifndef UT_QTCPIXSEARCHER_H_ |
18 #ifndef UT_QTCPIXSEARCHER_H_ |
19 #define UT_QTCPIXSEARCHER_H_ |
19 #define UT_QTCPIXSEARCHER_H_ |
20 |
20 |
21 #include <QtTest/QtTest> |
21 #include <QtTest/QtTest> |
22 |
22 |
23 class QCPixSearcher; |
23 class CpixSearcher; |
24 class QCPixDocument; |
24 class CpixDocument; |
25 |
25 |
26 class TestQCPixSearcher: public QObject |
26 class TestCpixSearcher: public QObject |
27 { |
27 { |
28 Q_OBJECT |
28 Q_OBJECT |
29 public slots: |
29 public slots: |
30 void HandleDatabaseSet(int aError); |
30 void HandleDatabaseSet(int aError); |
31 void HandleSearchResults(int aError, int aEstimatedCount); |
31 void HandleSearchResults(int aError, int aEstimatedCount); |
32 void HandleDocument(int aError, QCPixDocument* aDoc); |
32 void HandleDocument(int aError, CpixDocument* aDoc); |
33 |
33 |
34 private slots: |
34 private slots: |
35 void testNewInstance(); |
35 void testNewInstance(); |
36 void testSetDatabase(); |
36 void testSetDatabase(); |
37 void testSetDatabase_data(); |
37 void testSetDatabase_data(); |
49 //private slots that will be called before and after EACH test case. |
49 //private slots that will be called before and after EACH test case. |
50 void init(); |
50 void init(); |
51 void cleanup(); |
51 void cleanup(); |
52 |
52 |
53 private: |
53 private: |
54 QCPixSearcher* iSearcher; |
54 CpixSearcher* iSearcher; |
55 QCPixDocument* iDoc; |
55 CpixDocument* iDoc; |
56 bool iHandleSetDatabaseComplete; |
56 bool iHandleSetDatabaseComplete; |
57 int iHandleSearchResultsComplete; |
57 int iHandleSearchResultsComplete; |
58 bool iHandleGetDocumentComplete; |
58 bool iHandleGetDocumentComplete; |
59 int iError; |
59 int iError; |
60 }; |
60 }; |