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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user