2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>

Fixed unit test fails on 32bit platforms.
	* test/CookieParserTest.cc
pull/1/head
Tatsuhiro Tsujikawa 2008-11-10 16:18:39 +00:00
parent bdff264d2c
commit ebf4fc62fa
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed unit test fails on 32bit platforms.
* test/CookieParserTest.cc
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Show an average download speed in Download results.

View File

@ -52,11 +52,11 @@ void CookieParserTest::testParse()
c = CookieParser().parse(str3);
CPPUNIT_ASSERT(!c.good());
std::string str4 = "UID=300; expires=Wed, 01-Jan-1890 00:00:00 GMT";
std::string str4 = "UID=300; expires=Wed, 01-Jan-1960 00:00:00 GMT";
c = CookieParser().parse(str4, "localhost", "/");
CPPUNIT_ASSERT(c.good());
CPPUNIT_ASSERT(!c.isSessionCookie());
CPPUNIT_ASSERT_EQUAL((time_t)-2524521600, c.getExpiry());
CPPUNIT_ASSERT_EQUAL((time_t)-315619200, c.getExpiry());
std::string str5 = "k=v; expires=Sun, 10-Jun-07 11:00:00 GMT";
c = CookieParser().parse(str5);