summaryrefslogtreecommitdiff
path: root/test/DefaultBtMessageDispatcherTest.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-12-03 13:08:22 +0900
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2010-12-03 13:08:22 +0900
commit0a2b1660fa282da899cba35f7105b9d424f915ca (patch)
tree5283e683278fac7660204bf3619ff6dc53a2183d /test/DefaultBtMessageDispatcherTest.cc
parent479f71efaffb8cbed3c4c22ad6e7b02869e8784f (diff)
Removed DownloadContext::dir_. Use PREF_DIR value instead.
Diffstat (limited to 'test/DefaultBtMessageDispatcherTest.cc')
-rw-r--r--test/DefaultBtMessageDispatcherTest.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/DefaultBtMessageDispatcherTest.cc b/test/DefaultBtMessageDispatcherTest.cc
index ef3f0fe8..88257d62 100644
--- a/test/DefaultBtMessageDispatcherTest.cc
+++ b/test/DefaultBtMessageDispatcherTest.cc
@@ -136,11 +136,12 @@ public:
void setUp() {
option_.reset(new Option());
+ option_->put(PREF_DIR, ".");
rg_.reset(new RequestGroup(option_));
dctx_.reset(new DownloadContext());
- bittorrent::load(A2_TEST_DIR"/test.torrent", dctx_);
+ bittorrent::load(A2_TEST_DIR"/test.torrent", dctx_, option_);
rg_->setDownloadContext(dctx_);