]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/tests/testString.h
Source Format Enforcement (#1234)
[thirdparty/squid.git] / src / tests / testString.h
index d4ff1d051fb6019ea341e5bb7b11b617bda7d603..66f0d3d4ae3a50312db330af73da83c1f984325a 100644 (file)
@@ -1,8 +1,15 @@
+/*
+ * 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.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
 
 #ifndef SQUID_SRC_TEST_STRING_H
 #define SQUID_SRC_TEST_STRING_H
 
-#include <cppunit/extensions/HelperMacros.h>
+#include "compat/cppunit.h"
 
 /*
  * test the store framework
 class testString : public CPPUNIT_NS::TestFixture
 {
     CPPUNIT_TEST_SUITE( testString );
-    CPPUNIT_TEST( testDefaults );
-        /* boolean helper tests */
     CPPUNIT_TEST( testCmpDefault );
     CPPUNIT_TEST( testCmpEmptyString );
     CPPUNIT_TEST( testCmpNotEmptyDefault );
+    CPPUNIT_TEST( testSubstr );
 
-    CPPUNIT_TEST( testBooleans );
-    CPPUNIT_TEST( testAppend );
-    CPPUNIT_TEST( testAssignments );
-    CPPUNIT_TEST( testAccess );
-    CPPUNIT_TEST( testCstrMethods );
-    CPPUNIT_TEST( testSearch );
     CPPUNIT_TEST_SUITE_END();
 
 public:
-    void setUp();
+    void setUp() override;
 
 protected:
-
-    /* std::string API */
-    void testDefaults();
     void testCmpDefault();
     void testCmpEmptyString();
     void testCmpNotEmptyDefault();
-    void testBooleans();
-    void testAppend();
-    void testAssignments();
-    void testAccess();
-    void testCstrMethods();
-    void testSearch();
+    void testSubstr();
 };
 
 #endif
+