mirror of
https://github.com/aria2/aria2.git
synced 2025-04-06 05:57:36 +03:00
2007-10-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented BitTorrent/http/ftp integrated download. I've rewritten lots of files and now some headers have forward class declarations to reduce compile time. The implementation is extremely alpha stage, I recommend to use this for testing purpose only.
This commit is contained in:
parent
e26bbbb9ee
commit
048a2cf597
252 changed files with 8646 additions and 5343 deletions
|
@ -1,5 +1,7 @@
|
|||
#include "HttpResponse.h"
|
||||
#include "prefs.h"
|
||||
#include "PiecedSegment.h"
|
||||
#include "Piece.h"
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
using namespace std;
|
||||
|
@ -267,11 +269,7 @@ void HttpResponseTest::testValidateResponse_good_range()
|
|||
httpResponse.setHttpHeader(httpHeader);
|
||||
|
||||
HttpRequestHandle httpRequest = new HttpRequest();
|
||||
SegmentHandle segment = new Segment();
|
||||
segment->index = 1;
|
||||
segment->length = 1024*1024;
|
||||
segment->segmentLength = 1024*1024;
|
||||
segment->writtenLength = 0;
|
||||
SegmentHandle segment = new PiecedSegment(1024*1024, new Piece(1, 1024*1024));
|
||||
httpRequest->setSegment(segment);
|
||||
RequestHandle request = new Request();
|
||||
request->setUrl("http://localhost/archives/aria2-1.0.0.tar.bz2");
|
||||
|
@ -297,11 +295,7 @@ void HttpResponseTest::testValidateResponse_bad_range()
|
|||
httpResponse.setHttpHeader(httpHeader);
|
||||
|
||||
HttpRequestHandle httpRequest = new HttpRequest();
|
||||
SegmentHandle segment = new Segment();
|
||||
segment->index = 1;
|
||||
segment->length = 1024*1024;
|
||||
segment->segmentLength = 1024*1024;
|
||||
segment->writtenLength = 0;
|
||||
SegmentHandle segment = new PiecedSegment(1024*1024, new Piece(1, 1024*1024));
|
||||
httpRequest->setSegment(segment);
|
||||
RequestHandle request = new Request();
|
||||
request->setUrl("http://localhost/archives/aria2-1.0.0.tar.bz2");
|
||||
|
@ -326,11 +320,7 @@ void HttpResponseTest::testValidateResponse_chunked()
|
|||
httpResponse.setHttpHeader(httpHeader);
|
||||
|
||||
HttpRequestHandle httpRequest = new HttpRequest();
|
||||
SegmentHandle segment = new Segment();
|
||||
segment->index = 1;
|
||||
segment->length = 1024*1024;
|
||||
segment->segmentLength = 1024*1024;
|
||||
segment->writtenLength = 0;
|
||||
SegmentHandle segment = new PiecedSegment(1024*1024, new Piece(1, 1024*1024));
|
||||
httpRequest->setSegment(segment);
|
||||
RequestHandle request = new Request();
|
||||
request->setUrl("http://localhost/archives/aria2-1.0.0.tar.bz2");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue