File indexing completed on 2024-05-12 04:49:41

0001 /****************************************************************************************
0002  * Copyright (c) 2012 Jasneet Singh Bhatti <jazneetbhatti@gmail.com>                    *
0003  * This program is free software; you can redistribute it and/or modify it under        *
0004  * the terms of the GNU General Public License as published by the Free Software        *
0005  * Foundation; either version 2 of the License, or (at your option) any later           *
0006  * version.                                                                             *
0007  *                                                                                      *
0008  * This program is distributed in the hope that it will be useful, but WITHOUT ANY      *
0009  * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A      *
0010  * PARTICULAR PURPOSE. See the GNU General Public License for more details.             *
0011  *                                                                                      *
0012  * You should have received a copy of the GNU General Public License along with         *
0013  * this program.  If not, see <http://www.gnu.org/licenses/>.                           *
0014  ****************************************************************************************/
0015 
0016 #ifndef TESTQUERYMAKER_H
0017 #define TESTQUERYMAKER_H
0018 
0019 #include <QPointer>
0020 #include <QtTest>
0021 
0022 class MockQueryMaker;
0023 
0024 class TestQueryMaker : public QObject
0025 {
0026     Q_OBJECT
0027 
0028     private Q_SLOTS:
0029         void initTestCase();
0030         void cleanupTestCase();
0031 
0032         // Data driven testing of setAutoDelete
0033         void testSetAutoDelete_data();
0034         void testSetAutoDelete();
0035 
0036     private:
0037         QPointer<MockQueryMaker> m_mockQueryMaker;
0038 };
0039 
0040 #endif // TESTQUERYMAKER_H