aria2/test
Tatsuhiro Tsujikawa b8737b0e7c 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
To simplify TrackerWatherCommand, TrackerUpdateCommand and
	make the process of announce request testable.
	
	* src/TrackerWatcherCommand.h
	(TimeA2.h): Removed.
	(interval): Removed.
	(checkPoint): Removed.
	(createRequestCommand): Added an argument 'url'.
	(TrackerWatherCommand): Removed interval.
	(createCommand): New function.
	* src/DownloadEngineFactory.cc
	(newTorrentConsoleEngine): Updated according to the changes in
	TrackerWatherCommand.
	* src/TorrentMan.cc
	(DelegatingPeerListProcessor.h): New includes.
	(TorrentMan): Added the initialization of announceInterval.
	(isStoppedAnnounceReady): New function.
	(isCompletedAnnounceReady): New function.
	(isDefaultAnnounceReady): New function.
	(isAnnounceReady): New function.
	(getAnnounceUrl): New function.
	(announceStart): New function.
	(announceFailure): New function.
	(announceSuccess): New function.
	(isAllAnnounceFailed): New function.
	(resetAnnounce): New function.
	(processAnnounceResponse): New function.
	(needMorePeerConnection): New function.
	(noMoreAnnounce): New function.
	* src/TrackerUpdateCommand.h
	(getTrackerResponse): int->size_t
	* src/TorrentMan.h
	(isStoppedAnnounceReady): New function.
	(isCompletedAnnounceReady): New function.
	(isDefaultAnnounceReady): New function.
	(announceInterval): New variable.
	(isAnnounceReady): New function.
	(getAnnounceUrl): New function.
	(announceStart): New function.
	(announceFailure): New function.
	(announceSuccess): New function.
	(isAllAnnounceFailed): New function.
	(resetAnnounce): New function.
	(processAnnounceResponse): New function.
	(needMorePeerConnection): New function.
	(noMoreAnnounce): New function.
	* src/TrackerWatcherCommand.cc
	(TrackerWatherCommand): Removed interval and checkPoint.
	(execute): Rewritten.
	(createCommand): New function.
	(createRequestCommand): Rewritten.
	* src/TrackerUpdateCommand.cc
	(MetaFileUtil.h): Removed.
	(DelegatingPeerListProcessor.h): Removed.
	(getTrackerResponse): int->size_t. Use torrentMan's new 
functions.
2006-10-20 13:20:50 +00:00
..
4096chunk.txt Initial import 2006-02-17 13:35:04 +00:00
AllTest.cc Initial import 2006-02-17 13:35:04 +00:00
AllowedFastMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
AnnounceListTest.cc 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-18 14:57:00 +00:00
Base64Test.cc 2006-07-03 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-03 14:19:23 +00:00
BitfieldManTest.cc 2006-09-19 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-09-19 14:52:59 +00:00
BitfieldMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
CancelMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
ChokeMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
ChunkedEncodingTest.cc Initial import 2006-02-17 13:35:04 +00:00
CookieBoxTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
DataTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DefaultDiskWriterTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
DefaultPeerListProcessorTest.cc 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-18 14:57:00 +00:00
DictionaryTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
FeatureConfigTest.cc 2006-08-14 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-14 15:03:38 +00:00
FileTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
HaveAllMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
HaveMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
HaveNoneMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
InterestedMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
ListTest.cc added bittorrent support(experimental) 2006-03-21 14:12:51 +00:00
Makefile.am 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-20 13:20:50 +00:00
Makefile.in 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-20 13:20:50 +00:00
MetaFileUtilTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
MetalinkEntryTest.cc 2006-08-07 16:43:58 +00:00
MetalinkerTest.cc 2006-07-03 14:19:59 +00:00
MultiDiskWriterTest.cc 2006-04-16 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-16 14:38:19 +00:00
NotInterestedMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
OptionTest.cc 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-28 12:40:41 +00:00
PeerMessageUtilTest.cc 2006-07-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-30 12:58:27 +00:00
PieceMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
RejectMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
RequestMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
RequestTest.cc 2006-07-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-07-20 15:48:12 +00:00
RequestToString.cc Initial import 2006-02-17 13:35:04 +00:00
SegmentManTest.cc 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-18 14:57:00 +00:00
ShaVisitorTest.cc 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-20 13:20:50 +00:00
ShareRatioSeedCriteriaTest.cc 2006-08-28 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-28 12:40:41 +00:00
SpeedCalcTest.cc 2006-09-23 11:58:23 +00:00
SuggestPieceMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
TimeSeedCriteriaTest.cc 2006-08-27 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-08-27 12:49:17 +00:00
TorrentManTest.cc 2006-04-06 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-06 12:52:16 +00:00
TrackerWatcherCommandTest.cc 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-20 13:20:50 +00:00
UnchokeMessageTest.cc 2006-05-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-05-18 17:08:29 +00:00
UtilTest.cc 2006-10-18 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-18 14:57:00 +00:00
Xml2MetalinkProcessorTest.cc 2006-08-07 16:43:58 +00:00
file1r.txt 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
file2r.txt 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
file3r.txt 2006-04-12 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-04-12 13:55:43 +00:00
test.torrent 2006-10-20 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com> 2006-10-20 13:20:50 +00:00
test.xml 2006-07-04 12:04:47 +00:00