mirror of https://github.com/aria2/aria2
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Applied Ross's aria2-0.13.2+1-mingw-3.patch. * test/HttpHeaderTest.cc: Casted to off_t where it should. * test/HttpRequestTest.cc: Casted to off_t where it should.pull/1/head
parent
b559054701
commit
06644332c2
|
@ -1,3 +1,9 @@
|
|||
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Applied Ross's aria2-0.13.2+1-mingw-3.patch.
|
||||
* test/HttpHeaderTest.cc: Casted to off_t where it should.
|
||||
* test/HttpRequestTest.cc: Casted to off_t where it should.
|
||||
|
||||
2008-06-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||
|
||||
Applied Ross's aria2-0.13.2+1-mingw.patch and
|
||||
|
|
|
@ -28,9 +28,9 @@ void HttpHeaderTest::testGetRange()
|
|||
|
||||
SharedHandle<Range> range = httpHeader.getRange();
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(9223372036854775800LL, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL(9223372036854775801LL, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL(9223372036854775807ULL, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775800LL, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775801LL, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)9223372036854775807ULL, range->getEntityLength());
|
||||
}
|
||||
{
|
||||
HttpHeader httpHeader;
|
||||
|
@ -39,9 +39,9 @@ void HttpHeaderTest::testGetRange()
|
|||
|
||||
SharedHandle<Range> range = httpHeader.getRange();
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(9223372036854775800LL, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL(9223372036854775801LL, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL(9223372036854775807ULL, range->getEntityLength());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775800LL, range->getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)9223372036854775801LL, range->getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((uint64_t)9223372036854775807ULL, range->getEntityLength());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -54,11 +54,11 @@ void HttpRequestTest::testGetStartByte()
|
|||
SharedHandle<Piece> p(new Piece(1, 1024));
|
||||
SharedHandle<Segment> segment(new PiecedSegment(1024, p));
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getStartByte());
|
||||
|
||||
httpRequest.setSegment(segment);
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(1024LL, httpRequest.getStartByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)1024LL, httpRequest.getStartByte());
|
||||
|
||||
}
|
||||
|
||||
|
@ -72,11 +72,11 @@ void HttpRequestTest::testGetEndByte()
|
|||
SharedHandle<Piece> piece(new Piece(index, length));
|
||||
SharedHandle<Segment> segment(new PiecedSegment(segmentLength, piece));
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getEndByte());
|
||||
|
||||
httpRequest.setSegment(segment);
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getEndByte());
|
||||
|
||||
SharedHandle<Request> request(new Request());
|
||||
request->supportsPersistentConnection(true);
|
||||
|
@ -84,13 +84,13 @@ void HttpRequestTest::testGetEndByte()
|
|||
|
||||
httpRequest.setRequest(request);
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)segmentLength*index+length-1,
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)(segmentLength*index+length-1),
|
||||
httpRequest.getEndByte());
|
||||
|
||||
|
||||
request->setPipeliningHint(false);
|
||||
|
||||
CPPUNIT_ASSERT_EQUAL(0LL, httpRequest.getEndByte());
|
||||
CPPUNIT_ASSERT_EQUAL((off_t)0LL, httpRequest.getEndByte());
|
||||
}
|
||||
|
||||
void HttpRequestTest::testCreateRequest()
|
||||
|
|
Loading…
Reference in New Issue