1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-17 03:45:56 +01:00
Clementine-audio-player-Mac.../tests/test_utils.cpp
John Maguire 7763d7da89 Add test for AlbumCoverFetcher.
Comes with infrastructure for testing network requests.
2010-03-03 19:14:14 +00:00

21 lines
482 B
C++

#include "test_utils.h"
#include <QNetworkRequest>
#include <QString>
#include <QUrl>
std::ostream& operator<<(std::ostream& stream, const QString& str) {
stream << str.toStdString();
return stream;
}
std::ostream& operator <<(std::ostream& stream, const QUrl& url) {
stream << url.toString().toStdString();
return stream;
}
std::ostream& operator <<(std::ostream& stream, const QNetworkRequest& req) {
stream << req.url().toString().toStdString();
return stream;
}