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

@ -3,8 +3,12 @@
#include "Util.h"
#include "DHTNodeLookupEntry.h"
#include "DHTNode.h"
#include <cstring>
#include <algorithm>
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
class XORCloserTest:public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(XORCloserTest);
@ -35,7 +39,7 @@ void XORCloserTest::testOperator()
keys[4][DHT_ID_LENGTH-1] = 0x01;
keys[5][0] = 0x00;
deque<unsigned char*> l(&keys[0], &keys[NUM_KEY]);
std::deque<unsigned char*> l(&keys[0], &keys[NUM_KEY]);
std::sort(l.begin(), l.end(), XORCloser(keys[2], DHT_ID_LENGTH));
@ -46,3 +50,5 @@ void XORCloserTest::testOperator()
CPPUNIT_ASSERT(memcmp(keys[5], l[4], DHT_ID_LENGTH) == 0);
CPPUNIT_ASSERT(memcmp(keys[4], l[5], DHT_ID_LENGTH) == 0);
}
} // namespace aria2