diff options
| author | Remko Tronçon <git@el-tramo.be> | 2011-05-02 18:17:19 (GMT) | 
|---|---|---|
| committer | Remko Tronçon <git@el-tramo.be> | 2011-05-02 18:24:14 (GMT) | 
| commit | 81443e9863763187a4d6e40a5b7c75be6ad39809 (patch) | |
| tree | c75225e9826b96d1d83c0702dbfa9b3bf1924a15 /Swiften/FileTransfer/UnitTest/IBBSendSessionTest.cpp | |
| parent | 2d84b0e551a2661c03bdb96f575effb47b22d678 (diff) | |
| download | swift-81443e9863763187a4d6e40a5b7c75be6ad39809.zip swift-81443e9863763187a4d6e40a5b7c75be6ad39809.tar.bz2 | |
Replace auto_ptr by shared_ptr.
Diffstat (limited to 'Swiften/FileTransfer/UnitTest/IBBSendSessionTest.cpp')
| -rw-r--r-- | Swiften/FileTransfer/UnitTest/IBBSendSessionTest.cpp | 18 | 
1 files changed, 9 insertions, 9 deletions
| diff --git a/Swiften/FileTransfer/UnitTest/IBBSendSessionTest.cpp b/Swiften/FileTransfer/UnitTest/IBBSendSessionTest.cpp index 5c23887..f84c3bb 100644 --- a/Swiften/FileTransfer/UnitTest/IBBSendSessionTest.cpp +++ b/Swiften/FileTransfer/UnitTest/IBBSendSessionTest.cpp @@ -41,7 +41,7 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  		void testStart() { -			std::auto_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz"); +			boost::shared_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz");  			testling->setBlockSize(1234);  			testling->start(); @@ -55,7 +55,7 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  		void testStart_ResponseStartsSending() { -			std::auto_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz"); +			boost::shared_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz");  			testling->setBlockSize(3);  			testling->start(); @@ -71,7 +71,7 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  		void testResponseContinuesSending() { -			std::auto_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz"); +			boost::shared_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz");  			testling->setBlockSize(3);  			testling->start();  			stanzaChannel->onIQReceived(createIBBResult()); @@ -87,7 +87,7 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  		void testRespondToAllFinishes() { -			std::auto_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz"); +			boost::shared_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz");  			testling->setBlockSize(3);  			testling->start();  			stanzaChannel->onIQReceived(createIBBResult()); @@ -100,7 +100,7 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  		void testErrorResponseFinishesWithError() { -			std::auto_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz"); +			boost::shared_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz");  			testling->setBlockSize(3);  			testling->start();  			stanzaChannel->onIQReceived(IQ::createError(JID("baz@fum.com/foo"), stanzaChannel->sentStanzas[0]->getID())); @@ -110,7 +110,7 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  		void testStopDuringSessionCloses() { -			std::auto_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz"); +			boost::shared_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz");  			testling->setBlockSize(3);  			testling->start();  			testling->stop(); @@ -125,7 +125,7 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  		void testStopAfterFinishedDoesNotClose() { -			std::auto_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz"); +			boost::shared_ptr<IBBSendSession> testling = createSession("foo@bar.com/baz");  			testling->setBlockSize(16);  			testling->start();  			stanzaChannel->onIQReceived(createIBBResult()); @@ -143,8 +143,8 @@ class IBBSendSessionTest : public CppUnit::TestFixture {  		}  	private: -		std::auto_ptr<IBBSendSession> createSession(const std::string& to) { -			std::auto_ptr<IBBSendSession> session(new IBBSendSession("myid", JID(to), bytestream, iqRouter)); +		boost::shared_ptr<IBBSendSession> createSession(const std::string& to) { +			boost::shared_ptr<IBBSendSession> session(new IBBSendSession("myid", JID(to), bytestream, iqRouter));  			session->onFinished.connect(boost::bind(&IBBSendSessionTest::handleFinished, this, _1));  			return session;  		} | 
 Swift
 Swift