aboutsummaryrefslogtreecommitdiff
path: root/tests/TestClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/TestClient.h')
-rw-r--r--tests/TestClient.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/TestClient.h b/tests/TestClient.h
index fcfa4fb2..9da12a97 100644
--- a/tests/TestClient.h
+++ b/tests/TestClient.h
@@ -49,6 +49,16 @@ public:
QCOMPARE(m_sentPackets.takeFirst(), packet.replace(u'\'', u'"'));
resetIdCount();
}
+ QString takePacket()
+ {
+ [this]() { QVERIFY(!m_sentPackets.isEmpty()); }();
+ return m_sentPackets.takeFirst();
+ }
+ QString takeLastPacket()
+ {
+ [this]() { QVERIFY(!m_sentPackets.isEmpty()); }();
+ return m_sentPackets.takeLast();
+ }
void ignore()
{
m_sentPackets.takeFirst();