Commit 22fb4b88 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Start to create autotest

parent a3dc7ae1
......@@ -35,6 +35,7 @@ if(BUILD_TESTING)
add_subdirectory(findbar/autotests)
add_subdirectory(scamdetection/tests)
add_subdirectory(adblock/tests/)
add_subdirectory(adblock/common/autotests)
add_subdirectory(viewerplugins/tests/)
if (QTWEBENGINE_EXPERIMENTAL_OPTION)
add_subdirectory(webengine/tests)
......
set( adblockaddsubscriptiondialogtest_SRCS adblockaddsubscriptiondialogtest.cpp ../adblockaddsubscriptiondialog.cpp ../adblockutil.cpp)
add_executable( adblockaddsubscriptiondialogtest ${adblockaddsubscriptiondialogtest_SRCS})
add_test(adblockaddsubscriptiondialogtest adblockaddsubscriptiondialogtest)
ecm_mark_as_test(adblockaddsubscriptiondialogtest)
target_link_libraries( adblockaddsubscriptiondialogtest Qt5::Test Qt5::Widgets KF5::MessageViewer)
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#include "adblockaddsubscriptiondialogtest.h"
#include <QTest>
AdBlockAddSubscriptionDialogTest::AdBlockAddSubscriptionDialogTest(QObject *parent)
: QObject(parent)
{
}
AdBlockAddSubscriptionDialogTest::~AdBlockAddSubscriptionDialogTest()
{
}
QTEST_MAIN(AdBlockAddSubscriptionDialogTest)
/*
Copyright (c) 2016 Montel Laurent <montel@kde.org>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License, version 2, as
published by the Free Software Foundation.
This program 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
General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef ADBLOCKADDSUBSCRIPTIONDIALOGTEST_H
#define ADBLOCKADDSUBSCRIPTIONDIALOGTEST_H
#include <QObject>
class AdBlockAddSubscriptionDialogTest : public QObject
{
Q_OBJECT
public:
explicit AdBlockAddSubscriptionDialogTest(QObject *parent = Q_NULLPTR);
~AdBlockAddSubscriptionDialogTest();
};
#endif // ADBLOCKADDSUBSCRIPTIONDIALOGTEST_H
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment