2010-03-07 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

urlencode -> percentEncode,
	torrentUrlencode -> torrentPercentEncode
	* src/BtHandshakeMessage.cc
	* src/BtHandshakeMessageValidator.h
	* src/DHTMessageFactoryImpl.cc
	* src/DefaultBtAnnounce.cc
	* src/HandshakeExtensionMessage.cc
	* src/HttpRequest.cc
	* src/XmlRpcMethodImpl.cc
	* src/bittorrent_helper.cc
	* src/util.cc
	* src/util.h
	* test/DHTAnnouncePeerMessageTest.cc
	* test/DHTGetPeersMessageTest.cc
	* test/DHTGetPeersReplyMessageTest.cc
	* test/UTPexExtensionMessageTest.cc
	* test/UtilTest.cc
This commit is contained in:
Tatsuhiro Tsujikawa 2010-03-07 14:24:21 +00:00
parent 4785b7190c
commit 10b52bd9ac
16 changed files with 68 additions and 44 deletions

View file

@ -96,8 +96,8 @@ void UTPexExtensionMessageTest::testGetBencodedData()
std::string(&c3[0], &c3[6])+std::string(&c4[0], &c4[6])+
"e";
std::string bd = msg.getPayload();
CPPUNIT_ASSERT_EQUAL(util::urlencode(expected),
util::urlencode(bd));
CPPUNIT_ASSERT_EQUAL(util::percentEncode(expected),
util::percentEncode(bd));
}
void UTPexExtensionMessageTest::testToString()