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

@@ -1,6 +1,8 @@
#include "FileEntry.h"
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
class FileEntryTest : public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(FileEntryTest);
@@ -17,10 +19,10 @@ CPPUNIT_TEST_SUITE_REGISTRATION( FileEntryTest );
void FileEntryTest::testSetupDir()
{
string topDir = "/tmp";
string dir = "aria2-FileEntryTest-testSetupDir";
string filename = "filename";
string path = topDir+"/"+dir+"/"+filename;
std::string topDir = "/tmp";
std::string dir = "aria2-FileEntryTest-testSetupDir";
std::string filename = "filename";
std::string path = topDir+"/"+dir+"/"+filename;
File d(topDir+"/"+dir);
if(d.exists()) {
CPPUNIT_ASSERT(d.remove());
@@ -32,3 +34,5 @@ void FileEntryTest::testSetupDir()
File f(path);
CPPUNIT_ASSERT(!f.exists());
}
} // namespace aria2