|
@@ -11,8 +11,10 @@ namespace aria2 {
|
|
class DownloadHandlerFactoryTest:public CppUnit::TestFixture {
|
|
class DownloadHandlerFactoryTest:public CppUnit::TestFixture {
|
|
|
|
|
|
CPPUNIT_TEST_SUITE(DownloadHandlerFactoryTest);
|
|
CPPUNIT_TEST_SUITE(DownloadHandlerFactoryTest);
|
|
|
|
+#ifdef ENABLE_METALINK
|
|
CPPUNIT_TEST(testGetMetalinkPreDownloadHandler_extension);
|
|
CPPUNIT_TEST(testGetMetalinkPreDownloadHandler_extension);
|
|
CPPUNIT_TEST(testGetMetalinkPreDownloadHandler_contentType);
|
|
CPPUNIT_TEST(testGetMetalinkPreDownloadHandler_contentType);
|
|
|
|
+#endif // ENABLE_METALINK
|
|
CPPUNIT_TEST(testGetBtPreDownloadHandler_extension);
|
|
CPPUNIT_TEST(testGetBtPreDownloadHandler_extension);
|
|
CPPUNIT_TEST(testGetBtPreDownloadHandler_contentType);
|
|
CPPUNIT_TEST(testGetBtPreDownloadHandler_contentType);
|
|
CPPUNIT_TEST_SUITE_END();
|
|
CPPUNIT_TEST_SUITE_END();
|
|
@@ -21,8 +23,11 @@ private:
|
|
public:
|
|
public:
|
|
void setUp() {}
|
|
void setUp() {}
|
|
|
|
|
|
|
|
+#ifdef ENABLE_METALINK
|
|
void testGetMetalinkPreDownloadHandler_extension();
|
|
void testGetMetalinkPreDownloadHandler_extension();
|
|
void testGetMetalinkPreDownloadHandler_contentType();
|
|
void testGetMetalinkPreDownloadHandler_contentType();
|
|
|
|
+#endif // ENABLE_METALINK
|
|
|
|
+
|
|
void testGetBtPreDownloadHandler_extension();
|
|
void testGetBtPreDownloadHandler_extension();
|
|
void testGetBtPreDownloadHandler_contentType();
|
|
void testGetBtPreDownloadHandler_contentType();
|
|
};
|
|
};
|
|
@@ -30,6 +35,8 @@ public:
|
|
|
|
|
|
CPPUNIT_TEST_SUITE_REGISTRATION( DownloadHandlerFactoryTest );
|
|
CPPUNIT_TEST_SUITE_REGISTRATION( DownloadHandlerFactoryTest );
|
|
|
|
|
|
|
|
+#ifdef ENABLE_METALINK
|
|
|
|
+
|
|
void DownloadHandlerFactoryTest::testGetMetalinkPreDownloadHandler_extension()
|
|
void DownloadHandlerFactoryTest::testGetMetalinkPreDownloadHandler_extension()
|
|
{
|
|
{
|
|
Option op;
|
|
Option op;
|
|
@@ -63,6 +70,8 @@ void DownloadHandlerFactoryTest::testGetMetalinkPreDownloadHandler_contentType()
|
|
CPPUNIT_ASSERT(!handler->canHandle(&rg));
|
|
CPPUNIT_ASSERT(!handler->canHandle(&rg));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+#endif // ENABLE_METALINK
|
|
|
|
+
|
|
void DownloadHandlerFactoryTest::testGetBtPreDownloadHandler_extension()
|
|
void DownloadHandlerFactoryTest::testGetBtPreDownloadHandler_extension()
|
|
{
|
|
{
|
|
Option op;
|
|
Option op;
|