Forráskód Böngészése

2008-05-21 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

	Fixed compile error when configured with --disable-bittorrent
	* test/DownloadHandlerFactoryTest.cc
Tatsuhiro Tsujikawa 17 éve
szülő
commit
8a653fe38b
2 módosított fájl, 16 hozzáadás és 0 törlés
  1. 5 0
      ChangeLog
  2. 11 0
      test/DownloadHandlerFactoryTest.cc

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-05-21  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
+
+	Fixed compile error when configured with --disable-bittorrent
+	* test/DownloadHandlerFactoryTest.cc
+	
 2008-05-21  Tatsuhiro Tsujikawa  <tujikawa at rednoah dot com>
 
 	Done make update-po

+ 11 - 0
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