File indexing completed on 2024-04-28 15:22:17

0001 /*
0002     SPDX-FileCopyrightText: 2016 Varun Joshi <varunj.1011@gmail.com>
0003     SPDX-FileCopyrightText: 2018 Alexander Stippich <a.stippich@gmx.net>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef TAGLIBWRITERTEST_H
0009 #define TAGLIBWRITERTEST_H
0010 
0011 #include <QObject>
0012 
0013 namespace KFileMetaData {
0014     class ExtractionResult;
0015 }
0016 
0017 class TagLibWriterTest : public QObject
0018 {
0019     Q_OBJECT
0020 private:
0021     QString testFilePath(const QString& fileName) const;
0022     void extractResult(const QString &mimeType, KFileMetaData::ExtractionResult &result);
0023 
0024 private Q_SLOTS:
0025     void initTestCase();
0026     void testCommonData();
0027     void testCommonData_data();
0028     void testExtendedData();
0029     void testExtendedData_data();
0030     void testRating();
0031     void testRating_data();
0032     void testComplexContactData();
0033     void testComplexContactData_data();
0034     void testImageWrite();
0035     void testImageWrite_data();
0036     void testImageDelete();
0037     void testImageDelete_data();
0038     void testImageDeleteInsert();
0039     void testImageDeleteInsert_data();
0040     void testMultiImage();
0041     void testMultiImage_data();
0042     
0043 private:
0044     QByteArray m_coverImage;
0045 };
0046 
0047 #endif // TAGLIBWRITERTEST_H