mirror of https://github.com/aria2/aria2
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT * test/XmlRpcMethodTest.ccpull/1/head
parent
52f11b5a21
commit
58f4e715e0
|
@ -1,3 +1,8 @@
|
|||
2009-11-27 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Added test case for PREF_BT_REQUEST_PEER_SPEED_LIMIT
|
||||
* test/XmlRpcMethodTest.cc
|
||||
|
||||
2009-11-26 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed redundant DownloadContext::hasAttribute(...) calls.
|
||||
|
|
|
@ -365,6 +365,7 @@ void XmlRpcMethodTest::testChangeOption()
|
|||
BDE opt = BDE::dict();
|
||||
opt[PREF_MAX_DOWNLOAD_LIMIT] = BDE("100K");
|
||||
#ifdef ENABLE_BITTORRENT
|
||||
opt[PREF_BT_REQUEST_PEER_SPEED_LIMIT] = BDE("300K");
|
||||
opt[PREF_MAX_UPLOAD_LIMIT] = BDE("50K");
|
||||
#endif // ENABLE_BITTORRENT
|
||||
req._params << opt;
|
||||
|
@ -376,6 +377,9 @@ void XmlRpcMethodTest::testChangeOption()
|
|||
CPPUNIT_ASSERT_EQUAL(std::string("102400"),
|
||||
group->getOption()->get(PREF_MAX_DOWNLOAD_LIMIT));
|
||||
#ifdef ENABLE_BITTORRENT
|
||||
CPPUNIT_ASSERT_EQUAL
|
||||
(std::string("307200"),
|
||||
group->getOption()->get(PREF_BT_REQUEST_PEER_SPEED_LIMIT));
|
||||
CPPUNIT_ASSERT_EQUAL((unsigned int)50*1024, group->getMaxUploadSpeedLimit());
|
||||
CPPUNIT_ASSERT_EQUAL(std::string("51200"),
|
||||
group->getOption()->get(PREF_MAX_UPLOAD_LIMIT));
|
||||
|
|
Loading…
Reference in New Issue