mirror of
https://github.com/aria2/aria2.git
synced 2025-04-04 21:17:41 +03:00
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:
parent
4785b7190c
commit
10b52bd9ac
16 changed files with 68 additions and 44 deletions
|
@ -70,8 +70,8 @@ void DHTGetPeersReplyMessageTest::testGetBencodedMessage()
|
|||
|
||||
rDict["nodes"] = compactNodeInfo;
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(util::urlencode(bencode::encode(dict)),
|
||||
util::urlencode(msgbody));
|
||||
CPPUNIT_ASSERT_EQUAL(util::percentEncode(bencode::encode(dict)),
|
||||
util::percentEncode(msgbody));
|
||||
}
|
||||
rDict.removeKey("nodes");
|
||||
{
|
||||
|
@ -90,8 +90,8 @@ void DHTGetPeersReplyMessageTest::testGetBencodedMessage()
|
|||
msg.setValues(peers);
|
||||
std::string msgbody = msg.getBencodedMessage();
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(util::urlencode(bencode::encode(dict)),
|
||||
util::urlencode(msgbody));
|
||||
CPPUNIT_ASSERT_EQUAL(util::percentEncode(bencode::encode(dict)),
|
||||
util::percentEncode(msgbody));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue