proxygen
TestContext Class Reference
Inheritance diagram for TestContext:
proxygen::HPACKContext

Public Member Functions

 TestContext (uint32_t tableSize)
 
void add (const HPACKHeader &header)
 
- Public Member Functions inherited from proxygen::HPACKContext
 HPACKContext (uint32_t tableSize)
 
 ~HPACKContext ()
 
uint32_t getIndex (const HPACKHeader &header) const
 
uint32_t nameIndex (const HPACKHeaderName &headerName) const
 
bool isStatic (uint32_t index) const
 
const HPACKHeadergetHeader (uint32_t index)
 
const HeaderTablegetTable () const
 
uint32_t getTableSize () const
 
uint32_t getBytesStored () const
 
uint32_t getHeadersStored () const
 
void seedHeaderTable (std::vector< HPACKHeader > &headers)
 
void describe (std::ostream &os) const
 

Additional Inherited Members

- Protected Member Functions inherited from proxygen::HPACKContext
const StaticHeaderTablegetStaticTable () const
 
uint32_t globalToDynamicIndex (uint32_t index) const
 
uint32_t globalToStaticIndex (uint32_t index) const
 
uint32_t dynamicToGlobalIndex (uint32_t index) const
 
uint32_t staticToGlobalIndex (uint32_t index) const
 
- Protected Attributes inherited from proxygen::HPACKContext
HeaderTable table_
 

Detailed Description

Definition at line 30 of file HPACKContextTests.cpp.

Constructor & Destructor Documentation

TestContext::TestContext ( uint32_t  tableSize)
inlineexplicit

Definition at line 33 of file HPACKContextTests.cpp.

33 : HPACKContext(tableSize) {}
HPACKContext(uint32_t tableSize)

Member Function Documentation

void TestContext::add ( const HPACKHeader header)
inline

Definition at line 35 of file HPACKContextTests.cpp.

References proxygen::HPACKHeader::copy().

Referenced by TEST_F().

35  {
36  table_.add(header.copy());
37  }
HPACKHeader copy() const
Definition: HPACKHeader.h:71
virtual bool add(HPACKHeader header)
Definition: HeaderTable.cpp:33

The documentation for this class was generated from the following file: