proxygen
|
Classes | |
class | TestHeaderCodecStats |
Functions | |
void | dumpToFile (const string &filename, const IOBuf *buf) |
void | verifyHeaders (vector< HPACKHeader > &headers, vector< HPACKHeader > &decodedHeaders) |
unique_ptr< IOBuf > | encodeDecode (vector< HPACKHeader > &headers, HPACKEncoder &encoder, HPACKDecoder &decoder) |
void | encodeDecode (vector< HPACKHeader > &headers, QPACKEncoder &encoder, QPACKDecoder &decoder) |
unique_ptr< HPACKDecoder::headers_t > | decode (HPACKDecoder &decoder, const IOBuf *buffer) |
vector< compress::Header > | headersFromArray (vector< vector< string >> &a) |
vector< compress::Header > | basicHeaders () |
std::vector< compress::Header > proxygen::hpack::basicHeaders | ( | ) |
Definition at line 116 of file TestUtil.cpp.
References headersFromArray().
Referenced by TEST_F(), and TEST_P().
std::unique_ptr< HPACKDecoder::headers_t > proxygen::hpack::decode | ( | HPACKDecoder & | decoder, |
const IOBuf * | buffer | ||
) |
Definition at line 95 of file TestUtil.cpp.
References proxygen::HPACKDecoder::decodeStreaming(), proxygen::TestStreamingCallback::hasError(), proxygen::TestStreamingCallback::hpackHeaders(), and uint32_t.
Referenced by checkError(), encodeDecode(), TEST_F(), and TEST_P().
Definition at line 27 of file TestUtil.cpp.
References folly::IOBuf::data(), folly::IOBuf::length(), and folly::IOBuf::next().
std::unique_ptr< folly::IOBuf > proxygen::hpack::encodeDecode | ( | vector< HPACKHeader > & | headers, |
HPACKEncoder & | encoder, | ||
HPACKDecoder & | decoder | ||
) |
Definition at line 55 of file TestUtil.cpp.
References decode(), proxygen::HPACKEncoder::encode(), EXPECT_EQ, proxygen::HPACKContext::getTable(), proxygen::HPACKDecoderBase::hasError(), and verifyHeaders().
void proxygen::hpack::encodeDecode | ( | vector< HPACKHeader > & | headers, |
QPACKEncoder & | encoder, | ||
QPACKDecoder & | decoder | ||
) |
Definition at line 72 of file TestUtil.cpp.
References proxygen::QPACKEncoder::decodeDecoderStream(), proxygen::QPACKDecoder::decodeEncoderStream(), proxygen::QPACKDecoder::decodeStreaming(), proxygen::QPACKEncoder::encode(), proxygen::QPACKDecoder::encodeHeaderAck(), proxygen::QPACKDecoder::encodeTableStateSync(), EXPECT_EQ, proxygen::QPACKContext::getTable(), proxygen::TestStreamingCallback::hasError(), proxygen::TestStreamingCallback::hpackHeaders(), folly::gen::move, and verifyHeaders().
std::vector< compress::Header > proxygen::hpack::headersFromArray | ( | vector< vector< string >> & | a | ) |
Definition at line 108 of file TestUtil.cpp.
References a, and proxygen::compress::Header::makeHeaderForTest().
Referenced by basicHeaders(), and TEST_F().
void proxygen::hpack::verifyHeaders | ( | vector< HPACKHeader > & | headers, |
vector< HPACKHeader > & | decodedHeaders | ||
) |
Definition at line 39 of file TestUtil.cpp.
References EXPECT_EQ, and proxygen::printDelta().
Referenced by encodeDecode().