Moved the handler classes to a separate directory.

This commit is contained in:
Nathan Osman
2015-06-13 22:16:32 -07:00
parent 087005e6e0
commit e84731379d
7 changed files with 8 additions and 8 deletions

View File

@@ -3,20 +3,20 @@ configure_file(qhttpengine.pc.in "${CMAKE_CURRENT_BINARY_DIR}/qhttpengine.pc" @O
set(INCLUDE
"${CMAKE_CURRENT_BINARY_DIR}/config.h"
handler/qhttphandler.h
handler/qhttpsubhandler.h
qhttpengine.h
qhttphandler.h
qhttpserver.h
qhttpsocket.h
qhttpsubhandler.h
qiodevicecopier.h
)
set(SRC
handler/qhttphandler.cpp
handler/qhttpsubhandler.cpp
qhttpengine.cpp
qhttphandler.cpp
qhttpserver.cpp
qhttpsocket.cpp
qhttpsubhandler.cpp
qiodevicecopier.cpp
)

View File

@@ -25,7 +25,7 @@
#include <QRegExp>
#include <QTest>
#include "qhttpsubhandler.h"
#include "handler/qhttpsubhandler.h"
class DummyHandler : public QHttpHandler
{
@@ -59,14 +59,14 @@ void TestQHttpSubHandler::testPatterns_data()
QTest::addColumn<bool>("match");
QTest::newRow("success")
<< QRegExp("test")
<< QRegExp("\\w+")
<< QString("test")
<< QString("")
<< true;
QTest::newRow("failure")
<< QRegExp("test")
<< QString("fail")
<< QRegExp("\\d+")
<< QString("test")
<< QString("")
<< false;