1 /*************************************************************************** 2 * Copyright (c) 2013 Tatjana Gornak <tgornak@gmail.com> * 3 * * 4 * This program is free software; you can redistribute it and/or modify * 5 * it under the terms of the GNU General Public License as published by * 6 * the Free Software Foundation; either version 2 of the License, or * 7 * (at your option) any later version. * 8 * * 9 * This program is distributed in the hope that it will be useful, * 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of * 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 12 * GNU General Public License for more details. * 13 * * 14 * You should have received a copy of the GNU General Public License * 15 * along with this program; if not, write to the * 16 * Free Software Foundation, Inc., * 17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * 18 ***************************************************************************/ 19 20 #ifndef TESTASXPLAYLIST_H 21 #define TESTASXPLAYLIST_H 22 23 #include <QObject> 24 #include <QString> 25 26 class QTemporaryDir; 27 28 namespace Playlists { class ASXPlaylist; } 29 30 class TestASXPlaylist : public QObject 31 { 32 Q_OBJECT 33 34 public: 35 TestASXPlaylist(); 36 37 private Q_SLOTS: 38 void initTestCase(); 39 void cleanupTestCase(); 40 41 void testSetAndGetName(); 42 void testTracks(); 43 void testUidUrl(); 44 void testSetAndGetGroups(); 45 void testIsWritable(); 46 void testSave(); 47 48 private: 49 Playlists::ASXPlaylist *m_testPlaylist; 50 QString dataPath( const QString &relPath = QString() ); 51 QTemporaryDir *m_tempDir; 52 }; 53 54 #endif // TESTASXPLAYLIST_H 55