diff options
author | Remko Tronçon <git@el-tramo.be> | 2010-08-27 20:19:14 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2010-08-27 21:52:18 (GMT) |
commit | 7f1bcf974efac0ed87b6f8f639e1fdc16a89eb09 (patch) | |
tree | 7fa948375b6cc56f37bd2be400d6d8be9ca97837 /Swift/Controllers/UnitTest/RosterControllerTest.cpp | |
parent | ba774f85e77531c7971804cb738c6b434a197258 (diff) | |
download | swift-contrib-7f1bcf974efac0ed87b6f8f639e1fdc16a89eb09.zip swift-contrib-7f1bcf974efac0ed87b6f8f639e1fdc16a89eb09.tar.bz2 |
Separate MUCRegistry from ChatsManager.
Diffstat (limited to 'Swift/Controllers/UnitTest/RosterControllerTest.cpp')
-rw-r--r-- | Swift/Controllers/UnitTest/RosterControllerTest.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Swift/Controllers/UnitTest/RosterControllerTest.cpp b/Swift/Controllers/UnitTest/RosterControllerTest.cpp index f57240f..23fca2c 100644 --- a/Swift/Controllers/UnitTest/RosterControllerTest.cpp +++ b/Swift/Controllers/UnitTest/RosterControllerTest.cpp @@ -24,6 +24,7 @@ #include "Swiften/Presence/PresenceOracle.h" #include "Swift/Controllers/NickResolver.h" #include "Swift/Controllers/UIEvents/UIEventStream.h" +#include "Swiften/MUC/MUCRegistry.h" using namespace Swift; @@ -44,7 +45,8 @@ class RosterControllerTest : public CppUnit::TestFixture xmppRoster_ = boost::shared_ptr<XMPPRoster>(new XMPPRoster()); avatarManager_ = NULL;//new AvatarManager(); mainWindowFactory_ = new MockMainWindowFactory(); - nickResolver_ = new NickResolver(jid_.toBare(), xmppRoster_, NULL); + mucRegistry_ = new MUCRegistry(); + nickResolver_ = new NickResolver(jid_.toBare(), xmppRoster_, NULL, mucRegistry_); channel_ = new DummyIQChannel(); router_ = new IQRouter(channel_); stanzaChannel_ = new DummyStanzaChannel(); @@ -58,6 +60,7 @@ class RosterControllerTest : public CppUnit::TestFixture void tearDown() { delete rosterController_; delete nickResolver_; + delete mucRegistry_; delete mainWindowFactory_; delete avatarManager_; delete channel_; @@ -116,6 +119,7 @@ class RosterControllerTest : public CppUnit::TestFixture private: JID jid_; boost::shared_ptr<XMPPRoster> xmppRoster_; + MUCRegistry* mucRegistry_; AvatarManager* avatarManager_; MockMainWindowFactory* mainWindowFactory_; NickResolver* nickResolver_; |