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

View File

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