diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-02-18 22:34:38 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2011-02-18 22:34:38 +0900 |
| commit | 7230fbd2f780023b269fc940a286cd064fbe98b2 (patch) | |
| tree | 8e8aba0e732ab868574fda19db703162026e28b3 /test | |
| parent | 5b62fa9ab1d8baff8400fd49c79218659edecb71 (diff) | |
Replaced HAVE_LIBZ with HAVE_ZLIB
Diffstat (limited to 'test')
| -rw-r--r-- | test/FeatureConfigTest.cc | 4 | ||||
| -rw-r--r-- | test/HttpRequestTest.cc | 4 | ||||
| -rw-r--r-- | test/HttpResponseTest.cc | 4 | ||||
| -rw-r--r-- | test/Makefile.am | 4 |
4 files changed, 8 insertions, 8 deletions
diff --git a/test/FeatureConfigTest.cc b/test/FeatureConfigTest.cc index ef37303f..173d5946 100644 --- a/test/FeatureConfigTest.cc +++ b/test/FeatureConfigTest.cc @@ -65,9 +65,9 @@ void FeatureConfigTest::testFeatureSummary() { "Firefox3 Cookie", #endif // HAVE_SQLITE3 -#ifdef HAVE_LIBZ +#ifdef HAVE_ZLIB "GZip", -#endif // HAVE_LIBZ +#endif // HAVE_ZLIB #ifdef ENABLE_SSL "HTTPS", diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc index 590072de..010eae39 100644 --- a/test/HttpRequestTest.cc +++ b/test/HttpRequestTest.cc @@ -795,9 +795,9 @@ void HttpRequestTest::testEnableAcceptEncoding() httpRequest.setAuthConfigFactory(authConfigFactory_, option_.get()); std::string acceptEncodings; -#ifdef HAVE_LIBZ +#ifdef HAVE_ZLIB acceptEncodings += "deflate, gzip"; -#endif // HAVE_LIBZ +#endif // HAVE_ZLIB std::string expectedTextHead = "GET /archives/aria2-1.0.0.tar.bz2 HTTP/1.1\r\n" diff --git a/test/HttpResponseTest.cc b/test/HttpResponseTest.cc index 0b0de6c5..4c4dcfc4 100644 --- a/test/HttpResponseTest.cc +++ b/test/HttpResponseTest.cc @@ -304,7 +304,7 @@ void HttpResponseTest::testGetContentEncodingStreamFilter() CPPUNIT_ASSERT(!httpResponse.getContentEncodingStreamFilter()); -#ifdef HAVE_LIBZ +#ifdef HAVE_ZLIB httpHeader->put("Content-Encoding", "gzip"); { SharedHandle<StreamFilter> filter = @@ -323,7 +323,7 @@ void HttpResponseTest::testGetContentEncodingStreamFilter() CPPUNIT_ASSERT_EQUAL(std::string("GZipDecodingStreamFilter"), filter->getName()); } -#endif // HAVE_LIBZ +#endif // HAVE_ZLIB httpHeader.reset(new HttpHeader()); httpResponse.setHttpHeader(httpHeader); httpHeader->put("Content-Encoding", "bzip2"); diff --git a/test/Makefile.am b/test/Makefile.am index 7ba4ea75..7633d8ed 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -88,11 +88,11 @@ if HAVE_SOME_FALLOCATE aria2c_SOURCES += FallocFileAllocationIteratorTest.cc endif # HAVE_SOME_FALLOCATE -if HAVE_LIBZ +if HAVE_ZLIB aria2c_SOURCES += GZipDecoderTest.cc\ GZipEncoderTest.cc\ GZipDecodingStreamFilterTest.cc -endif # HAVE_LIBZ +endif # HAVE_ZLIB if HAVE_SQLITE3 aria2c_SOURCES += Sqlite3CookieParserTest.cc |
