File indexing completed on 2024-06-23 04:27:00

0001 /*
0002  *  SPDX-FileCopyrightText: 2008 Boudewijn Rempt <boud@valdyas.org>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef KIS_CRASH_FILTER_TEST_H
0008 #define KIS_CRASH_FILTER_TEST_H
0009 
0010 #include <simpletest.h>
0011 
0012 class KoColorSpace;
0013 #include <kis_types.h>
0014 
0015 /**
0016  * The crash filter test just loops through all filters
0017  * and tests every filter with all colorspaces we have.
0018  * We don't check the output; just whether we've got a
0019  * crasher somewhere.
0020  */
0021 class KisCrashFilterTest : public QObject
0022 {
0023     Q_OBJECT
0024 private:
0025 
0026     bool applyFilter(const KoColorSpace * cs,  KisFilterSP f);
0027     bool testFilter(KisFilterSP f);
0028 
0029 private Q_SLOTS:
0030 
0031     void testCrashFilters();
0032 };
0033 
0034 #endif