summaryrefslogtreecommitdiff
path: root/test/RequestGroupTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-09 15:10:26 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2009-03-09 15:10:26 +0000
commite2704bd823e44000b81e42fc05b58b8d0bc9ddda (patch)
tree4f9a5a0299521877e03bff090bdbc80ba43486c3 /test/RequestGroupTest.cc
parented6851636f38a1959186b92b1c619c4706ad4cca (diff)
2009-03-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
FileEntry::getPath() contains store(top level) directory to simplify path handling operation. In the previous implementation, store directory is concatenated to FileEntry::getPath() in DownloadContext. * src/BtDependency.cc * src/BtPostDownloadHandler.cc * src/CopyDiskAdaptor.cc * src/DefaultBtContext.cc * src/DirectDiskAdaptor.cc * src/FileEntry.cc * src/FileEntry.h * src/FtpNegotiationCommand.cc * src/HttpResponse.cc * src/HttpResponseCommand.cc * src/Metalink2RequestGroup.cc * src/MultiDiskAdaptor.cc * src/MultiDiskAdaptor.h * src/MultiFileAllocationIterator.cc * src/RequestGroup.cc * src/SingleFileDownloadContext.cc * src/SingleFileDownloadContext.h * src/download_helper.cc * test/BtDependencyTest.cc * test/CopyDiskAdaptorTest.cc * test/DefaultBtContextTest.cc * test/DefaultBtProgressInfoFileTest.cc * test/DirectDiskAdaptorTest.cc * test/DownloadHelperTest.cc * test/FileEntryTest.cc * test/MultiDiskAdaptorTest.cc * test/MultiFileAllocationIteratorTest.cc * test/RequestGroupTest.cc * test/SingleFileDownloadContextTest.cc
Diffstat (limited to 'test/RequestGroupTest.cc')
-rw-r--r--test/RequestGroupTest.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/RequestGroupTest.cc b/test/RequestGroupTest.cc
index 9a385c31..b8558dad 100644
--- a/test/RequestGroupTest.cc
+++ b/test/RequestGroupTest.cc
@@ -83,8 +83,7 @@ void RequestGroupTest::testRemoveURIWhoseHostnameIs()
void RequestGroupTest::testGetFilePath()
{
SharedHandle<SingleFileDownloadContext> ctx
- (new SingleFileDownloadContext(1024, 1024, "myfile"));
- ctx->setDir("/tmp");
+ (new SingleFileDownloadContext(1024, 1024, "/tmp/myfile"));
Option op;
std::deque<std::string> uris;
@@ -101,8 +100,8 @@ void RequestGroupTest::testGetFilePath()
void RequestGroupTest::testCreateDownloadResult()
{
SharedHandle<SingleFileDownloadContext> ctx
- (new SingleFileDownloadContext(1024, 1024*1024, "myfile"));
- ctx->setDir("/tmp");
+ (new SingleFileDownloadContext(1024, 1024*1024, "/tmp/myfile"));
+ //ctx->setDir("/tmp");
Option op;
std::deque<std::string> uris;
uris.push_back("http://first/file");