aria2/test/DHTNodeTest.cc
Tatsuhiro Tsujikawa 1b7c198289 2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std:: 
prefix to c++
	standard classes.
	Included string.h where mem* function are used.
2008-02-08 15:53:45 +00:00

30 lines
544 B
C++

#include "DHTNode.h"
#include "Exception.h"
#include "Util.h"
#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