mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 13:37:40 +03:00
2008-02-08 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Removed "using namespace std;" from all sources. Appended std:: prefix to c++ standard classes. Included string.h where mem* function are used.
This commit is contained in:
parent
d82e183d34
commit
1b7c198289
801 changed files with 12024 additions and 8627 deletions
|
@ -2,8 +2,11 @@
|
|||
#include "RequestGroup.h"
|
||||
#include "Option.h"
|
||||
#include "SingleFileDownloadContext.h"
|
||||
#include "FileEntry.h"
|
||||
#include <cppunit/extensions/HelperMacros.h>
|
||||
|
||||
namespace aria2 {
|
||||
|
||||
class MetalinkPostDownloadHandlerTest:public CppUnit::TestFixture {
|
||||
|
||||
CPPUNIT_TEST_SUITE(MetalinkPostDownloadHandlerTest);
|
||||
|
@ -27,8 +30,8 @@ CPPUNIT_TEST_SUITE_REGISTRATION( MetalinkPostDownloadHandlerTest );
|
|||
void MetalinkPostDownloadHandlerTest::testCanHandle_extension()
|
||||
{
|
||||
Option op;
|
||||
SingleFileDownloadContextHandle dctx = new SingleFileDownloadContext(0, 0, "test.metalink");
|
||||
RequestGroup rg(&op, Strings());
|
||||
SharedHandle<SingleFileDownloadContext> dctx = new SingleFileDownloadContext(0, 0, "test.metalink");
|
||||
RequestGroup rg(&op, std::deque<std::string>());
|
||||
rg.setDownloadContext(dctx);
|
||||
|
||||
MetalinkPostDownloadHandler handler;
|
||||
|
@ -42,9 +45,9 @@ void MetalinkPostDownloadHandlerTest::testCanHandle_extension()
|
|||
void MetalinkPostDownloadHandlerTest::testCanHandle_contentType()
|
||||
{
|
||||
Option op;
|
||||
SingleFileDownloadContextHandle dctx = new SingleFileDownloadContext(0, 0, "test");
|
||||
SharedHandle<SingleFileDownloadContext> dctx = new SingleFileDownloadContext(0, 0, "test");
|
||||
dctx->setContentType("application/metalink+xml");
|
||||
RequestGroup rg(&op, Strings());
|
||||
RequestGroup rg(&op, std::deque<std::string>());
|
||||
rg.setDownloadContext(dctx);
|
||||
|
||||
MetalinkPostDownloadHandler handler;
|
||||
|
@ -58,8 +61,8 @@ void MetalinkPostDownloadHandlerTest::testCanHandle_contentType()
|
|||
void MetalinkPostDownloadHandlerTest::testGetNextRequestGroups()
|
||||
{
|
||||
Option op;
|
||||
SingleFileDownloadContextHandle dctx = new SingleFileDownloadContext(0, 0, "test.xml");
|
||||
RequestGroup rg(&op, Strings());
|
||||
SharedHandle<SingleFileDownloadContext> dctx = new SingleFileDownloadContext(0, 0, "test.xml");
|
||||
RequestGroup rg(&op, std::deque<std::string>());
|
||||
rg.setDownloadContext(dctx);
|
||||
rg.initPieceStorage();
|
||||
|
||||
|
@ -71,3 +74,5 @@ void MetalinkPostDownloadHandlerTest::testGetNextRequestGroups()
|
|||
CPPUNIT_ASSERT_EQUAL((size_t)5, groups.size());
|
||||
#endif // ENABLE_BITTORRENT
|
||||
}
|
||||
|
||||
} // namespace aria2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue