proxygen
|
#include <HTTPParallelCodecTest.h>
Public Member Functions | |
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) |
![]() | |
virtual | ~Test () |
virtual | ~Test () |
virtual | ~Test () |
Protected Attributes | |
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 | |
![]() | |
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 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) |
![]() | |
Test () | |
virtual void | TearDown () |
Test () | |
virtual void | TearDown () |
Test () | |
virtual void | TearDown () |
Definition at line 16 of file HTTPParallelCodecTest.h.
|
inline |
Definition at line 18 of file HTTPParallelCodecTest.h.
|
inline |
Definition at line 68 of file HTTPParallelCodecTest.h.
References dump_, proxygen::dumpBinToFile(), folly::IOBufQueue::front(), testing::TestInfo::name(), output_, and testInfo_.
Referenced by parseImpl().
|
inline |
Definition at line 37 of file HTTPParallelCodecTest.h.
References downstreamCodec_, and parseImpl().
|
inline |
Definition at line 51 of file HTTPParallelCodecTest.h.
References dumpToFile(), proxygen::HTTPParallelCodec::getTransportDirection(), folly::IOBufQueue::move(), proxygen::HTTPCodec::onIngress(), output_, and proxygen::UPSTREAM.
Referenced by parse(), and parseUpstream().
|
inline |
Definition at line 42 of file HTTPParallelCodecTest.h.
References parseImpl(), and upstreamCodec_.
|
inlineoverridevirtual |
Reimplemented from testing::Test.
Definition at line 23 of file HTTPParallelCodecTest.h.
References callbacks_, downstreamCodec_, proxygen::HTTPCodec::generateConnectionPreface(), output_, proxygen::HTTPParallelCodec::setCallback(), and upstreamCodec_.
Referenced by HTTP2CodecTest::SetUp().
|
inline |
Definition at line 31 of file HTTPParallelCodecTest.h.
References downstreamCodec_, proxygen::HTTPCodec::generateConnectionPreface(), proxygen::HTTPCodec::generateSettings(), folly::IOBufQueue::move(), and output_.
|
protected |
Definition at line 79 of file HTTPParallelCodecTest.h.
Referenced by SetUp().
|
protected |
Definition at line 81 of file HTTPParallelCodecTest.h.
Referenced by parse(), SetUp(), and SetUpUpstreamTest().
|
protected |
Definition at line 85 of file HTTPParallelCodecTest.h.
Referenced by dumpToFile().
|
protected |
Definition at line 82 of file HTTPParallelCodecTest.h.
Referenced by dumpToFile(), parseImpl(), SetUp(), and SetUpUpstreamTest().
|
protected |
Definition at line 84 of file HTTPParallelCodecTest.h.
Referenced by dumpToFile().
|
protected |
Definition at line 80 of file HTTPParallelCodecTest.h.
Referenced by parseUpstream(), and SetUp().