From 8b27671e58d6c071fb231d4ad8ddecb28255f86e Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Mon, 29 Oct 2007 12:43:45 +0000 Subject: 2007-10-29 Tatsuhiro Tsujikawa Use File::renameTo() * src/DefaultBtProgressInfoFile.cc Added --no-file-allocation-limit command-line option. * src/version_usage.cc * src/option_processing.cc * src/OptionHandlerFactory.cc * src/RequestGroup.{h, cc} * src/BtCheckIntegrityEntry.cc * src/StreamCheckIntegrityEntry.cc * src/prefs.h * doc/aria2c.1.txt * doc/aria2c.1 Now prealloc is the default value for --file-allocation option. * src/version_usage.cc * src/option_processing.cc * doc/aria2c.1.txt * doc/aria2c.1 Don't URL-encode user-agent. * src/HttpRequest.cc Updated translations * po/LINGUAS: Added nl for Dutch translation. * po/nl.po: Added Dutch translation, thanks to A. Bram Neijt. * po/de.po: Updated German translation, thanks to Patrick Ruckstuhl. * po/POTFILES.in: Updated. --- test/HttpRequestTest.cc | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) (limited to 'test/HttpRequestTest.cc') diff --git a/test/HttpRequestTest.cc b/test/HttpRequestTest.cc index 2388aace..836b7dd9 100644 --- a/test/HttpRequestTest.cc +++ b/test/HttpRequestTest.cc @@ -17,6 +17,7 @@ class HttpRequestTest : public CppUnit::TestFixture { CPPUNIT_TEST(testCreateRequest_with_cookie); CPPUNIT_TEST(testCreateProxyRequest); CPPUNIT_TEST(testIsRangeSatisfied); + CPPUNIT_TEST(testUserAgent); CPPUNIT_TEST_SUITE_END(); private: @@ -30,6 +31,7 @@ public: void testCreateRequest_with_cookie(); void testCreateProxyRequest(); void testIsRangeSatisfied(); + void testUserAgent(); }; @@ -500,3 +502,40 @@ void HttpRequestTest::testIsRangeSatisfied() CPPUNIT_ASSERT(!httpRequest.isRangeSatisfied(range)); } + +void HttpRequestTest::testUserAgent() +{ + SharedHandle