mirror of
https://github.com/pocoproject/poco.git
synced 2025-02-01 14:55:56 +01:00
45 lines
762 B
C++
45 lines
762 B
C++
//
|
|
// HTTPCookieTest.h
|
|
//
|
|
// Definition of the HTTPCookieTest class.
|
|
//
|
|
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef HTTPCookieTest_INCLUDED
|
|
#define HTTPCookieTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Net/Net.h"
|
|
#include "Poco/DateTime.h"
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class HTTPCookieTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
HTTPCookieTest(const std::string& name);
|
|
~HTTPCookieTest();
|
|
|
|
void testCookie();
|
|
void testEscape();
|
|
void testUnescape();
|
|
void testExpiryFuture();
|
|
void testExpiryPast();
|
|
void testCookieExpiry(Poco::DateTime expiryTime);
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // HTTPCookieTest_INCLUDED
|