diff --git a/ChangeLog b/ChangeLog index 83b2367b..051d664f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-05-21 Tatsuhiro Tsujikawa + + Fixed compile error when configured with --disable-bittorrent + * test/DownloadHandlerFactoryTest.cc + 2008-05-21 Tatsuhiro Tsujikawa Done make update-po diff --git a/test/DownloadHandlerFactoryTest.cc b/test/DownloadHandlerFactoryTest.cc index e090300a..004578d8 100644 --- a/test/DownloadHandlerFactoryTest.cc +++ b/test/DownloadHandlerFactoryTest.cc @@ -15,8 +15,12 @@ class DownloadHandlerFactoryTest:public CppUnit::TestFixture { CPPUNIT_TEST(testGetMetalinkPreDownloadHandler_extension); CPPUNIT_TEST(testGetMetalinkPreDownloadHandler_contentType); #endif // ENABLE_METALINK + +#ifdef ENABLE_BITTORRENT CPPUNIT_TEST(testGetBtPreDownloadHandler_extension); CPPUNIT_TEST(testGetBtPreDownloadHandler_contentType); +#endif // ENABLE_BITTORRENT + CPPUNIT_TEST_SUITE_END(); private: @@ -28,8 +32,11 @@ public: void testGetMetalinkPreDownloadHandler_contentType(); #endif // ENABLE_METALINK +#ifdef ENABLE_BITTORRENT void testGetBtPreDownloadHandler_extension(); void testGetBtPreDownloadHandler_contentType(); +#endif // ENABLE_BITTORRENT + }; @@ -72,6 +79,8 @@ void DownloadHandlerFactoryTest::testGetMetalinkPreDownloadHandler_contentType() #endif // ENABLE_METALINK +#ifdef ENABLE_BITTORRENT + void DownloadHandlerFactoryTest::testGetBtPreDownloadHandler_extension() { Option op; @@ -105,4 +114,6 @@ void DownloadHandlerFactoryTest::testGetBtPreDownloadHandler_contentType() CPPUNIT_ASSERT(!handler->canHandle(&rg)); } +#endif // ENABLE_BITTORRENT + } // namespace aria2