diff options
author | Remko Tronçon <git@el-tramo.be> | 2009-11-25 19:19:28 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2009-11-25 19:20:53 (GMT) |
commit | db00adc9810377500e6ab27900b29496a0d05afe (patch) | |
tree | 0f13d821883e0e99e9b6e7f15c84e3371375cd96 /Swiften/Client/UnitTest | |
parent | c198064db0a6444a24220eee65cbf747eb7fbfb0 (diff) | |
download | swift-contrib-db00adc9810377500e6ab27900b29496a0d05afe.zip swift-contrib-db00adc9810377500e6ab27900b29496a0d05afe.tar.bz2 |
Enabled stream compression again.
Diffstat (limited to 'Swiften/Client/UnitTest')
-rw-r--r-- | Swiften/Client/UnitTest/ClientSessionTest.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Swiften/Client/UnitTest/ClientSessionTest.cpp b/Swiften/Client/UnitTest/ClientSessionTest.cpp index 9fe2a3d..e035ba3 100644 --- a/Swiften/Client/UnitTest/ClientSessionTest.cpp +++ b/Swiften/Client/UnitTest/ClientSessionTest.cpp @@ -173,7 +173,7 @@ class ClientSessionTest : public CppUnit::TestFixture { bool footer; }; - MockSessionStream() : available(true), canTLSEncrypt(true), tlsEncrypted(false), whitespacePingEnabled(false), resetCount(0) { + MockSessionStream() : available(true), canTLSEncrypt(true), tlsEncrypted(false), compressed(false), whitespacePingEnabled(false), resetCount(0) { } virtual bool isAvailable() { @@ -200,6 +200,10 @@ class ClientSessionTest : public CppUnit::TestFixture { tlsEncrypted = true; } + virtual void addZLibCompression() { + compressed = true; + } + virtual void setWhitespacePingEnabled(bool enabled) { whitespacePingEnabled = enabled; } @@ -286,6 +290,7 @@ class ClientSessionTest : public CppUnit::TestFixture { bool available; bool canTLSEncrypt; bool tlsEncrypted; + bool compressed; bool whitespacePingEnabled; int resetCount; std::deque<Event> receivedEvents; |