Defines | Functions

TestHttpHeader.cc File Reference

A brief file description. More...

#include "HttpHeaderTokenizer.h"
#include "ink_assert.h"
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <ctype.h>
#include <memory.h>
#include <assert.h>
#include <string.h>
#include <strings.h>
#include <unistd.h>
#include <stdarg.h>
#include <libgen.h>
#include <limits.h>
#include <fcntl.h>
#include <time.h>
#include <sys/param.h>
#include <sys/stat.h>
Include dependency graph for TestHttpHeader.cc:

Go to the source code of this file.

Defines

#define ADD_FIELD(s)   f.add(s, sizeof(s))

Functions

static void add_field (HttpHeader *h, const char *name, const char *value)
static void test_add_fields (HttpHeader *h)
static void test_hacked_http_header_field ()
void test_url_parse (const char *url_string)
void test_url ()
void test_header_tokenizer_run (const char *buf, HttpMessageType_t message_type)
void test_header_tokenizer ()
void TestHttpHeader ()

Detailed Description

A brief file description.

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Definition in file TestHttpHeader.cc.


Define Documentation

#define ADD_FIELD (   s  )     f.add(s, sizeof(s))

Function Documentation

static void add_field ( HttpHeader *  h,
const char *  name,
const char *  value 
) [static]

Definition at line 51 of file TestHttpHeader.cc.

Referenced by test_add_fields().

static void test_add_fields ( HttpHeader *  h  )  [static]

Definition at line 62 of file TestHttpHeader.cc.

References add_field().

Referenced by TestHttpHeader().

static void test_hacked_http_header_field (  )  [static]

Definition at line 84 of file TestHttpHeader.cc.

References ADD_FIELD.

void test_header_tokenizer (  ) 

Definition at line 162 of file TestHttpHeader.cc.

References test_header_tokenizer_run().

Referenced by TestHttpHeader().

void test_header_tokenizer_run ( const char *  buf,
HttpMessageType_t  message_type 
)

Definition at line 146 of file TestHttpHeader.cc.

Referenced by test_header_tokenizer().

void test_url (  ) 

Definition at line 130 of file TestHttpHeader.cc.

References test_url_parse().

Referenced by TestHttpHeader().

void test_url_parse ( const char *  url_string  ) 

Definition at line 112 of file TestHttpHeader.cc.

Referenced by test_url().

void TestHttpHeader (  ) 

Definition at line 177 of file TestHttpHeader.cc.

References test_add_fields(), test_header_tokenizer(), and test_url().