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,13 +1,11 @@
#include "SingleFileAllocationIterator.h"
#include "File.h"
#include "DefaultDiskWriter.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <fstream>
#include <iomanip>
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
class SingleFileAllocationIteratorTest:public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(SingleFileAllocationIteratorTest);
@@ -26,10 +24,10 @@ CPPUNIT_TEST_SUITE_REGISTRATION( SingleFileAllocationIteratorTest );
void SingleFileAllocationIteratorTest::testAllocate()
{
string dir = "/tmp";
string fname = "aria2_SingleFileAllocationIteratorTest_testAllocate";
string fn = dir+"/"+fname;
ofstream of(fn.c_str());
std::string dir = "/tmp";
std::string fname = "aria2_SingleFileAllocationIteratorTest_testAllocate";
std::string fn = dir+"/"+fname;
std::ofstream of(fn.c_str());
of << "0123456789";
of.close();
@@ -51,3 +49,5 @@ void SingleFileAllocationIteratorTest::testAllocate()
File f(fn);
CPPUNIT_ASSERT_EQUAL((int64_t)40960, f.size());
}
} // namespace aria2