mirror of
https://github.com/aria2/aria2.git
synced 2025-04-04 21:17:41 +03:00
Rewrite Time with chrono
This commit is contained in:
parent
99cd73c092
commit
b0f440e631
20 changed files with 87 additions and 270 deletions
|
@ -60,8 +60,6 @@ void DHTRoutingTableDeserializerTest::testDeserialize()
|
|||
CPPUNIT_ASSERT(memcmp(localNode->getID(), d.getLocalNode()->getID(),
|
||||
DHT_ID_LENGTH) == 0);
|
||||
|
||||
std::cout << d.getSerializedTime().getTime() << std::endl;
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)2, d.getNodes().size());
|
||||
const std::vector<std::shared_ptr<DHTNode> >& dsnodes = d.getNodes();
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("192.168.0.1"), dsnodes[0]->getIPAddress());
|
||||
|
@ -97,8 +95,6 @@ void DHTRoutingTableDeserializerTest::testDeserialize6()
|
|||
CPPUNIT_ASSERT(memcmp(localNode->getID(), d.getLocalNode()->getID(),
|
||||
DHT_ID_LENGTH) == 0);
|
||||
|
||||
std::cout << d.getSerializedTime().getTime() << std::endl;
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((size_t)2, d.getNodes().size());
|
||||
const std::vector<std::shared_ptr<DHTNode> >& dsnodes = d.getNodes();
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("2001::1001"), dsnodes[0]->getIPAddress());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue