2010-01-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Untabify. Fixed one line in copyright which is longer than 80
	columns.
	* src
	* test
This commit is contained in:
Tatsuhiro Tsujikawa 2010-01-05 16:01:46 +00:00
parent 338e8aca09
commit 4db349c1f3
827 changed files with 7343 additions and 7336 deletions

View file

@ -31,9 +31,9 @@ void DHTUnknownMessageTest::testToString()
// data.size() > 8
std::string data = "chocolate";
DHTUnknownMessage msg(localNode,
reinterpret_cast<const unsigned char*>(data.c_str()),
data.size(),
ipaddr, port);
reinterpret_cast<const unsigned char*>(data.c_str()),
data.size(),
ipaddr, port);
CPPUNIT_ASSERT_EQUAL(std::string("dht unknown Remote:192.168.0.1:6881 length=9, first 8 bytes(hex)=63686f636f6c6174"), msg.toString());
}
@ -41,9 +41,9 @@ void DHTUnknownMessageTest::testToString()
// data.size() == 3
std::string data = "foo";
DHTUnknownMessage msg(localNode,
reinterpret_cast<const unsigned char*>(data.c_str()),
data.size(),
ipaddr, port);
reinterpret_cast<const unsigned char*>(data.c_str()),
data.size(),
ipaddr, port);
CPPUNIT_ASSERT_EQUAL(std::string("dht unknown Remote:192.168.0.1:6881 length=3, first 8 bytes(hex)=666f6f"), msg.toString());
}