Merge branch 'develop' of https://github.com/pocoproject/poco into develop

This commit is contained in:
Guenter Obiltschnig 2013-06-25 13:54:46 +02:00
commit affb7ce5a4
3 changed files with 8 additions and 3 deletions

View File

@ -113,6 +113,7 @@ void HTTPCookieTest::testUnescape()
assert (unescaped == "\n\t@,;\"'");
}
void HTTPCookieTest::testExpiryFuture()
{
DateTime future;
@ -128,6 +129,7 @@ void HTTPCookieTest::testExpiryFuture()
testCookieExpiry(future);
}
void HTTPCookieTest::testExpiryPast()
{
DateTime past;
@ -143,7 +145,9 @@ void HTTPCookieTest::testExpiryPast()
testCookieExpiry(past);
}
void HTTPCookieTest::testCookieExpiry(DateTime expiryTime){
void HTTPCookieTest::testCookieExpiry(DateTime expiryTime)
{
NameValueCollection nvc;
nvc.add("name", "value");
std::string expiryString = DateTimeFormatter::format(expiryTime.timestamp(),DateTimeFormat::HTTP_FORMAT);
@ -181,7 +185,7 @@ void HTTPCookieTest::testCookieExpiry(DateTime expiryTime){
//assert that the cookie's max age is the number of seconds between
//the creation of the cookie and the expiry time passed to its
//constuctor, within a delta of the lifetime of the cookie
assert (abs(cookieMaxAge - expectedMaxAge) <= delta.seconds());
assert (cookieMaxAge - expectedMaxAge <= delta.seconds());
}

View File

@ -1 +1 @@
1.5.1
1.5.2

View File

@ -4,6 +4,7 @@ Data
Data/SQLite
Data/ODBC
Data/MySQL
MongoDB
Zip
PageCompiler
PageCompiler/File2Page