mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Require -std=c++11 and use std::shared_ptr instead of SharedHandle
This commit is contained in:
parent
126a4bde61
commit
07d270c87e
709 changed files with 6305 additions and 6878 deletions
|
@ -65,15 +65,15 @@ void UTMetadataDataExtensionMessageTest::testToString()
|
|||
|
||||
void UTMetadataDataExtensionMessageTest::testDoReceivedAction()
|
||||
{
|
||||
SharedHandle<DirectDiskAdaptor> diskAdaptor(new DirectDiskAdaptor());
|
||||
SharedHandle<ByteArrayDiskWriter> diskWriter(new ByteArrayDiskWriter());
|
||||
std::shared_ptr<DirectDiskAdaptor> diskAdaptor(new DirectDiskAdaptor());
|
||||
std::shared_ptr<ByteArrayDiskWriter> diskWriter(new ByteArrayDiskWriter());
|
||||
diskAdaptor->setDiskWriter(diskWriter);
|
||||
SharedHandle<MockPieceStorage> pieceStorage(new MockPieceStorage());
|
||||
std::shared_ptr<MockPieceStorage> pieceStorage(new MockPieceStorage());
|
||||
pieceStorage->setDiskAdaptor(diskAdaptor);
|
||||
SharedHandle<UTMetadataRequestTracker> tracker
|
||||
std::shared_ptr<UTMetadataRequestTracker> tracker
|
||||
(new UTMetadataRequestTracker());
|
||||
SharedHandle<DownloadContext> dctx(new DownloadContext());
|
||||
SharedHandle<TorrentAttribute> attrs(new TorrentAttribute());
|
||||
std::shared_ptr<DownloadContext> dctx(new DownloadContext());
|
||||
std::shared_ptr<TorrentAttribute> attrs(new TorrentAttribute());
|
||||
|
||||
std::string piece0 = std::string(METADATA_PIECE_SIZE, '0');
|
||||
std::string piece1 = std::string(METADATA_PIECE_SIZE, '1');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue