summaryrefslogtreecommitdiff
path: root/test/RequestGroupManTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-08-04 17:06:47 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-08-04 17:06:47 +0000
commitd64c8e75f6c3b6895f51036e5d16ad696dfe0f66 (patch)
treea9f70ca4f9885772f032c9d30d7ecdbd9fa30c5d /test/RequestGroupManTest.cc
parent7449aba847b876cebaee7c02260a4d0b2ec491bd (diff)
2008-08-05 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Implemented download speed based URI selection algorithm. Introduced new option --uri-selector. If --uri-selector=feedback is given, aria2 uses download speed observed in the previous downloads and chooses fastest server in the URI list. Currently at most 10 URIs are considered to introduce randomeness for finding better servers. The speed is average download speed in the downloads. On the other hand, if --uri-selector=inorder is given, which is default, URI is tried in order in URI list. The usage text for the new option has not been written yet. * src/AbstractCommand.cc * src/DownloadCommand.cc * src/DownloadEngine.cc * src/DownloadEngineFactory.cc * src/InOrderURISelector.cc * src/InOrderURISelector.h * src/OptionHandlerFactory.cc * src/PeerStat.h * src/RequestGroup.cc * src/RequestGroup.h * src/RequestGroupMan.cc * src/RequestGroupMan.h * src/SegmentMan.cc * src/SegmentMan.h * src/ServerStat.cc * src/ServerStat.h * src/ServerStatMan.cc * src/ServerStatMan.h * src/ServerStatURISelector.cc * src/ServerStatURISelector.h * src/URISelector.h * src/option_processing.cc * src/prefs.cc * src/prefs.h * test/InOrderURISelectorTest.cc * test/RequestGroupManTest.cc * test/ServerStatManTest.cc * test/ServerStatURISelectorTest.cc
Diffstat (limited to 'test/RequestGroupManTest.cc')
-rw-r--r--test/RequestGroupManTest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/RequestGroupManTest.cc b/test/RequestGroupManTest.cc
index 5df3f3e7..8d08f34b 100644
--- a/test/RequestGroupManTest.cc
+++ b/test/RequestGroupManTest.cc
@@ -6,6 +6,7 @@
#include "Option.h"
#include "DownloadResult.h"
#include "FileEntry.h"
+#include "ServerStatMan.h"
#include <cppunit/extensions/HelperMacros.h>
namespace aria2 {
@@ -53,7 +54,7 @@ void RequestGroupManTest::testIsSameFileBeingDownloaded()
rgs.push_back(rg1);
rgs.push_back(rg2);
- RequestGroupMan gm(rgs, 1);
+ RequestGroupMan gm(rgs, 1, &option);
CPPUNIT_ASSERT(gm.isSameFileBeingDownloaded(rg1.get()));