#include "HttpRequest.h" #include #include #include "prefs.h" #include "AuthConfigFactory.h" #include "PiecedSegment.h" #include "Piece.h" #include "Range.h" #include "Request.h" #include "Option.h" #include "array_fun.h" #include "CookieStorage.h" #include "util.h" #include "AuthConfig.h" #include "TestUtil.h" namespace aria2 { class HttpRequestTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(HttpRequestTest); CPPUNIT_TEST(testGetStartByte); CPPUNIT_TEST(testGetEndByte); CPPUNIT_TEST(testCreateRequest); CPPUNIT_TEST(testCreateRequest_ftp); CPPUNIT_TEST(testCreateRequest_with_cookie); CPPUNIT_TEST(testCreateRequest_query); CPPUNIT_TEST(testCreateRequest_head); CPPUNIT_TEST(testCreateRequest_ipv6LiteralAddr); CPPUNIT_TEST(testCreateRequest_endOffsetOverride); CPPUNIT_TEST(testCreateProxyRequest); CPPUNIT_TEST(testIsRangeSatisfied); CPPUNIT_TEST(testUserAgent); CPPUNIT_TEST(testAddHeader); CPPUNIT_TEST(testAcceptMetalink); CPPUNIT_TEST(testEnableAcceptEncoding); CPPUNIT_TEST(testConditionalRequest); CPPUNIT_TEST_SUITE_END(); private: std::unique_ptr