|
proxygen
|
#include <folly/io/Cursor.h>#include <folly/io/IOBuf.h>#include <folly/portability/GTest.h>#include <memory>#include <proxygen/lib/http/codec/compress/HPACKDecodeBuffer.h>#include <proxygen/lib/http/codec/compress/HPACKEncodeBuffer.h>Go to the source code of this file.
Classes | |
| class | HPACKBufferTests |
Functions | |
| TEST_F (HPACKBufferTests, EncodeInteger) | |
| TEST_F (HPACKBufferTests, EncodePlainLiteral) | |
| TEST_F (HPACKBufferTests, EncodePlainLiteralN) | |
| TEST_F (HPACKBufferTests, EncodeHuffmanLiteral) | |
| TEST_F (HPACKBufferTests, EncodeHuffmanLiteralN) | |
| TEST_F (HPACKBufferTests, DecodeSingleByte) | |
| TEST_F (HPACKBufferTests, DecodeMultiByte) | |
| TEST_F (HPACKBufferTests, DecodeIntegerError) | |
| TEST_F (HPACKBufferTests, DecodeLiteralError) | |
| TEST_F (HPACKBufferTests, DecodeLiteralMultiBuffer) | |
| TEST_F (HPACKBufferTests, DecodeHuffmanLiteralMultiBuffer) | |
| TEST_F (HPACKBufferTests, DecodeHuffmanLiteralN) | |
| TEST_F (HPACKBufferTests, DecodePlainLiteral) | |
| TEST_F (HPACKBufferTests, DecodePlainLiteralN) | |
| TEST_F (HPACKBufferTests, IntegerEncodeDecode) | |
| TEST_F (HPACKBufferTests, IntegerOverflow) | |
| TEST_F (HPACKBufferTests, IntegerMax) | |
| TEST_F (HPACKBufferTests, EmptyIobufLiteral) | |
| TEST_F (HPACKBufferTests, LargeLiteralError) | |
| TEST_F | ( | HPACKBufferTests | , |
| EncodeInteger | |||
| ) |
| TEST_F | ( | HPACKBufferTests | , |
| EncodePlainLiteral | |||
| ) |
| TEST_F | ( | HPACKBufferTests | , |
| EncodePlainLiteralN | |||
| ) |
| TEST_F | ( | HPACKBufferTests | , |
| EncodeHuffmanLiteral | |||
| ) |
Definition at line 120 of file HPACKBufferTests.cpp.
References folly::netops::accept(), data_, proxygen::HPACKEncodeBuffer::encodeLiteral(), EXPECT_EQ, folly::size(), and uint32_t.
| TEST_F | ( | HPACKBufferTests | , |
| EncodeHuffmanLiteralN | |||
| ) |
Definition at line 131 of file HPACKBufferTests.cpp.
References folly::netops::accept(), data_, proxygen::HPACKEncodeBuffer::encodeLiteral(), EXPECT_EQ, folly::size(), and uint32_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodeSingleByte | |||
| ) |
Definition at line 142 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), folly::NONE, uint64_t, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodeMultiByte | |||
| ) |
Definition at line 170 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), folly::NONE, uint64_t, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodeIntegerError | |||
| ) |
Definition at line 208 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), uint64_t, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodeLiteralError | |||
| ) |
Definition at line 224 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), EXPECT_EQ, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodeLiteralMultiBuffer | |||
| ) |
Definition at line 244 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), EXPECT_EQ, i, folly::gen::move, folly::NONE, folly::size(), and uint32_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodeHuffmanLiteralMultiBuffer | |||
| ) |
Definition at line 274 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), EXPECT_EQ, i, folly::gen::move, folly::NONE, folly::size(), and uint32_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodeHuffmanLiteralN | |||
| ) |
Definition at line 311 of file HPACKBufferTests.cpp.
References EXPECT_EQ, folly::NONE, folly::size(), and uint32_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodePlainLiteral | |||
| ) |
Definition at line 330 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), string, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| DecodePlainLiteralN | |||
| ) |
Definition at line 346 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), string, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| IntegerEncodeDecode | |||
| ) |
Definition at line 361 of file HPACKBufferTests.cpp.
References proxygen::HPACKEncodeBuffer::encodeInteger(), EXPECT_EQ, folly::NONE, uint32_t, uint64_t, and folly::value().
| TEST_F | ( | HPACKBufferTests | , |
| IntegerOverflow | |||
| ) |
really large integers
Definition at line 387 of file HPACKBufferTests.cpp.
References folly::IOBuf::create(), EXPECT_EQ, uint64_t, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| IntegerMax | |||
| ) |
test that we're able to decode the max integer
Definition at line 429 of file HPACKBufferTests.cpp.
References EXPECT_EQ, max, folly::NONE, uint64_t, and uint8_t.
| TEST_F | ( | HPACKBufferTests | , |
| EmptyIobufLiteral | |||
| ) |
making sure we're calling peek() before deferencing the first byte to figure out if it's a huffman encoding or not
Definition at line 447 of file HPACKBufferTests.cpp.
References folly::IOBuf::appendChain(), folly::IOBuf::create(), proxygen::HPACKEncodeBuffer::encodeLiteral(), EXPECT_EQ, folly::gen::first, folly::IOBuf::length(), folly::IOBuf::next(), proxygen::HPACKEncodeBuffer::release(), folly::size(), uint32_t, and folly::IOBuf::writableData().
| TEST_F | ( | HPACKBufferTests | , |
| LargeLiteralError | |||
| ) |
the that we enforce a limit on the literal size
Definition at line 470 of file HPACKBufferTests.cpp.
References EXPECT_EQ, EXPECT_TRUE, folly::basic_fbstring< E, T, A, Storage >::size(), and uint32_t.