1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2011-01-12 7 * Description : Test the TileIndex class 8 * 9 * Copyright (C) 2011 by Michael G. Hansen <mike at mghansen dot de> 10 * 11 * This program is free software; you can redistribute it 12 * and/or modify it under the terms of the GNU General 13 * Public License as published by the Free Software Foundation; 14 * either version 2, or (at your option) 15 * any later version. 16 * 17 * This program is distributed in the hope that it will be useful, 18 * but WITHOUT ANY WARRANTY; without even the implied warranty of 19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 20 * GNU General Public License for more details. 21 * 22 * ============================================================ */ 23 24 #ifndef DIGIKAM_TILEINDEX_UTEST_H 25 #define DIGIKAM_TILEINDEX_UTEST_H 26 27 // Qt includes 28 29 #include <QTest> 30 31 class TestTileIndex : public QObject 32 { 33 Q_OBJECT 34 35 public: 36 37 explicit TestTileIndex(QObject* const parent = nullptr) QObject(parent)38 : QObject(parent) 39 { 40 } 41 42 private Q_SLOTS: 43 44 void testNoOp(); 45 void testBasics(); 46 void testIntListInteraction(); 47 void testResizing(); 48 void testFromCoordinates(); 49 void testToCoordinates(); 50 void testToCoordinatesCorners(); 51 void testMovable(); 52 }; 53 54 #endif // DIGIKAM_TILEINDEX_UTEST_H 55