mirror of
https://github.com/aria2/aria2.git
synced 2025-04-07 06:27:37 +03:00
This commit is contained in:
parent
708b9f4a3d
commit
a413cb50f7
84 changed files with 527 additions and 528 deletions
|
@ -52,7 +52,7 @@ void BtHandshakeMessageTest::testCreate() {
|
|||
unsigned char msg[68];
|
||||
createHandshakeMessageData(msg);
|
||||
BtHandshakeMessageHandle message = BtHandshakeMessage::create(&msg[0], sizeof(msg));
|
||||
CPPUNIT_ASSERT_EQUAL(INT32_MAX, message->getId());
|
||||
CPPUNIT_ASSERT_EQUAL((uint8_t)UINT8_MAX, message->getId());
|
||||
CPPUNIT_ASSERT_EQUAL((uint8_t)19, message->getPstrlen());
|
||||
CPPUNIT_ASSERT_EQUAL(Util::toHex((const unsigned char*)BTPSTR.c_str(), BTPSTR.size()),
|
||||
Util::toHex(message->getPstr(), BtHandshakeMessage::PSTR_LENGTH));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue