File indexing completed on 2024-12-22 04:10:18

0001 /*
0002  *  SPDX-FileCopyrightText: 2007 Boudewijn Rempt <boud@kde.org>
0003  *  SPDX-FileCopyrightText: 2010 Cyrille Berger <cberger@cberger.net>
0004  *
0005  *  SPDX-License-Identifier: GPL-2.0-or-later
0006  */
0007 
0008 #ifndef KIS_ITERATOR_NG_TEST_H
0009 #define KIS_ITERATOR_NG_TEST_H
0010 
0011 #include <simpletest.h>
0012 
0013 class KoColorSpace;
0014 
0015 class KisIteratorNGTest : public QObject
0016 {
0017     Q_OBJECT
0018 
0019 private:
0020     void allCsApplicator(void (KisIteratorNGTest::* funcPtr)(const KoColorSpace*cs));
0021 
0022     void justCreation(const KoColorSpace * cs);
0023     void vLineIter(const KoColorSpace * cs);
0024     void writeBytes(const KoColorSpace * cs);
0025     void fill(const KoColorSpace * cs);
0026     void sequentialIter(const KoColorSpace * colorSpace);
0027     void hLineIter(const KoColorSpace * cs);
0028     void randomAccessor(const KoColorSpace * cs);
0029 
0030 private Q_SLOTS:
0031     void justCreation();
0032     void vLineIter();
0033     void writeBytes();
0034     void fill();
0035     void sequentialIter();
0036     void sequentialIteratorWithProgress();
0037     void sequentialIteratorWithProgressIncomplete();
0038     void hLineIter();
0039     void randomAccessor();
0040 };
0041 
0042 #endif
0043