File indexing completed on 2024-06-09 04:46:05

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 TESTMETACONSTANTS_H
0017 #define TESTMETACONSTANTS_H
0018 
0019 #include <QtTest>
0020 
0021 class TestMetaConstants : public QObject
0022 {
0023     Q_OBJECT
0024 
0025     private Q_SLOTS:
0026         // Data driven tests
0027         void testNameForField_data();
0028         void testNameForField();
0029         void testFieldForName_data();
0030         void testFieldForName();
0031         void testI18nForField_data();
0032         void testI18nForField();
0033         void testShortI18nForField_data();
0034         void testShortI18nForField();
0035         void testPlaylistNameForField_data();
0036         void testPlaylistNameForField();
0037         void testFieldForPlaylistName_data();
0038         void testFieldForPlaylistName();
0039         void testIconForField_data();
0040         void testIconForField();
0041 
0042         // Uses Mock classes for testing
0043         void testValueForField();
0044 
0045     private:
0046         // Test data shared by testNameForField and testFieldForName
0047         void dataNameField();
0048 
0049         // Test data shared by testPlaylistNameForField and testFieldForPlaylistName
0050         void dataPlaylistNameField();
0051 };
0052 
0053 #endif // TESTMETACONSTANTS_H