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

0001 /*
0002     SPDX-FileCopyrightText: 2018 Michael Heidelbach <ottwolt@gmail.com>
0003     SPDX-FileCopyrightText: 2022 Adriaan de Groot <groot@kde.org>
0004 
0005     SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0006 */
0007 
0008 #ifndef FILEMETADATADATEDISPLAYTEST_H
0009 #define FILEMETADATADATEDISPLAYTEST_H
0010 
0011 #include <filemetadatawidget.h>
0012 
0013 #include <QTemporaryDir>
0014 
0015 class FileMetadataDateDisplayTest : public QObject
0016 {
0017     Q_OBJECT
0018 private Q_SLOTS:
0019     void initTestCase();
0020     void cleanupTestCase();
0021 
0022     /// Validate that KFormat produces the expected date strings
0023     void validateDateFormats();
0024 
0025     void shouldDisplayLongAndShortDates();
0026     void shouldDisplayLongAndShortDates_data();
0027 
0028 private:
0029     QTemporaryDir m_testDir;
0030 };
0031 
0032 #endif // FILEMETADATADATEDISPLAYTEST_H