diff --git a/messageviewer/src/dkim-verify/autotests/CMakeLists.txt b/messageviewer/src/dkim-verify/autotests/CMakeLists.txt index 7208400a..6f813dfe 100644 --- a/messageviewer/src/dkim-verify/autotests/CMakeLists.txt +++ b/messageviewer/src/dkim-verify/autotests/CMakeLists.txt @@ -1,32 +1,33 @@ add_definitions( -DDKIM_DATA_DIR="${CMAKE_CURRENT_SOURCE_DIR}/data" ) macro(add_messageviewer_dkim_verify_unittest _source) get_filename_component(_name ${_source} NAME_WE) ecm_add_test(${_source} TEST_NAME ${_name} NAME_PREFIX "messageviewer-" LINK_LIBRARIES KF5::MessageViewer KF5::WebEngineViewer KF5::Libkleo QGpgme Qt5::Test qca-qt5 KF5::ItemViews ) endmacro () add_messageviewer_dkim_verify_unittest(dkiminfotest.cpp) add_messageviewer_dkim_verify_unittest(dkimmanagerkeytest.cpp) add_messageviewer_dkim_verify_unittest(dkimmanagerkeywidgettest.cpp) add_messageviewer_dkim_verify_unittest(dkimmanagerkeydialogtest.cpp) add_messageviewer_dkim_verify_unittest(dkimdownloadkeyjobtest.cpp) add_messageviewer_dkim_verify_unittest(dkimchecksignaturejobtest.cpp) add_messageviewer_dkim_verify_unittest(dkimcheckauthenticationstatusjobtest.cpp) add_messageviewer_dkim_verify_unittest(dkimauthenticationstatusinfotest.cpp) add_messageviewer_dkim_verify_unittest(dkimkeyrecordtest.cpp) add_messageviewer_dkim_verify_unittest(dkimmanagertest.cpp) add_messageviewer_dkim_verify_unittest(dkimutiltest.cpp) add_messageviewer_dkim_verify_unittest(dkimstoreresultjobtest.cpp) add_messageviewer_dkim_verify_unittest(dkimresultattributetest.cpp) add_messageviewer_dkim_verify_unittest(dkimheaderparsertest.cpp) add_messageviewer_dkim_verify_unittest(dkimcheckpolicytest.cpp) add_messageviewer_dkim_verify_unittest(dmarcinfotest.cpp) add_messageviewer_dkim_verify_unittest(dmarcpolicyjobtest.cpp) add_messageviewer_dkim_verify_unittest(dkimcheckpolicyjobtest.cpp) add_messageviewer_dkim_verify_unittest(dkimruletest.cpp) add_messageviewer_dkim_verify_unittest(dkimmanagerrulestest.cpp) add_messageviewer_dkim_verify_unittest(dkimwidgetinfotest.cpp) add_messageviewer_dkim_verify_unittest(dkimgeneraterulejobtest.cpp) +add_messageviewer_dkim_verify_unittest(dkimauthenticationstatusinfoutiltest.cpp) diff --git a/messageviewer/src/dkim-verify/autotests/dkimauthenticationstatusinfoutiltest.cpp b/messageviewer/src/dkim-verify/autotests/dkimauthenticationstatusinfoutiltest.cpp new file mode 100644 index 00000000..244d97df --- /dev/null +++ b/messageviewer/src/dkim-verify/autotests/dkimauthenticationstatusinfoutiltest.cpp @@ -0,0 +1,28 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#include "dkimauthenticationstatusinfoutiltest.h" +#include "dkim-verify/dkimauthenticationstatusinfoutil.h" +#include +QTEST_GUILESS_MAIN(DKIMAuthenticationStatusInfoUtilTest) +DKIMAuthenticationStatusInfoUtilTest::DKIMAuthenticationStatusInfoUtilTest(QObject *parent) + : QObject(parent) +{ + +} diff --git a/messageviewer/src/dkim-verify/autotests/dkimauthenticationstatusinfoutiltest.h b/messageviewer/src/dkim-verify/autotests/dkimauthenticationstatusinfoutiltest.h new file mode 100644 index 00000000..17b693f4 --- /dev/null +++ b/messageviewer/src/dkim-verify/autotests/dkimauthenticationstatusinfoutiltest.h @@ -0,0 +1,33 @@ +/* + Copyright (C) 2019 Laurent Montel + + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Library General Public + License as published by the Free Software Foundation; either + version 2 of the License, or (at your option) any later version. + + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Library General Public License for more details. + + You should have received a copy of the GNU Library General Public License + along with this library; see the file COPYING.LIB. If not, write to + the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + Boston, MA 02110-1301, USA. +*/ + +#ifndef DKIMAUTHENTICATIONSTATUSINFOUTILTEST_H +#define DKIMAUTHENTICATIONSTATUSINFOUTILTEST_H + +#include + +class DKIMAuthenticationStatusInfoUtilTest : public QObject +{ + Q_OBJECT +public: + explicit DKIMAuthenticationStatusInfoUtilTest(QObject *parent = nullptr); + ~DKIMAuthenticationStatusInfoUtilTest() = default; +}; + +#endif // DKIMAUTHENTICATIONSTATUSINFOUTILTEST_H