File indexing completed on 2024-04-21 04:54:20
0001 /* 0002 SPDX-FileCopyrightText: 2007 Richard Lärkäng <nouseforaname@home.se> 0003 0004 SPDX-License-Identifier: LGPL-2.0-or-later 0005 */ 0006 0007 #ifndef CACHETEST_H 0008 #define CACHETEST_H 0009 0010 #include "libkcddb/cdinfo.h" 0011 #include "libkcddb/kcddb.h" 0012 0013 namespace KCDDB 0014 { 0015 class Client; 0016 } 0017 0018 #include <QObject> 0019 0020 class CacheTest : public QObject 0021 { 0022 Q_OBJECT 0023 private Q_SLOTS: 0024 void initTestCase(); 0025 void cleanupTestCase(); 0026 void testFreedb(); 0027 void testUser(); 0028 void testMusicbrainz(); 0029 private: 0030 bool verify(const QString& source, const QString& discid, const KCDDB::CDInfo& info); 0031 0032 KCDDB::Client* m_client; 0033 KCDDB::CDInfo m_info; 0034 KCDDB::TrackOffsetList m_list; 0035 }; 0036 0037 #endif