mirror of
https://github.com/aria2/aria2.git
synced 2025-01-01 15:44:55 +00:00
e976b23728
Renamed Util.{cc,h} as util.{cc,h} * src/Util.cc * src/Util.h * src/util.cc * src/util.h
32 lines
564 B
C++
32 lines
564 B
C++
#include "DHTNode.h"
|
|
#include "Exception.h"
|
|
#include "util.h"
|
|
#include <iostream>
|
|
#include <cppunit/extensions/HelperMacros.h>
|
|
|
|
namespace aria2 {
|
|
|
|
class DHTNodeTest:public CppUnit::TestFixture {
|
|
|
|
CPPUNIT_TEST_SUITE(DHTNodeTest);
|
|
CPPUNIT_TEST(testGenerateID);
|
|
CPPUNIT_TEST_SUITE_END();
|
|
public:
|
|
void setUp() {}
|
|
|
|
void tearDown() {}
|
|
|
|
void testGenerateID();
|
|
};
|
|
|
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION(DHTNodeTest);
|
|
|
|
void DHTNodeTest::testGenerateID()
|
|
{
|
|
DHTNode node;
|
|
std::cerr << util::toHex(node.getID(), DHT_ID_LENGTH) << std::endl;
|
|
}
|
|
|
|
} // namespace aria2
|