summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemko Tronçon <git@el-tramo.be>2010-08-21 18:28:53 (GMT)
committerRemko Tronçon <git@el-tramo.be>2010-08-21 18:30:46 (GMT)
commite019b91aa2326795fa51a876e365573355576842 (patch)
treee66ed4b836096e2f9a8c43902fede6738900d6dd /Swiften/Client
parent7fd66adfe9f3a92cd55e70b7478432d1f9030c4b (diff)
downloadswift-contrib-e019b91aa2326795fa51a876e365573355576842.zip
swift-contrib-e019b91aa2326795fa51a876e365573355576842.tar.bz2
Fixed a few avatar unit tests.
Diffstat (limited to 'Swiften/Client')
-rw-r--r--Swiften/Client/DummyStanzaChannel.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Swiften/Client/DummyStanzaChannel.h b/Swiften/Client/DummyStanzaChannel.h
index d7aa752..b35ed92 100644
--- a/Swiften/Client/DummyStanzaChannel.h
+++ b/Swiften/Client/DummyStanzaChannel.h
@@ -39,6 +39,11 @@ namespace Swift {
return true;
}
+ template<typename T> bool isRequestAtIndex(int index, const JID& jid, IQ::Type type) {
+ boost::shared_ptr<IQ> iqStanza = boost::dynamic_pointer_cast<IQ>(sentStanzas[index]);
+ return iqStanza && iqStanza->getType() == type && iqStanza->getTo() == jid && iqStanza->getPayload<T>();
+ }
+
std::vector<boost::shared_ptr<Stanza> > sentStanzas;
};
}