summaryrefslogtreecommitdiff
path: root/qt4/tests
diff options
context:
space:
mode:
authorOlli Salli <ollisal@gmail.com>2011-09-16 21:21:04 +0300
committerOlli Salli <ollisal@gmail.com>2011-10-10 19:17:42 +0300
commit164c8f0a73d7449bdc4a55d8f4845752e191f3fd (patch)
tree1252d36ea68cf8d08e2ce55a7e7b39ca583d5c4c /qt4/tests
parent7d4e477620331c2d4f9a826534929fac592b0664 (diff)
Admit that STC::TcpSrcAddrGens need to modify their state for generating
Diffstat (limited to 'qt4/tests')
-rw-r--r--qt4/tests/dbus/stream-tube-handlers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qt4/tests/dbus/stream-tube-handlers.cpp b/qt4/tests/dbus/stream-tube-handlers.cpp
index 34762d62c..95fd4117b 100644
--- a/qt4/tests/dbus/stream-tube-handlers.cpp
+++ b/qt4/tests/dbus/stream-tube-handlers.cpp
@@ -1297,11 +1297,11 @@ void TestStreamTubeHandlers::testClientBasicTcp()
FakeGenerator() : port(0) {}
QPair<QHostAddress, quint16> nextSourceAddress(const AccountPtr &account,
- const IncomingStreamTubeChannelPtr &tube) const {
+ const IncomingStreamTubeChannelPtr &tube) {
return qMakePair(QHostAddress(QHostAddress::LocalHost), ++port);
}
- mutable quint16 port;
+ quint16 port;
} gen;
client->setToAcceptAsTcp(&gen);
@@ -1391,7 +1391,7 @@ void TestStreamTubeHandlers::testClientTcpGeneratorIgnore()
{
public:
QPair<QHostAddress, quint16> nextSourceAddress(const AccountPtr &account,
- const IncomingStreamTubeChannelPtr &tube) const {
+ const IncomingStreamTubeChannelPtr &tube) {
return qMakePair(QHostAddress(QHostAddress::LocalHost), quint16(1111));
}
} gen;