test_http_range.cc File Reference
#include "squid.h"
#include "fatal.h"
#include "HttpHeader.h"
#include "HttpHeaderRange.h"
Include dependency graph for test_http_range.cc:

Go to the source code of this file.

Functions

void httpHeaderPutStr (HttpHeader *hdr, Http::HdrType type, const char *str)
 
HttpHeaderEntryhttpHeaderGetEntry (const HttpHeader *hdr, HttpHeaderPos *pos)
 
String httpHeaderGetList (const HttpHeader *hdr, Http::HdrType id)
 
int httpHeaderHas (const HttpHeader *hdr, Http::HdrType type)
 
void httpHeaderPutContRange (HttpHeader *hdr, const HttpHdrContRange *cr)
 
void testRangeParser (char const *rangestring)
 
HttpHdrRangerangeFromString (char const *rangestring)
 
void testRangeIter ()
 
void testRangeCanonization ()
 
int main (int argc, char **argv)
 

Function Documentation

◆ httpHeaderGetEntry()

HttpHeaderEntry* httpHeaderGetEntry ( const HttpHeader hdr,
HttpHeaderPos pos 
)

Definition at line 23 of file test_http_range.cc.

References fatal(), and NULL.

◆ httpHeaderGetList()

String httpHeaderGetList ( const HttpHeader hdr,
Http::HdrType  id 
)

Definition at line 29 of file test_http_range.cc.

References fatal().

◆ httpHeaderHas()

int httpHeaderHas ( const HttpHeader hdr,
Http::HdrType  type 
)

Definition at line 35 of file test_http_range.cc.

References fatal().

◆ httpHeaderPutContRange()

void httpHeaderPutContRange ( HttpHeader hdr,
const HttpHdrContRange cr 
)

Definition at line 41 of file test_http_range.cc.

References fatal().

◆ httpHeaderPutStr()

void httpHeaderPutStr ( HttpHeader hdr,
Http::HdrType  type,
const char *  str 
)
Todo:
CLEANUP: This file should be called something_stub.cc

Definition at line 18 of file test_http_range.cc.

References fatal().

◆ main()

int main ( int  argc,
char **  argv 
)

◆ rangeFromString()

HttpHdrRange* rangeFromString ( char const *  rangestring)

Definition at line 67 of file test_http_range.cc.

References HttpHdrRange::ParseCreate().

Referenced by testRangeCanonization(), and testRangeIter().

◆ testRangeCanonization()

void testRangeCanonization ( )

Definition at line 100 of file test_http_range.cc.

References assert, HttpHdrRange::canonize(), rangeFromString(), and HttpHdrRange::specs.

Referenced by main().

◆ testRangeIter()

void testRangeIter ( )

Definition at line 79 of file test_http_range.cc.

References assert, HttpHdrRange::begin(), HttpHdrRange::end(), i, rangeFromString(), and HttpHdrRange::specs.

Referenced by main().

◆ testRangeParser()

void testRangeParser ( char const *  rangestring)

Definition at line 47 of file test_http_range.cc.

References assert, HttpHdrRange::begin(), HttpHdrRange::ParseCreate(), and HttpHdrRange::specs.

Referenced by main().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors