/*
- * Copyright (C) 1996-2016 The Squid Software Foundation and contributors
+ * Copyright (C) 1996-2023 The Squid Software Foundation and contributors
*
* Squid software is distributed under GPLv2+ license and includes
* contributions from numerous individuals and organizations.
#ifndef SQUID_SRC_TESTS_TESTHTTP1PARSER_H
#define SQUID_SRC_TESTS_TESTHTTP1PARSER_H
-#include <cppunit/extensions/HelperMacros.h>
+#include "compat/cppunit.h"
class testHttp1Parser : public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE( testHttp1Parser );
// object basics are working, just in case.
CPPUNIT_TEST( testParserConstruct );
-
-#if __cplusplus >= 201103L
CPPUNIT_TEST( testDripFeed );
CPPUNIT_TEST( testParseRequestLineMethods );
CPPUNIT_TEST( testParseRequestLineProtocols );
CPPUNIT_TEST( testParseRequestLineTerminators );
CPPUNIT_TEST( testParseRequestLineStrange );
CPPUNIT_TEST( testParseRequestLineInvalid );
-#endif
CPPUNIT_TEST_SUITE_END();
protected:
void testParserConstruct(); // whether the constructor works
-#if __cplusplus >= 201103L
// request-line unit tests
void testParseRequestLineTerminators(); // terminator detection correct
void testParseRequestLineMethods(); // methoid detection correct
void testParseRequestLineInvalid(); // rejection of invalid lines happens
void testDripFeed(); // test incremental parse works
-#endif
};
#endif