mirror of
https://github.com/aria2/aria2.git
synced 2025-04-04 21:17:41 +03:00
clang-format-5.0
This commit is contained in:
parent
20a7c43f2d
commit
795a0474df
48 changed files with 595 additions and 284 deletions
|
@ -113,12 +113,10 @@ void HandshakeExtensionMessageTest::testDoReceivedAction()
|
|||
msg.doReceivedAction();
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((uint16_t)6889, peer->getPort());
|
||||
CPPUNIT_ASSERT_EQUAL(
|
||||
(uint8_t)1,
|
||||
peer->getExtensionMessageID(ExtensionMessageRegistry::UT_PEX));
|
||||
CPPUNIT_ASSERT_EQUAL(
|
||||
(uint8_t)3,
|
||||
peer->getExtensionMessageID(ExtensionMessageRegistry::UT_METADATA));
|
||||
CPPUNIT_ASSERT_EQUAL((uint8_t)1, peer->getExtensionMessageID(
|
||||
ExtensionMessageRegistry::UT_PEX));
|
||||
CPPUNIT_ASSERT_EQUAL((uint8_t)3, peer->getExtensionMessageID(
|
||||
ExtensionMessageRegistry::UT_METADATA));
|
||||
CPPUNIT_ASSERT(peer->isSeeder());
|
||||
auto attrs = bittorrent::getTorrentAttrs(dctx);
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)1_k, attrs->metadataSize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue