File indexing completed on 2024-05-12 15:55:35

0001 // SPDX-FileCopyrightText: 2021-2022 Johannes Zarl-Zierl <johannes@zarl-zierl.at>
0002 //
0003 // SPDX-License-Identifier: LicenseRef-KDE-Accepted-GPL
0004 
0005 #ifndef KPATEST_FILENAME_H
0006 #define KPATEST_FILENAME_H
0007 
0008 #include "UIDelegate.h"
0009 
0010 #include <QTemporaryDir>
0011 #include <QtTest/QTest>
0012 
0013 namespace KPATest
0014 {
0015 class TestFileName : public QObject
0016 {
0017     Q_OBJECT
0018 private Q_SLOTS:
0019     /**
0020      * @brief Check behaviour with uninitialized SettingsData.
0021      * Merely creating a null FileName should not trigger an assertion.
0022      */
0023     void uninitialized();
0024     void absolute();
0025     void relative();
0026     void operators();
0027     void initTestCase();
0028 
0029 private:
0030     QTemporaryDir m_tmpDir;
0031     DB::DummyUIDelegate m_uiDelegate;
0032 };
0033 }
0034 
0035 #endif
0036 
0037 // vi:expandtab:tabstop=4 shiftwidth=4: