Remove ENABLE_MESSAGE_DIGEST, since we got the internal md, always

This commit is contained in:
Nils Maier 2014-04-17 01:36:19 +02:00
parent befd799d17
commit 010131161e
55 changed files with 65 additions and 399 deletions

View file

@ -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