1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2010-11-13 7 * Description : a test for applying FilterActions 8 * 9 * Copyright (C) 2010 by Marcel Wiesweg <marcel dot wiesweg at gmx 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_DIMG_FILTER_ACTION_UTEST_H 25 #define DIGIKAM_DIMG_FILTER_ACTION_UTEST_H 26 27 // Qt includes 28 29 #include <QTest> 30 #include <QEventLoop> 31 #include <QDir> 32 33 // Local includes 34 35 #include "dimg.h" 36 37 using namespace Digikam; 38 39 class DImgFilterActionTest : public QObject 40 { 41 Q_OBJECT 42 43 public: 44 45 explicit DImgFilterActionTest(QObject* const parent = nullptr); 46 47 public: 48 49 QDir imageDir(); 50 QString originalImage(); 51 52 void showDiff(const DImg& orig, const DImg& ref, const DImg& result, const DImg& diff); 53 54 private Q_SLOTS: 55 56 void testDRawDecoding(); 57 void testActions(); 58 59 void initTestCase(); 60 void cleanupTestCase(); 61 }; 62 63 #endif // DIGIKAM_DIMG_FILTER_ACTION_UTEST_H 64