File indexing completed on 2024-12-08 10:14:50

0001 /*
0002     SPDX-FileCopyrightText: 2018 Michael Heidelbach <ottwolt@gmail.com>
0003 
0004     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005 */
0006 
0007 #ifndef FILEMETADATAWIDGETTEST_H
0008 #define FILEMETADATAWIDGETTEST_H
0009 
0010 #include <filemetadatawidget.h>
0011 #include <QByteArray>
0012 #include <QMap>
0013 #include <QString>
0014 
0015 class FileMetadataWidgetTest : public QObject
0016 {
0017     Q_OBJECT
0018 private Q_SLOTS:
0019     void initTestCase();
0020 
0021     void shouldSignalOnceWithoutFile();
0022     void shouldSignalOnceFile();
0023     void shouldSignalOnceFiles();
0024     void shouldShowProperties();
0025     void shouldShowCommonProperties();
0026     void shouldShowMultiValueProperties();
0027 
0028 private:
0029     bool m_mayTestRating = false;
0030     QMap<QByteArray, QString> m_sampleFiles;
0031 };
0032 
0033 #endif // FILEMETADATAWIDGETTEST_H