File indexing completed on 2024-06-09 04:46:04
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 TESTMETAALBUMKEY_H 0017 #define TESTMETAALBUMKEY_H 0018 0019 #include "core/meta/forward_declarations.h" 0020 0021 #include <QtTest> 0022 0023 class TestMetaAlbumKey : public QObject 0024 { 0025 Q_OBJECT 0026 0027 public: 0028 ~TestMetaAlbumKey() override; 0029 0030 private Q_SLOTS: 0031 void initTestCase(); 0032 0033 /** 0034 * Test constructor AlbumKey( const AlbumPtr &album ) 0035 */ 0036 void testAlbumKey(); 0037 void testOperatorAssignment(); 0038 void testOperatorLessThan(); 0039 0040 private: 0041 /** 0042 * For portability in fetching tracks from disk 0043 */ 0044 QString dataPath( const QString &relPath ); 0045 0046 Meta::TrackPtr m_track1, m_track2, m_track3; 0047 Meta::AlbumPtr m_album1, m_album2, m_album3; 0048 }; 0049 0050 #endif // TESTMETAALBUMKEY_H