mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
This commit is contained in:
parent
ca3f6e57f3
commit
032c7c2808
278 changed files with 1489 additions and 1517 deletions
|
@ -37,9 +37,9 @@ void BtBitfieldMessageTest::testCreate() {
|
|||
memset(bitfield, 0xff, sizeof(bitfield));
|
||||
memcpy(&msg[5], bitfield, sizeof(bitfield));
|
||||
SharedHandle<BtBitfieldMessage> pm = BtBitfieldMessage::create(&msg[4], 3);
|
||||
CPPUNIT_ASSERT_EQUAL((int8_t)5, pm->getId());
|
||||
CPPUNIT_ASSERT_EQUAL((uint8_t)5, pm->getId());
|
||||
CPPUNIT_ASSERT(memcmp(bitfield, pm->getBitfield(), sizeof(bitfield)) == 0);
|
||||
CPPUNIT_ASSERT_EQUAL((int32_t)2, pm->getBitfieldLength());
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)2, pm->getBitfieldLength());
|
||||
// case: payload size is wrong
|
||||
try {
|
||||
unsigned char msg[5];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue