Moved the handler classes to a separate directory.
This commit is contained in:
@@ -3,20 +3,20 @@ configure_file(qhttpengine.pc.in "${CMAKE_CURRENT_BINARY_DIR}/qhttpengine.pc" @O
|
|||||||
|
|
||||||
set(INCLUDE
|
set(INCLUDE
|
||||||
"${CMAKE_CURRENT_BINARY_DIR}/config.h"
|
"${CMAKE_CURRENT_BINARY_DIR}/config.h"
|
||||||
|
handler/qhttphandler.h
|
||||||
|
handler/qhttpsubhandler.h
|
||||||
qhttpengine.h
|
qhttpengine.h
|
||||||
qhttphandler.h
|
|
||||||
qhttpserver.h
|
qhttpserver.h
|
||||||
qhttpsocket.h
|
qhttpsocket.h
|
||||||
qhttpsubhandler.h
|
|
||||||
qiodevicecopier.h
|
qiodevicecopier.h
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SRC
|
set(SRC
|
||||||
|
handler/qhttphandler.cpp
|
||||||
|
handler/qhttpsubhandler.cpp
|
||||||
qhttpengine.cpp
|
qhttpengine.cpp
|
||||||
qhttphandler.cpp
|
|
||||||
qhttpserver.cpp
|
qhttpserver.cpp
|
||||||
qhttpsocket.cpp
|
qhttpsocket.cpp
|
||||||
qhttpsubhandler.cpp
|
|
||||||
qiodevicecopier.cpp
|
qiodevicecopier.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@
|
|||||||
#include <QRegExp>
|
#include <QRegExp>
|
||||||
#include <QTest>
|
#include <QTest>
|
||||||
|
|
||||||
#include "qhttpsubhandler.h"
|
#include "handler/qhttpsubhandler.h"
|
||||||
|
|
||||||
class DummyHandler : public QHttpHandler
|
class DummyHandler : public QHttpHandler
|
||||||
{
|
{
|
||||||
@@ -59,14 +59,14 @@ void TestQHttpSubHandler::testPatterns_data()
|
|||||||
QTest::addColumn<bool>("match");
|
QTest::addColumn<bool>("match");
|
||||||
|
|
||||||
QTest::newRow("success")
|
QTest::newRow("success")
|
||||||
<< QRegExp("test")
|
<< QRegExp("\\w+")
|
||||||
<< QString("test")
|
<< QString("test")
|
||||||
<< QString("")
|
<< QString("")
|
||||||
<< true;
|
<< true;
|
||||||
|
|
||||||
QTest::newRow("failure")
|
QTest::newRow("failure")
|
||||||
<< QRegExp("test")
|
<< QRegExp("\\d+")
|
||||||
<< QString("fail")
|
<< QString("test")
|
||||||
<< QString("")
|
<< QString("")
|
||||||
<< false;
|
<< false;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user