]> git.ipfire.org Git - thirdparty/squid.git/blob - src/tests/testRFC1035.h
Source Format Enforcement (#532)
[thirdparty/squid.git] / src / tests / testRFC1035.h
1 /*
2 * Copyright (C) 1996-2020 The Squid Software Foundation and contributors
3 *
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
7 */
8
9 #ifndef SQUID_SRC_TEST_RFC1035_H
10 #define SQUID_SRC_TEST_RFC1035_H
11
12 #include <cppunit/extensions/HelperMacros.h>
13
14 /*
15 * test the DNS resolver RFC 1035 Engine
16 */
17
18 class testRFC1035 : public CPPUNIT_NS::TestFixture
19 {
20 CPPUNIT_TEST_SUITE( testRFC1035 );
21 CPPUNIT_TEST( testHeaderUnpack );
22 CPPUNIT_TEST( testParseAPacket );
23
24 CPPUNIT_TEST( testBugPacketHeadersOnly );
25 CPPUNIT_TEST( testBugPacketEndingOnCompressionPtr );
26 CPPUNIT_TEST_SUITE_END();
27
28 public:
29
30 protected:
31 void testHeaderUnpack();
32 void testParseAPacket();
33
34 // bugs.
35 void testBugPacketEndingOnCompressionPtr();
36 void testBugPacketHeadersOnly();
37 };
38
39 #endif /* SQUID_SRC_TEST_IPADDRESS_H */
40