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 TESTCOLLECTION_H
0017 #define TESTCOLLECTION_H
0018 
0019 #include <QtTest>
0020 
0021 namespace Collections
0022 {
0023     class Collection;
0024     class TrackProvider;
0025 
0026 class TestCollection : public QObject
0027 {
0028     Q_OBJECT
0029 
0030     private Q_SLOTS:
0031         void initTestCase();
0032         void cleanupTestCase();
0033 
0034         // TrackProvider
0035         void testTrackForUrl();
0036 
0037         //Collection
0038         void testLocation();
0039 
0040         /**
0041          * Contains different return values for isWritable() to be tested with
0042          */
0043         void testIsWritable_data();
0044         void testIsWritable();
0045 
0046         /**
0047          * Contains different return values for isWritable() to be tested with
0048          */
0049         void testIsOrganizable_data();
0050         void testIsOrganizable();
0051 
0052     private:
0053         Collection *m_collection1, *m_collection2;
0054         TrackProvider *m_trackProvider;
0055 };
0056 
0057 } //namespace Collections
0058 
0059 #endif // TESTCOLLECTION_H