add some basic httpreply calls

pull/135/head
Simon Stürz 2016-04-20 14:48:12 +02:00 committed by Michael Zanetti
parent 9a3390b5d6
commit 0eafc2f0fb
2 changed files with 13 additions and 1 deletions

View File

@ -85,7 +85,7 @@ void TestLogging::coverageCalls()
qDebug() << entry;
LogFilter filter;
qDebug() << filter.timeFilters();
qDebug() << filter.queryString() << filter.timeFilters();
}
void TestLogging::systemLogs()

View File

@ -22,6 +22,7 @@
#include "guhcore.h"
#include "devicemanager.h"
#include "mocktcpserver.h"
#include "rest/restresource.h"
#include "webserver.h"
#include <QtTest/QtTest>
@ -42,6 +43,8 @@ class TestWebserver: public GuhTestBase
Q_OBJECT
private slots:
void coverageCalls();
void httpVersion();
void multiPackageMessage();
@ -64,6 +67,15 @@ private slots:
void getIcons();
};
void TestWebserver::coverageCalls()
{
HttpReply *reply = new HttpReply(this);
qDebug() << reply << reply->payload();
qDebug() << reply->rawHeaderList();
qDebug() << reply->rawHeader() << reply->isEmpty();
reply->clear();
}
void TestWebserver::httpVersion()
{
QTcpSocket *socket = new QTcpSocket(this);