1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Remove NetworkTest

This commit is contained in:
David Rosca 2017-01-26 12:34:06 +01:00
parent c115610f4a
commit 650bc03241
4 changed files with 2 additions and 77 deletions

View File

@ -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

View File

@ -1,6 +1,6 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2013-2014 David Rosca <nowrep@gmail.com>
* QupZilla - Qt web browser
* Copyright (C) 2013-2017 David Rosca <nowrep@gmail.com>
*
* 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 <QtTest/QtTest>
@ -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)

View File

@ -1,34 +0,0 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2014 David Rosca <nowrep@gmail.com>
*
* 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 <http://www.gnu.org/licenses/>.
* ============================================================ */
#include "networktest.h"
#include <QUrl>
#include <QNetworkAccessManager>
#include <QNetworkReply>
#include <QSslConfiguration>
#include <QEventLoop>
void NetworkTest::initTestCase()
{
m_manager = new QNetworkAccessManager;
}
void NetworkTest::cleanupTestCase()
{
delete m_manager;
}

View File

@ -1,37 +0,0 @@
/* ============================================================
* QupZilla - WebKit based browser
* Copyright (C) 2014 David Rosca <nowrep@gmail.com>
*
* 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 <http://www.gnu.org/licenses/>.
* ============================================================ */
#ifndef NETWORKTEST_H
#define NETWORKTEST_H
#include <QObject>
#include <QtTest/QtTest>
#include <QNetworkAccessManager>
class NetworkTest : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void cleanupTestCase();
private:
QNetworkAccessManager *m_manager;
};
#endif // NETWORKTEST_H