mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-05-13 06:27:13 +02:00
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
52 lines
961 B
C++
52 lines
961 B
C++
//
|
|
// HTTPServerTest.h
|
|
//
|
|
// Definition of the HTTPServerTest class.
|
|
//
|
|
// Copyright (c) 2005-2006, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#ifndef HTTPServerTest_INCLUDED
|
|
#define HTTPServerTest_INCLUDED
|
|
|
|
|
|
#include "Poco/Net/Net.h"
|
|
#include "CppUnit/TestCase.h"
|
|
|
|
|
|
class HTTPServerTest: public CppUnit::TestCase
|
|
{
|
|
public:
|
|
HTTPServerTest(const std::string& name);
|
|
~HTTPServerTest();
|
|
|
|
void testIdentityRequest();
|
|
void testPutIdentityRequest();
|
|
void testChunkedRequest();
|
|
void testClosedRequest();
|
|
void testIdentityRequestKeepAlive();
|
|
void testChunkedRequestKeepAlive();
|
|
void testClosedRequestKeepAlive();
|
|
void testMaxKeepAlive();
|
|
void testKeepAliveTimeout();
|
|
void test100Continue();
|
|
void testRedirect();
|
|
void testAuth();
|
|
void testNotImpl();
|
|
void testBuffer();
|
|
|
|
void setUp();
|
|
void tearDown();
|
|
|
|
static CppUnit::Test* suite();
|
|
|
|
private:
|
|
};
|
|
|
|
|
|
#endif // HTTPServerTest_INCLUDED
|