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.
This commit is contained in:
Tatsuhiro Tsujikawa 2008-02-08 15:53:45 +00:00
parent d82e183d34
commit 1b7c198289
801 changed files with 12024 additions and 8627 deletions

View file

@ -8,6 +8,8 @@
#include "Util.h"
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
class DHTPingMessageTest:public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(DHTPingMessageTest);
@ -26,16 +28,16 @@ CPPUNIT_TEST_SUITE_REGISTRATION(DHTPingMessageTest);
void DHTPingMessageTest::testGetBencodedMessage()
{
DHTNodeHandle localNode = new DHTNode();
DHTNodeHandle remoteNode = new DHTNode();
SharedHandle<DHTNode> localNode = new DHTNode();
SharedHandle<DHTNode> remoteNode = new DHTNode();
char tid[DHT_TRANSACTION_ID_LENGTH];
DHTUtil::generateRandomData(tid, DHT_TRANSACTION_ID_LENGTH);
string transactionID(&tid[0], &tid[DHT_TRANSACTION_ID_LENGTH]);
std::string transactionID(&tid[0], &tid[DHT_TRANSACTION_ID_LENGTH]);
DHTPingMessage msg(localNode, remoteNode, transactionID);
string msgbody = msg.getBencodedMessage();
std::string msgbody = msg.getBencodedMessage();
SharedHandle<Dictionary> cm = new Dictionary();
cm->put("t", new Data(transactionID));
@ -50,3 +52,5 @@ void DHTPingMessageTest::testGetBencodedMessage()
CPPUNIT_ASSERT_EQUAL(v.getBencodedData(), msgbody);
}
} // namespace aria2