File indexing completed on 2025-01-19 03:57:45

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2011-01-12
0007  * Description : Test the TileIndex class
0008  *
0009  * SPDX-FileCopyrightText: 2011 by Michael G. Hansen <mike at mghansen dot de>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_TILEINDEX_UTEST_H
0016 #define DIGIKAM_TILEINDEX_UTEST_H
0017 
0018 // Qt includes
0019 
0020 #include <QTest>
0021 
0022 class TestTileIndex : public QObject
0023 {
0024     Q_OBJECT
0025 
0026 public:
0027 
0028     explicit TestTileIndex(QObject* const parent = nullptr)
0029         : QObject(parent)
0030     {
0031     }
0032 
0033 private Q_SLOTS:
0034 
0035     void testNoOp();
0036     void testBasics();
0037     void testIntListInteraction();
0038     void testResizing();
0039     void testFromCoordinates();
0040     void testToCoordinates();
0041     void testToCoordinatesCorners();
0042     void testMovable();
0043 };
0044 
0045 #endif // DIGIKAM_TILEINDEX_UTEST_H