|
| HTTP2FramerTest () |
|
template<typename ParseFunc , typename... Args> |
void | parse (ParseFunc &&parseFn, FrameHeader &outHeader, Args &&...outArgs) |
|
template<typename ParseFunc , typename... Args> |
void | parse (const IOBuf *data, ParseFunc &&parseFn, FrameHeader &outHeader, Args &&...outArgs) |
|
void | dataFrameTest (uint32_t dataLen, folly::Optional< uint8_t > padLen) |
|
void | dataFrameTest (IOBuf *body, uint32_t dataLen, folly::Optional< uint8_t > padLen) |
|
virtual | ~Test () |
|
virtual | ~Test () |
|
virtual | ~Test () |
|
Definition at line 36 of file HTTP2FramerTest.cpp.
HTTP2FramerTest::HTTP2FramerTest |
( |
| ) |
|
|
inline |
Definition at line 55 of file HTTP2FramerTest.cpp.
References makeBuf().
std::unique_ptr< folly::IOBuf > makeBuf(uint32_t size)
void dataFrameTest(uint32_t dataLen, folly::Optional< uint8_t > padLen)
Definition at line 60 of file HTTP2FramerTest.cpp.
References folly::IOBuf::clone(), EXPECT_DEATH_NO_CORE, EXPECT_EQ, proxygen::http2::kMaxFramePayloadLength, folly::IOBuf::moveToFbString(), parse(), proxygen::http2::parseData(), uint16_t, uint32_t, and proxygen::http2::writeData().
64 frameLen += 1 + *padLen;
73 std::unique_ptr<IOBuf> outBuf;
78 EXPECT_EQ(padding, padLen ? (*padLen + 1) : 0);
#define EXPECT_DEATH_NO_CORE(token, regex)
#define EXPECT_EQ(val1, val2)
fbstring moveToFbString()
const uint32_t kMaxFramePayloadLength
std::unique_ptr< folly::IOBuf > move()
std::unique_ptr< IOBuf > clone() const
void parse(ParseFunc &&parseFn, FrameHeader &outHeader, Args &&...outArgs)
ErrorCode parseData(Cursor &cursor, const FrameHeader &header, std::unique_ptr< IOBuf > &outBuf, uint16_t &outPadding) noexcept
size_t writeData(IOBufQueue &queue, std::unique_ptr< IOBuf > data, uint32_t stream, folly::Optional< uint8_t > padding, bool endStream, bool reuseIOBufHeadroom) noexcept
template<typename ParseFunc , typename... Args>
void HTTP2FramerTest::parse |
( |
ParseFunc && |
parseFn, |
|
|
FrameHeader & |
outHeader, |
|
|
Args &&... |
outArgs |
|
) |
| |
|
inline |
template<typename ParseFunc , typename... Args>
void HTTP2FramerTest::parse |
( |
const IOBuf * |
data, |
|
|
ParseFunc && |
parseFn, |
|
|
FrameHeader & |
outHeader, |
|
|
Args &&... |
outArgs |
|
) |
| |
|
inline |
IOBufQueue HTTP2FramerTest::queue_ {IOBufQueue::cacheChainLength()} |
The documentation for this class was generated from the following file: