#ifndef PRINT_QT_TYPES_H #define PRINT_QT_TYPES_H #include #include #include using std::ostream; using std::vector; void PrintTo(const QString& str, ::std::ostream* os); void PrintTo(const QStringList& list, ::std::ostream* os); #define ASSERT_EQ_QSTR(x, y) ASSERT_EQ(x, y) << "\"" << x.toStdString() << "\"" << \ " != " << "\"" << y.toStdString() << "\""; #define ASSERT_EQ_QSTRLIST(x, y) ASSERT_EQ(x, y) << "(" << x.join(", ").toStdString() << ")" << \ " != " << "(" << y.join(", ").toStdString() << ")"; void PrintTo(const QDateTime& time, ::std::ostream* os); void PrintTo(const QByteArray& array, ::std::ostream* os); #endif