mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, always
This commit is contained in:
parent
befd799d17
commit
010131161e
55 changed files with 65 additions and 399 deletions
|
@ -18,13 +18,10 @@ class PieceTest:public CppUnit::TestFixture {
|
|||
CPPUNIT_TEST(testGetCompletedLength);
|
||||
CPPUNIT_TEST(testFlushWrCache);
|
||||
CPPUNIT_TEST(testAppendWrCache);
|
||||
#ifdef ENABLE_MESSAGE_DIGEST
|
||||
|
||||
CPPUNIT_TEST(testGetDigestWithWrCache);
|
||||
CPPUNIT_TEST(testUpdateHash);
|
||||
|
||||
#endif // ENABLE_MESSAGE_DIGEST
|
||||
|
||||
CPPUNIT_TEST_SUITE_END();
|
||||
private:
|
||||
std::shared_ptr<DirectDiskAdaptor> adaptor_;
|
||||
|
@ -43,12 +40,8 @@ public:
|
|||
void testFlushWrCache();
|
||||
void testAppendWrCache();
|
||||
|
||||
#ifdef ENABLE_MESSAGE_DIGEST
|
||||
|
||||
void testGetDigestWithWrCache();
|
||||
void testUpdateHash();
|
||||
|
||||
#endif // ENABLE_MESSAGE_DIGEST
|
||||
};
|
||||
|
||||
|
||||
|
@ -120,8 +113,6 @@ void PieceTest::testAppendWrCache()
|
|||
CPPUNIT_ASSERT_EQUAL(std::string("foobar"), writer_->getString());
|
||||
}
|
||||
|
||||
#ifdef ENABLE_MESSAGE_DIGEST
|
||||
|
||||
void PieceTest::testGetDigestWithWrCache()
|
||||
{
|
||||
unsigned char* data;
|
||||
|
@ -168,6 +159,4 @@ void PieceTest::testUpdateHash()
|
|||
util::toHex(p.getDigest()));
|
||||
}
|
||||
|
||||
#endif // ENABLE_MESSAGE_DIGEST
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue