]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/testHttp1Parser.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / tests / testHttp1Parser.h
index 041f6ce66bf023dbd63b02e3606482d07a46d44d..c7b67b4ea00b8546f05feefe746cc736a96cd52b 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * Copyright (C) 1996-2015 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.
@@ -9,22 +9,19 @@
 #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:
@@ -32,7 +29,6 @@ protected:
 
     void testParserConstruct(); // whether the constructor works
 
-#if __cplusplus >= 201103L
     // request-line unit tests
     void testParseRequestLineTerminators(); // terminator detection correct
     void testParseRequestLineMethods();     // methoid detection correct
@@ -41,7 +37,6 @@ protected:
     void testParseRequestLineInvalid();     // rejection of invalid lines happens
 
     void testDripFeed(); // test incremental parse works
-#endif
 };
 
 #endif