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
|
@ -41,10 +41,10 @@ class GZipDecodingStreamFilterTest:public CppUnit::TestFixture {
|
|||
}
|
||||
};
|
||||
|
||||
SharedHandle<GZipDecodingStreamFilter> filter_;
|
||||
SharedHandle<SinkStreamFilter> sinkFilter_;
|
||||
SharedHandle<ByteArrayDiskWriter> writer_;
|
||||
SharedHandle<MockSegment2> segment_;
|
||||
std::shared_ptr<GZipDecodingStreamFilter> filter_;
|
||||
std::shared_ptr<SinkStreamFilter> sinkFilter_;
|
||||
std::shared_ptr<ByteArrayDiskWriter> writer_;
|
||||
std::shared_ptr<MockSegment2> segment_;
|
||||
public:
|
||||
void setUp()
|
||||
{
|
||||
|
@ -73,7 +73,7 @@ void GZipDecodingStreamFilterTest::testTransform()
|
|||
CPPUNIT_ASSERT(filter_->finished());
|
||||
#ifdef ENABLE_MESSAGE_DIGEST
|
||||
std::string data = writer_->getString();
|
||||
SharedHandle<MessageDigest> sha1(MessageDigest::sha1());
|
||||
std::shared_ptr<MessageDigest> sha1(MessageDigest::sha1());
|
||||
sha1->update(data.data(), data.size());
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("8b577b33c0411b2be9d4fa74c7402d54a8d21f96"),
|
||||
util::toHex(sha1->digest()));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue