mirror of https://github.com/aria2/aria2
2008-11-11 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed unit test fails on 32bit platforms. * test/CookieParserTest.ccpull/1/head
parent
bdff264d2c
commit
ebf4fc62fa
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue