|
proxygen
|
#include <folly/Conv.h>#include <glog/logging.h>#include <folly/portability/GTest.h>#include <memory>#include <proxygen/lib/http/codec/compress/QPACKDecoder.h>#include <proxygen/lib/http/codec/compress/QPACKEncoder.h>#include <proxygen/lib/http/codec/compress/Logging.h>#include <proxygen/lib/http/codec/compress/test/TestStreamingCallback.h>Go to the source code of this file.
Functions | |
| TEST (QPACKContextTests, StaticOnly) | |
| TEST (QPACKContextTests, Indexed) | |
| TEST (QPACKContextTests, NameIndexed) | |
| TEST (QPACKContextTests, NameIndexedInsert) | |
| TEST (QPACKContextTests, PostBaseNameIndexedLiteral) | |
| TEST (QPACKContextTests, Unacknowledged) | |
| TEST (QPACKContextTests, TestDraining) | |
| TEST (QPACKContextTests, TestDuplicate) | |
| TEST (QPACKContextTests, TestTableSizeUpdate) | |
| TEST (QPACKContextTests, TestAcks) | |
| TEST (QPACKContextTests, TestImplicitAcks) | |
| TEST (QPACKContextTests, TestDecodeQueue) | |
| TEST (QPACKContextTests, TestDecodeQueueDelete) | |
| TEST (QPACKContextTests, TestDecodeMaxUncompressed) | |
| TEST (QPACKContextTests, TestDecoderStreamChunked) | |
| TEST (QPACKContextTests, TestDecodePartialControl) | |
| void | checkQError (QPACKDecoder &decoder, std::unique_ptr< IOBuf > buf, const HPACK::DecodeError err) |
| TEST (QPACKContextTests, DecodeErrors) | |
| TEST (QPACKContextTests, TestEvictedNameReference) | |
| void checkQError | ( | QPACKDecoder & | decoder, |
| std::unique_ptr< IOBuf > | buf, | ||
| const HPACK::DecodeError | err | ||
| ) |
Definition at line 417 of file QPACKContextTests.cpp.
References folly::IOBuf::computeChainDataLength(), proxygen::QPACKDecoder::decodeStreaming(), EXPECT_EQ, and folly::gen::move.
Referenced by TEST().
| TEST | ( | QPACKContextTests | , |
| StaticOnly | |||
| ) |
Definition at line 68 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), proxygen::QPACKDecoder::encodeTableStateSync(), EXPECT_EQ, folly::gen::move, and proxygen::QPACKEncoder::EncodeResult::stream.
| TEST | ( | QPACKContextTests | , |
| Indexed | |||
| ) |
Definition at line 82 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), and folly::gen::move.
| TEST | ( | QPACKContextTests | , |
| NameIndexed | |||
| ) |
Definition at line 95 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), and folly::gen::move.
| TEST | ( | QPACKContextTests | , |
| NameIndexedInsert | |||
| ) |
Definition at line 110 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::EncodeResult::control, proxygen::QPACKEncoder::encode(), EXPECT_FALSE, and folly::gen::move.
| TEST | ( | QPACKContextTests | , |
| PostBaseNameIndexedLiteral | |||
| ) |
Definition at line 126 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), EXPECT_EQ, i, folly::gen::move, proxygen::QPACKEncoder::setMaxVulnerable(), and proxygen::QPACKEncoder::EncodeResult::stream.
| TEST | ( | QPACKContextTests | , |
| Unacknowledged | |||
| ) |
Definition at line 147 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), EXPECT_GT, folly::gen::move, proxygen::QPACKEncoder::setMaxVulnerable(), and proxygen::QPACKEncoder::EncodeResult::stream.
| TEST | ( | QPACKContextTests | , |
| TestDraining | |||
| ) |
Definition at line 166 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), EXPECT_GT, EXPECT_TRUE, and proxygen::QPACKEncoder::EncodeResult::stream.
| TEST | ( | QPACKContextTests | , |
| TestDuplicate | |||
| ) |
Definition at line 182 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::EncodeResult::control, proxygen::QPACKEncoder::encode(), EXPECT_EQ, i, folly::gen::move, proxygen::QPACKEncoder::onTableStateSync(), and proxygen::QPACKEncoder::EncodeResult::stream.
| TEST | ( | QPACKContextTests | , |
| TestTableSizeUpdate | |||
| ) |
Definition at line 203 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), EXPECT_EQ, proxygen::QPACKContext::getHeadersStored(), folly::gen::move, proxygen::QPACKEncoder::onTableStateSync(), and proxygen::QPACKEncoder::setHeaderTableSize().
| TEST | ( | QPACKContextTests | , |
| TestAcks | |||
| ) |
Definition at line 228 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::EncodeResult::control, proxygen::QPACKEncoder::encode(), EXPECT_EQ, EXPECT_FALSE, EXPECT_GT, EXPECT_TRUE, folly::gen::move, proxygen::QPACKEncoder::onTableStateSync(), proxygen::QPACKEncoder::setMaxVulnerable(), and proxygen::QPACKEncoder::EncodeResult::stream.
| TEST | ( | QPACKContextTests | , |
| TestImplicitAcks | |||
| ) |
Definition at line 277 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), EXPECT_EQ, EXPECT_FALSE, folly::gen::move, proxygen::QPACKEncoder::onHeaderAck(), proxygen::QPACKEncoder::setMaxVulnerable(), and proxygen::QPACKEncoder::EncodeResult::stream.
| TEST | ( | QPACKContextTests | , |
| TestDecodeQueue | |||
| ) |
Definition at line 307 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), and folly::gen::move.
| TEST | ( | QPACKContextTests | , |
| TestDecodeQueueDelete | |||
| ) |
Definition at line 322 of file QPACKContextTests.cpp.
References proxygen::QPACKDecoder::decodeStreaming(), proxygen::QPACKEncoder::encode(), EXPECT_EQ, and folly::gen::move.
| TEST | ( | QPACKContextTests | , |
| TestDecodeMaxUncompressed | |||
| ) |
Definition at line 362 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::encode(), folly::gen::move, and proxygen::HPACKDecoderBase::setMaxUncompressed().
| TEST | ( | QPACKContextTests | , |
| TestDecoderStreamChunked | |||
| ) |
Definition at line 374 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::EncodeResult::control, proxygen::QPACKEncoder::decodeDecoderStream(), proxygen::QPACKDecoder::decodeEncoderStream(), proxygen::QPACKEncoder::encode(), proxygen::QPACKDecoder::encodeTableStateSync(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::QPACKContext::getTable(), i, proxygen::QPACKHeaderTable::isVulnerable(), and folly::gen::move.
| TEST | ( | QPACKContextTests | , |
| TestDecodePartialControl | |||
| ) |
Definition at line 398 of file QPACKContextTests.cpp.
References c, proxygen::QPACKEncoder::EncodeResult::control, proxygen::QPACKDecoder::decodeEncoderStream(), proxygen::QPACKEncoder::encode(), EXPECT_EQ, proxygen::QPACKContext::getHeader(), proxygen::QPACKContext::getHeadersStored(), and folly::gen::move.
| TEST | ( | QPACKContextTests | , |
| DecodeErrors | |||
| ) |
Definition at line 426 of file QPACKContextTests.cpp.
References folly::IOBuf::append(), checkQError(), folly::IOBuf::clone(), folly::IOBuf::create(), proxygen::QPACKEncoder::decodeDecoderStream(), proxygen::QPACKDecoder::decodeEncoderStream(), EXPECT_EQ, proxygen::QPACKDecoder::setMaxBlocking(), folly::IOBuf::trimEnd(), and folly::IOBuf::writableData().
| TEST | ( | QPACKContextTests | , |
| TestEvictedNameReference | |||
| ) |
Definition at line 534 of file QPACKContextTests.cpp.
References proxygen::QPACKEncoder::EncodeResult::control, proxygen::QPACKDecoder::decodeEncoderStream(), proxygen::QPACKDecoder::decodeStreaming(), proxygen::QPACKEncoder::encode(), EXPECT_FALSE, EXPECT_TRUE, proxygen::TestStreamingCallback::hasError(), folly::gen::move, proxygen::QPACKEncoder::onTableStateSync(), proxygen::QPACKEncoder::setMaxVulnerable(), and proxygen::QPACKEncoder::EncodeResult::stream.