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

0001 /*
0002     This file is part of the KDE KFileMetaData project
0003     SPDX-FileCopyrightText: 2014 Vishesh Handa <me@vhanda.in>
0004 
0005     SPDX-License-Identifier: LGPL-2.1-or-later
0006 */
0007 
0008 #ifndef PROPERTYINFOTEST_H
0009 #define PROPERTYINFOTEST_H
0010 
0011 #include <QObject>
0012 
0013 namespace KFileMetaData {
0014 
0015 class PropertyInfoTest : public QObject
0016 {
0017     Q_OBJECT
0018 public:
0019     void setLocalized(bool);
0020 
0021 private Q_SLOTS:
0022     void init();
0023     void testNameIdMapping();
0024     void testFormatAsDisplayString();
0025     void testFormatAsDisplayString_data();
0026     void benchmarkPropertyInfo();
0027     void benchmarkPropertyInfo_data();
0028     void benchmarkPropertyInfoFromName();
0029     void benchmarkPropertyInfoFromName_data();
0030     void benchmarkPropertyInfoDisplayName();
0031     void benchmarkPropertyInfoDisplayName_data();
0032 private:
0033     bool m_useLocalization = false;
0034 };
0035 
0036 }
0037 
0038 #endif // PROPERTYINFOTEST_H