diff options
author | dknn <yoann.blein@free.fr> | 2012-08-17 15:32:43 (GMT) |
---|---|---|
committer | dknn <yoann.blein@free.fr> | 2012-09-22 09:34:49 (GMT) |
commit | 6247ed394302ff2cf1f33a71df808bebf7241242 (patch) | |
tree | d4d61fb5e66611ecdc75cf1149b64e23fef2b077 /Swift/Controllers/Roster/UnitTest | |
parent | c8ced8597ab28b928862d21554c0a68c238b1165 (diff) | |
download | swift-contrib-6247ed394302ff2cf1f33a71df808bebf7241242.zip swift-contrib-6247ed394302ff2cf1f33a71df808bebf7241242.tar.bz2 |
Fix test suite compliance
Diffstat (limited to 'Swift/Controllers/Roster/UnitTest')
-rw-r--r-- | Swift/Controllers/Roster/UnitTest/RosterControllerTest.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Swift/Controllers/Roster/UnitTest/RosterControllerTest.cpp b/Swift/Controllers/Roster/UnitTest/RosterControllerTest.cpp index fbee894..5009c0c 100644 --- a/Swift/Controllers/Roster/UnitTest/RosterControllerTest.cpp +++ b/Swift/Controllers/Roster/UnitTest/RosterControllerTest.cpp @@ -37,6 +37,7 @@ #include <Swiften/FileTransfer/UnitTest/DummyFileTransferManager.h> #include <Swiften/Base/Algorithm.h> #include <Swiften/EventLoop/DummyEventLoop.h> +#include "Swift/Controllers/ScreenSharing/UnitTest/DummyScreenSharingOverview.h" using namespace Swift; @@ -82,12 +83,17 @@ class RosterControllerTest : public CppUnit::TestFixture { ftManager_ = new DummyFileTransferManager(); ftOverview_ = new FileTransferOverview(ftManager_); - rosterController_ = new RosterController(jid_, xmppRoster_, avatarManager_, mainWindowFactory_, nickManager_, nickResolver_, presenceOracle_, subscriptionManager_, eventController_, uiEventStream_, router_, settings_, entityCapsManager_, ftOverview_); + ssOverview_ = new DummyScreenSharingOverview; + + rosterController_ = new RosterController(jid_, xmppRoster_, avatarManager_, mainWindowFactory_, nickManager_, nickResolver_, presenceOracle_, subscriptionManager_, eventController_, uiEventStream_, router_, settings_, entityCapsManager_, ftOverview_, ssOverview_); mainWindow_ = mainWindowFactory_->last; }; void tearDown() { delete rosterController_; + + delete ssOverview_; + delete ftOverview_; delete ftManager_; delete jingleSessionManager_; @@ -337,6 +343,7 @@ class RosterControllerTest : public CppUnit::TestFixture { JingleSessionManager* jingleSessionManager_; FileTransferManager* ftManager_; FileTransferOverview* ftOverview_; + ScreenSharingOverview* ssOverview_; }; CPPUNIT_TEST_SUITE_REGISTRATION(RosterControllerTest); |