+++ /dev/null
-#ifndef STLHELPERS4QT_H
-#define STLHELPERS4QT_H
-
-#include <ostream>
-#include <QList>
-#include <QVariant>
-
-/**
- * Outputs the contents of a QList<QVariant> container to a std::ostream object.
- * @param stream the stream to output to
- * @param val the container that is put to the stream
- * @return the same stream that was passed as the parameter @a stream
- */
-std::ostream& operator<<(std::ostream& stream, const QList<QVariant> &val)
-{
- bool first = true;
-
- foreach (const QVariant &v, val) {
- if (!first) {
- stream << ", ";
- }
- stream << v.toString().toStdString();
- first = false;
- }
- return stream;
-}
-
-#endif // STLHELPERS4QT_H
--- /dev/null
+INCLUDEPATH += ../util
#include <gtest/gtest.h>
#include <QSignalSpy>
-#include "../stlhelpers4qt.h"
+#include "stlhelpers4qt.h"
using ::testing::AtLeast;
+include(../ut_common.pri)
+
TARGET = ut_gmocktest
QT += testlib
QT -= gui
+include(../ut_common.pri)
+
TARGET = ut_template
QT += testlib
QT -= gui
--- /dev/null
+#ifndef STLHELPERS4QT_H
+#define STLHELPERS4QT_H
+
+#include <ostream>
+#include <QList>
+#include <QVariant>
+
+/**
+ * Outputs the contents of a QList<QVariant> container to a std::ostream object.
+ * @param stream the stream to output to
+ * @param val the container that is put to the stream
+ * @return the same stream that was passed as the parameter @a stream
+ */
+std::ostream& operator<<(std::ostream& stream, const QList<QVariant> &val)
+{
+ bool first = true;
+
+ foreach (const QVariant &v, val) {
+ if (!first) {
+ stream << ", ";
+ }
+ stream << v.toString().toStdString();
+ first = false;
+ }
+ return stream;
+}
+
+#endif // STLHELPERS4QT_H