Add Network tests (#2304)

Also changes the way timeouts happen, since right now if a timeout was met (which it mostly wasn't), it would run the error callback twice causing potentially undefined behaviour
This commit is contained in:
pajlada
2020-12-26 12:42:39 +01:00
committed by GitHub
parent 2f5df3db4a
commit 0e66b17ff0
15 changed files with 362 additions and 22 deletions
+8
View File
@@ -5,6 +5,14 @@
namespace chatterino {
#ifndef ATTR_UNUSED
# ifdef Q_OS_WIN
# define ATTR_UNUSED
# else
# define ATTR_UNUSED __attribute__((unused))
# endif
#endif
static const char *ANONYMOUS_USERNAME ATTR_UNUSED = "justinfan64537";
inline QByteArray getDefaultClientID()
+1
View File
@@ -2,6 +2,7 @@
#include "common/NetworkRequest.hpp"
#include <QJsonArray>
#include <QString>
#include <QStringList>
#include <QUrl>