57 hackIngress(ingress.get());
59 size_t parsed = codec.
onIngress(*ingress);
60 return (parsed == ingress->computeChainDataLength());
72 auto endpoint = isUpstream ?
"client" :
"server";
73 auto filename = folly::to<std::string>(
virtual size_t onIngress(const folly::IOBuf &buf)=0
void setCallback(Callback *callback) override
const folly::IOBuf * front() const
void dumpBinToFile(const string &filename, const IOBuf *buf)
proxygen::HTTPParallelCodec & downstreamCodec_
bool parseUpstream(std::function< void(folly::IOBuf *)> hackIngress=std::function< void(folly::IOBuf *)>())
std::unique_ptr< folly::IOBuf > move()
bool parse(std::function< void(folly::IOBuf *)> hackIngress=std::function< void(folly::IOBuf *)>())
const char * name() const
static Options cacheChainLength()
bool parseImpl(proxygen::HTTPParallelCodec &codec, std::function< void(folly::IOBuf *)> hackIngress)
proxygen::FakeHTTPCodecCallback callbacks_
void dumpToFile(bool isUpstream=false)
virtual size_t generateConnectionPreface(folly::IOBufQueue &)
const TestInfo * current_test_info() const GTEST_LOCK_EXCLUDED_(mutex_)
static UnitTest * GetInstance()
proxygen::HTTPParallelCodec & upstreamCodec_
virtual size_t generateSettings(folly::IOBufQueue &)
const testing::TestInfo * testInfo_
HTTPParallelCodecTest(proxygen::HTTPParallelCodec &upstreamCodec, proxygen::HTTPParallelCodec &downstreamCodec)
TransportDirection getTransportDirection() const override
folly::IOBufQueue output_