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 UT_CNTSQLSEARCH_H |
|
18 #define UT_CNTSQLSEARCH_H |
|
19 |
|
20 #include <QObject> |
|
21 |
|
22 class CntSqlSearch; |
|
23 |
|
24 class UT_CntSqlSearch : public QObject |
|
25 { |
|
26 Q_OBJECT |
|
27 |
|
28 private slots: |
|
29 |
|
30 /* |
|
31 * In addition, there are four private slots that are not treated as testfunctions. |
|
32 * They will be executed by the testing framework and can be used to initialize and clean up |
|
33 * either the entire test or the current test function. |
|
34 * |
|
35 * initTestCase() will be called before the first testfunction is executed. |
|
36 * cleanupTestCase() will be called after the last testfunction was executed. |
|
37 * init() will be called before each testfunction is executed. |
|
38 * cleanup() will be called after every testfunction. |
|
39 */ |
|
40 void initTestCase(); |
|
41 void cleanupTestCase(); |
|
42 void init(); |
|
43 void cleanup(); |
|
44 |
|
45 private slots: //test methods |
|
46 |
|
47 void testPredictiveSearch(); |
|
48 void testSelectTableView(); |
|
49 void testIsSubStringSearch(); |
|
50 void testGetNumber(); |
|
51 void testCreateSubStringSearch(); |
|
52 void testCreateStringSearch(); |
|
53 void testCreateSpaceStringSearch(); |
|
54 void testCreateSpaceString(); |
|
55 |
|
56 private: |
|
57 |
|
58 CntSqlSearch* mCntSqlSearch; |
|
59 }; |
|
60 |
|
61 |
|
62 #endif //UT_SQLSEARCH_ |
|