File indexing completed on 2025-01-26 05:06:20

0001 /*
0002     SPDX-FileCopyrightText: 2017 Klarälvdalens Datakonsult AB a KDAB Group company <info@kdab.com>
0003     SPDX-FileCopyrightText: Andras Mantia <andras.mantia@kdab.com>
0004 
0005     SPDX-License-Identifier: GPL-2.0-or-later
0006 */
0007 
0008 #pragma once
0009 
0010 #include <QObject>
0011 
0012 class QTemporaryDir;
0013 class FolderModel;
0014 class Positioner;
0015 
0016 class PositionerTest : public QObject
0017 {
0018     Q_OBJECT
0019 
0020 private Q_SLOTS:
0021     void initTestCase();
0022     void cleanupTestCase();
0023 
0024     void init();
0025     void cleanup();
0026 
0027     void tst_positions_data();
0028     void tst_positions();
0029     void tst_map();
0030     void tst_move_data();
0031     void tst_move();
0032     void tst_nearestitem_data();
0033     void tst_nearestitem();
0034     void tst_isBlank();
0035     void tst_reset();
0036     void tst_defaultValues();
0037     void tst_changeEnabledStatus();
0038     void tst_changePerStripe();
0039     void tst_proxyMapping();
0040 
0041 private:
0042     void checkPositions(int perStripe);
0043     void ensureFolderModelReady();
0044 
0045     QString m_currentActivity;
0046     Positioner *m_positioner;
0047     FolderModel *m_folderModel;
0048     QTemporaryDir *m_folderDir;
0049 };