blob: 20c23d6cca614fbc0ed5606f8d86f3206f2b698c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#ifndef PRINT_QT_TYPES_H
#define PRINT_QT_TYPES_H
#include <iostream>
#include <QtCore>
#include <vector>
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
|