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,9 @@
#include "HttpHeader.h"
#include "Range.h"
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
class HttpHeaderTest:public CppUnit::TestFixture {
CPPUNIT_TEST_SUITE(HttpHeaderTest);
@@ -20,9 +23,11 @@ void HttpHeaderTest::testGetRange()
HttpHeader httpHeader;
httpHeader.put("Content-Range", "bytes 1-499/1234");
RangeHandle range = httpHeader.getRange();
SharedHandle<Range> range = httpHeader.getRange();
CPPUNIT_ASSERT_EQUAL((int64_t)1, range->getStartByte());
CPPUNIT_ASSERT_EQUAL((int64_t)499, range->getEndByte());
CPPUNIT_ASSERT_EQUAL((int64_t)1234, range->getEntityLength());
}
} // namespace aria2