mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Untabify. Fixed one line in copyright which is longer than 80 columns. * src * test
This commit is contained in:
parent
338e8aca09
commit
4db349c1f3
827 changed files with 7343 additions and 7336 deletions
|
@ -33,23 +33,23 @@ void MessageDigestHelperTest::testDigestDiskWriter() {
|
|||
(new DefaultDiskWriter("4096chunk.txt"));
|
||||
diskio->openExistingFile();
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("608cabc0f2fa18c260cafd974516865c772363d5"),
|
||||
MessageDigestHelper::digest("sha1", diskio, 0, 4096));
|
||||
MessageDigestHelper::digest("sha1", diskio, 0, 4096));
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("7a4a9ae537ebbbb826b1060e704490ad0f365ead"),
|
||||
MessageDigestHelper::digest("sha1", diskio, 5, 100));
|
||||
MessageDigestHelper::digest("sha1", diskio, 5, 100));
|
||||
}
|
||||
|
||||
void MessageDigestHelperTest::testDigestFilename()
|
||||
{
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("608cabc0f2fa18c260cafd974516865c772363d5"),
|
||||
MessageDigestHelper::digest("sha1", "4096chunk.txt"));
|
||||
MessageDigestHelper::digest("sha1", "4096chunk.txt"));
|
||||
}
|
||||
|
||||
void MessageDigestHelperTest::testDigestData()
|
||||
{
|
||||
std::string data = "aria2";
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("f36003f22b462ffa184390533c500d8989e9f681"),
|
||||
MessageDigestHelper::digest("sha1", data.c_str(), data.size()));
|
||||
MessageDigestHelper::digest("sha1", data.c_str(), data.size()));
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue