proxygen
|
Public Member Functions | |
HTTP2CodecTest () | |
void | SetUp () override |
void | testHeaderListSize (bool oversized) |
void | testFrameSizeLimit (bool oversized) |
Public Member Functions inherited from HTTPParallelCodecTest | |
HTTPParallelCodecTest (proxygen::HTTPParallelCodec &upstreamCodec, proxygen::HTTPParallelCodec &downstreamCodec) | |
void | SetUp () override |
void | SetUpUpstreamTest () |
bool | parse (std::function< void(folly::IOBuf *)> hackIngress=std::function< void(folly::IOBuf *)>()) |
bool | parseUpstream (std::function< void(folly::IOBuf *)> hackIngress=std::function< void(folly::IOBuf *)>()) |
bool | parseImpl (proxygen::HTTPParallelCodec &codec, std::function< void(folly::IOBuf *)> hackIngress) |
void | dumpToFile (bool isUpstream=false) |
Public Member Functions inherited from testing::Test | |
virtual | ~Test () |
virtual | ~Test () |
virtual | ~Test () |
Protected Attributes | |
HTTP2Codec | upstreamCodec_ {TransportDirection::UPSTREAM} |
HTTP2Codec | downstreamCodec_ {TransportDirection::DOWNSTREAM} |
Protected Attributes inherited from HTTPParallelCodecTest | |
proxygen::FakeHTTPCodecCallback | callbacks_ |
proxygen::HTTPParallelCodec & | upstreamCodec_ |
proxygen::HTTPParallelCodec & | downstreamCodec_ |
folly::IOBufQueue | output_ {folly::IOBufQueue::cacheChainLength()} |
const testing::TestInfo * | testInfo_ {testing::UnitTest::GetInstance()->current_test_info()} |
bool | dump_ {false} |
Additional Inherited Members | |
Public Types inherited from testing::Test | |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
typedef internal::SetUpTestCaseFunc | SetUpTestCaseFunc |
typedef internal::TearDownTestCaseFunc | TearDownTestCaseFunc |
Static Public Member Functions inherited from testing::Test | |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
static void | SetUpTestCase () |
static void | TearDownTestCase () |
static bool | HasFatalFailure () |
static bool | HasNonfatalFailure () |
static bool | HasFailure () |
static void | RecordProperty (const std::string &key, const std::string &value) |
static void | RecordProperty (const std::string &key, int value) |
Protected Member Functions inherited from testing::Test | |
Test () | |
virtual void | TearDown () |
Test () | |
virtual void | TearDown () |
Test () | |
virtual void | TearDown () |
Definition at line 48 of file HTTP2CodecTest.cpp.
|
inline |
Definition at line 51 of file HTTP2CodecTest.cpp.
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 54 of file HTTP2CodecTest.cpp.
References HTTPParallelCodecTest::SetUp().
void HTTP2CodecTest::testFrameSizeLimit | ( | bool | oversized | ) |
Definition at line 513 of file HTTP2CodecTest.cpp.
References EXPECT_EQ, proxygen::getBigGetRequest(), proxygen::http2::kMaxFramePayloadLengthMin, proxygen::MAX_FRAME_SIZE, proxygen::parse(), and settings.
void HTTP2CodecTest::testHeaderListSize | ( | bool | oversized | ) |
Definition at line 492 of file HTTP2CodecTest.cpp.
References proxygen::HTTPHeaders::add(), EXPECT_EQ, proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), proxygen::HTTP_HEADER_USER_AGENT, proxygen::MAX_HEADER_LIST_SIZE, proxygen::parse(), and settings.
|
protected |
Definition at line 62 of file HTTP2CodecTest.cpp.
|
protected |
Definition at line 61 of file HTTP2CodecTest.cpp.