mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 03:45:56 +01:00
7763d7da89
Comes with infrastructure for testing network requests.
21 lines
482 B
C++
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;
|
|
}
|