From 650bc03241075481d778b9a498a7dd2cc28308e3 Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 26 Jan 2017 12:34:06 +0100 Subject: [PATCH] Remove NetworkTest --- tests/autotests/autotests.pro | 2 -- tests/autotests/main.cpp | 6 ++---- tests/autotests/networktest.cpp | 34 ------------------------------ tests/autotests/networktest.h | 37 --------------------------------- 4 files changed, 2 insertions(+), 77 deletions(-) delete mode 100644 tests/autotests/networktest.cpp delete mode 100644 tests/autotests/networktest.h diff --git a/tests/autotests/autotests.pro b/tests/autotests/autotests.pro index 1ced4e393..6f01d81d0 100644 --- a/tests/autotests/autotests.pro +++ b/tests/autotests/autotests.pro @@ -56,7 +56,6 @@ HEADERS += \ adblocktest.h \ updatertest.h \ passwordbackendtest.h \ - networktest.h SOURCES += \ qztoolstest.cpp \ @@ -65,4 +64,3 @@ SOURCES += \ adblocktest.cpp \ updatertest.cpp \ passwordbackendtest.cpp \ - networktest.cpp diff --git a/tests/autotests/main.cpp b/tests/autotests/main.cpp index d1ef9214a..3d0bc65ee 100644 --- a/tests/autotests/main.cpp +++ b/tests/autotests/main.cpp @@ -1,6 +1,6 @@ /* ============================================================ -* QupZilla - WebKit based browser -* Copyright (C) 2013-2014 David Rosca +* QupZilla - Qt web browser +* Copyright (C) 2013-2017 David Rosca * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -20,7 +20,6 @@ #include "adblocktest.h" #include "updatertest.h" #include "passwordbackendtest.h" -#include "networktest.h" #include @@ -40,7 +39,6 @@ int main(int argc, char *argv[]) // RUN_TEST(CookiesTest) RUN_TEST(AdBlockTest) RUN_TEST(UpdaterTest) - RUN_TEST(NetworkTest) RUN_TEST(DatabasePasswordBackendTest) RUN_TEST(DatabaseEncryptedPasswordBackendTest) diff --git a/tests/autotests/networktest.cpp b/tests/autotests/networktest.cpp deleted file mode 100644 index 23949d6e9..000000000 --- a/tests/autotests/networktest.cpp +++ /dev/null @@ -1,34 +0,0 @@ -/* ============================================================ -* QupZilla - WebKit based browser -* Copyright (C) 2014 David Rosca -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* 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, see . -* ============================================================ */ -#include "networktest.h" - -#include -#include -#include -#include -#include - -void NetworkTest::initTestCase() -{ - m_manager = new QNetworkAccessManager; -} - -void NetworkTest::cleanupTestCase() -{ - delete m_manager; -} diff --git a/tests/autotests/networktest.h b/tests/autotests/networktest.h deleted file mode 100644 index 342a84d25..000000000 --- a/tests/autotests/networktest.h +++ /dev/null @@ -1,37 +0,0 @@ -/* ============================================================ -* QupZilla - WebKit based browser -* Copyright (C) 2014 David Rosca -* -* This program is free software: you can redistribute it and/or modify -* it under the terms of the GNU General Public License as published by -* the Free Software Foundation, either version 3 of the License, or -* (at your option) any later version. -* -* 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, see . -* ============================================================ */ -#ifndef NETWORKTEST_H -#define NETWORKTEST_H - -#include -#include -#include - -class NetworkTest : public QObject -{ - Q_OBJECT - -private slots: - void initTestCase(); - void cleanupTestCase(); - -private: - QNetworkAccessManager *m_manager; -}; - -#endif // NETWORKTEST_H