testHttp1Parser.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 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_TESTS_TESTHTTP1PARSER_H
10#define SQUID_SRC_TESTS_TESTHTTP1PARSER_H
11
12#include "compat/cppunit.h"
13
14class testHttp1Parser : public CPPUNIT_NS::TestFixture
15{
17 // object basics are working, just in case.
26
27protected:
28 void globalSetup(); // MemPools init etc.
29
30 void testParserConstruct(); // whether the constructor works
31
32 // request-line unit tests
33 void testParseRequestLineTerminators(); // terminator detection correct
34 void testParseRequestLineMethods(); // methoid detection correct
35 void testParseRequestLineProtocols(); // protocol tokens handled correctly
36 void testParseRequestLineStrange(); // strange but valid lines accepted
37 void testParseRequestLineInvalid(); // rejection of invalid lines happens
38
39 void testDripFeed(); // test incremental parse works
40};
41
42#endif
43
void testParseRequestLineStrange()
CPPUNIT_TEST_SUITE(testHttp1Parser)
CPPUNIT_TEST(testParseRequestLineProtocols)
void testParseRequestLineTerminators()
void testParseRequestLineInvalid()
CPPUNIT_TEST(testParserConstruct)
CPPUNIT_TEST(testParseRequestLineTerminators)
void testParseRequestLineProtocols()
void testParseRequestLineMethods()
CPPUNIT_TEST(testParseRequestLineMethods)
CPPUNIT_TEST(testDripFeed)
CPPUNIT_TEST(testParseRequestLineStrange)
CPPUNIT_TEST(testParseRequestLineInvalid)

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors