mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-24 04:36:34 +01:00
Remove NetworkTest
This commit is contained in:
parent
c115610f4a
commit
650bc03241
@ -56,7 +56,6 @@ HEADERS += \
|
|||||||
adblocktest.h \
|
adblocktest.h \
|
||||||
updatertest.h \
|
updatertest.h \
|
||||||
passwordbackendtest.h \
|
passwordbackendtest.h \
|
||||||
networktest.h
|
|
||||||
|
|
||||||
SOURCES += \
|
SOURCES += \
|
||||||
qztoolstest.cpp \
|
qztoolstest.cpp \
|
||||||
@ -65,4 +64,3 @@ SOURCES += \
|
|||||||
adblocktest.cpp \
|
adblocktest.cpp \
|
||||||
updatertest.cpp \
|
updatertest.cpp \
|
||||||
passwordbackendtest.cpp \
|
passwordbackendtest.cpp \
|
||||||
networktest.cpp
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/* ============================================================
|
/* ============================================================
|
||||||
* QupZilla - WebKit based browser
|
* QupZilla - Qt web browser
|
||||||
* Copyright (C) 2013-2014 David Rosca <nowrep@gmail.com>
|
* Copyright (C) 2013-2017 David Rosca <nowrep@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* 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
|
* it under the terms of the GNU General Public License as published by
|
||||||
@ -20,7 +20,6 @@
|
|||||||
#include "adblocktest.h"
|
#include "adblocktest.h"
|
||||||
#include "updatertest.h"
|
#include "updatertest.h"
|
||||||
#include "passwordbackendtest.h"
|
#include "passwordbackendtest.h"
|
||||||
#include "networktest.h"
|
|
||||||
|
|
||||||
#include <QtTest/QtTest>
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
@ -40,7 +39,6 @@ int main(int argc, char *argv[])
|
|||||||
// RUN_TEST(CookiesTest)
|
// RUN_TEST(CookiesTest)
|
||||||
RUN_TEST(AdBlockTest)
|
RUN_TEST(AdBlockTest)
|
||||||
RUN_TEST(UpdaterTest)
|
RUN_TEST(UpdaterTest)
|
||||||
RUN_TEST(NetworkTest)
|
|
||||||
|
|
||||||
RUN_TEST(DatabasePasswordBackendTest)
|
RUN_TEST(DatabasePasswordBackendTest)
|
||||||
RUN_TEST(DatabaseEncryptedPasswordBackendTest)
|
RUN_TEST(DatabaseEncryptedPasswordBackendTest)
|
||||||
|
@ -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;
|
|
||||||
}
|
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user