summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/proxy/proxy_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/widgets/proxy/proxy_server.h')
-rw-r--r--tests/auto/widgets/proxy/proxy_server.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/auto/widgets/proxy/proxy_server.h b/tests/auto/widgets/proxy/proxy_server.h
index cb7c30600..7bc7b100b 100644
--- a/tests/auto/widgets/proxy/proxy_server.h
+++ b/tests/auto/widgets/proxy/proxy_server.h
@@ -39,6 +39,7 @@ class ProxyServer : public QObject
public:
explicit ProxyServer(QObject *parent = nullptr);
void setCredentials(const QByteArray &user, const QByteArray password);
+ void setCookie(const QByteArray &cookie);
bool isListening();
public slots:
@@ -49,11 +50,15 @@ private slots:
void handleReadReady();
signals:
- void success();
+ void authenticationSuccess();
+ void cookieMatch();
+
private:
QByteArray m_data;
QTcpServer m_server;
QByteArray m_auth;
+ QByteArray m_cookie;
+ bool m_authenticate = false;
};
#endif // PROXY_SERVER_H