summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2015-12-18 23:27:21 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2015-12-18 23:42:18 +0100
commit70baf0f7be98d5a2dfa429c95deb41440a23bea1 (patch)
tree1adb71f72bf81a0750b52ed8ad5f9eb5fb3246c5 /rbutil
parent7e7fd0c7b85f85724f7d81d9185f863f1e712400 (diff)
downloadrockbox-70baf0f7be98d5a2dfa429c95deb41440a23bea1.tar.gz
rockbox-70baf0f7be98d5a2dfa429c95deb41440a23bea1.tar.bz2
rockbox-70baf0f7be98d5a2dfa429c95deb41440a23bea1.zip
Fix compiling HttpGet unit test.
Provide a stub for Logger class to make the test compile. Change-Id: I142eaf443c1f9026506100b82c9341e83b619ab6
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/test/stubs/Logger.h11
-rw-r--r--rbutil/rbutilqt/test/test-httpget.pro2
2 files changed, 12 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/test/stubs/Logger.h b/rbutil/rbutilqt/test/stubs/Logger.h
new file mode 100644
index 0000000000..6640646b24
--- /dev/null
+++ b/rbutil/rbutilqt/test/stubs/Logger.h
@@ -0,0 +1,11 @@
+#ifndef LOGGER_H
+#define LOGGER_H
+
+#include <QtDebug>
+
+#define LOG_INFO qDebug
+#define LOG_WARNING qWarning
+#define LOG_ERROR qCritical
+
+#endif
+
diff --git a/rbutil/rbutilqt/test/test-httpget.pro b/rbutil/rbutilqt/test/test-httpget.pro
index 60b6993743..3189ad2266 100644
--- a/rbutil/rbutilqt/test/test-httpget.pro
+++ b/rbutil/rbutilqt/test/test-httpget.pro
@@ -18,7 +18,7 @@ include(tests.pri)
TEMPLATE = app
TARGET = test-httpget
-INCLUDEPATH += . ../base
+INCLUDEPATH += . ../base stubs
QT += network
# Input