• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • File List
  • Globals

HdrTest.h

Go to the documentation of this file.
00001 /** @file
00002 
00003   A brief file description
00004 
00005   @section license License
00006 
00007   Licensed to the Apache Software Foundation (ASF) under one
00008   or more contributor license agreements.  See the NOTICE file
00009   distributed with this work for additional information
00010   regarding copyright ownership.  The ASF licenses this file
00011   to you under the Apache License, Version 2.0 (the
00012   "License"); you may not use this file except in compliance
00013   with the License.  You may obtain a copy of the License at
00014 
00015       http://www.apache.org/licenses/LICENSE-2.0
00016 
00017   Unless required by applicable law or agreed to in writing, software
00018   distributed under the License is distributed on an "AS IS" BASIS,
00019   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00020   See the License for the specific language governing permissions and
00021   limitations under the License.
00022  */
00023 
00024 /****************************************************************************
00025 
00026    HdrTest.cc
00027 
00028    Description:
00029        Unit test code for sanity checking the header system is functioning
00030          properly
00031 
00032 
00033  ****************************************************************************/
00034 
00035 #ifndef _HdrTest_H_
00036 #define _HdrTest_H_
00037 
00038 #include "Regression.h"
00039 
00040 class HdrTest
00041 {
00042 public:
00043   RegressionTest * rtest;
00044 
00045   HdrTest():rtest(NULL)
00046   {
00047   };
00048   ~HdrTest() {
00049   };
00050 
00051   int go(RegressionTest * t, int atype);
00052 
00053 private:
00054   int test_error_page_selection();
00055   int test_http_hdr_print_and_copy();
00056   int test_parse_date();
00057   int test_format_date();
00058   int test_url();
00059   int test_http_parser_eos_boundary_cases();
00060   int test_arena();
00061   int test_regex();
00062   int test_accept_language_match();
00063   int test_accept_charset_match();
00064   int test_comma_vals();
00065   int test_set_comma_vals();
00066   int test_delete_comma_vals();
00067   int test_extend_comma_vals();
00068   int test_insert_comma_vals();
00069   int test_parse_comma_list();
00070   int test_mime();
00071   int test_http();
00072   int test_http_mutation();
00073 
00074   int test_http_hdr_print_and_copy_aux(int testnum, const char *req, const char *req_tgt, const char *rsp,
00075                                        const char *rsp_tgt);
00076   int test_http_hdr_copy_over_aux(int testnum, const char *request, const char *response);
00077   int test_http_aux(const char *request, const char *response);
00078   int test_arena_aux(Arena * arena, int len);
00079   void bri_box(const char *s);
00080   int failures_to_status(const char *testname, int nfail);
00081 };
00082 
00083 #endif

Generated by  doxygen 1.7.1