proxygen
|
#include <string>
#include <vector>
#include <folly/Conv.h>
#include <folly/Range.h>
#include <folly/futures/Promise.h>
#include <folly/io/Cursor.h>
#include <folly/io/async/EventBase.h>
#include <folly/io/async/EventBaseManager.h>
#include <folly/io/async/TimeoutManager.h>
#include <folly/io/async/test/MockAsyncTransport.h>
#include <folly/portability/GTest.h>
#include <proxygen/lib/http/codec/HTTPCodecFactory.h>
#include <proxygen/lib/http/codec/test/TestUtils.h>
#include <proxygen/lib/http/session/HTTPDirectResponseHandler.h>
#include <proxygen/lib/http/session/HTTPDownstreamSession.h>
#include <proxygen/lib/http/session/HTTPSession.h>
#include <proxygen/lib/http/session/test/HTTPSessionMocks.h>
#include <proxygen/lib/http/session/test/HTTPSessionTest.h>
#include <proxygen/lib/http/session/test/MockByteEventTracker.h>
#include <proxygen/lib/http/session/test/TestUtils.h>
#include <proxygen/lib/test/TestAsyncTransport.h>
#include <wangle/acceptor/ConnectionManager.h>
Go to the source code of this file.
Classes | |
class | HTTPDownstreamTest< C > |
class | HTTPDownstreamSessionUpgradeFlowControlTest |
class | SPDY31DownstreamTest |
Macros | |
#define | IF_HTTP2(X) if (this->clientCodec_->getProtocol() == CodecProtocol::HTTP_2) { X; } |
Typedefs | |
using | HTTPDownstreamSessionTest = HTTPDownstreamTest< HTTP1xCodecPair > |
using | SPDY3DownstreamSessionTest = HTTPDownstreamTest< SPDY3CodecPair > |
typedef ::testing::Types< SPDY3CodecPair, SPDY3_1CodecPair, HTTP2CodecPair > | ParallelCodecs |
Functions | |
TEST_F (HTTP2DownstreamSessionEarlyShutdownTest, EarlyShutdown) | |
TEST_F (HTTPDownstreamSessionTest, ImmediateEof) | |
TEST_F (HTTPDownstreamSessionTest, Http10NoHeaders) | |
TEST_F (HTTPDownstreamSessionTest, Http10NoHeadersEof) | |
TEST_F (HTTPDownstreamSessionTest, SingleBytes) | |
TEST_F (HTTPDownstreamSessionTest, SingleBytesWithBody) | |
TEST_F (HTTPDownstreamSessionTest, SplitBody) | |
TEST_F (HTTPDownstreamSessionTest, PostChunked) | |
TEST_F (HTTPDownstreamSessionTest, MultiMessage) | |
TEST_F (HTTPDownstreamSessionTest, Connect) | |
TEST_F (HTTPDownstreamSessionTest, ConnectRejected) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgrade) | |
TEST (HTTPDownstreamTest, ParseErrorNoTxn) | |
TEST (HTTPDownstreamTest, ByteEventsDrained) | |
TEST_F (HTTPDownstreamSessionTest, HttpWithAckTiming) | |
TEST_F (HTTPDownstreamSessionTest, TestOnContentMismatch) | |
TEST_F (HTTPDownstreamSessionTest, HttpWithAckTimingPipeline) | |
TEST_F (HTTP2DownstreamSessionTest, ExheaderFromServer) | |
TEST_F (HTTP2DownstreamSessionTest, ExheaderFromClient) | |
TEST_F (HTTP2DownstreamSessionTest, UnidirectionalExTransaction) | |
TEST_F (HTTP2DownstreamSessionTest, PauseResumeControlStream) | |
TEST_F (HTTP2DownstreamSessionTest, InvalidControlStream) | |
TEST_F (HTTP2DownstreamSessionTest, SetByteEventTracker) | |
TEST_F (HTTPDownstreamSessionTest, TestTrackedByteEventTracker) | |
TEST_F (HTTP2DownstreamSessionTest, Trailers) | |
TEST_F (HTTPDownstreamSessionTest, Trailers) | |
TEST_F (HTTPDownstreamSessionTest, ExplicitChunks) | |
TEST_F (HTTPDownstreamSessionTest, HttpDrain) | |
TEST_F (HTTPDownstreamSessionTest, HttpDrainLongRunning) | |
TEST_F (HTTPDownstreamSessionTest, EarlyAbort) | |
TEST_F (SPDY3DownstreamSessionTest, HttpPausedBuffered) | |
TEST_F (HTTPDownstreamSessionTest, HttpWritesDrainingTimeout) | |
TEST_F (HTTPDownstreamSessionTest, HttpRateLimitNormal) | |
TEST_F (SPDY3DownstreamSessionTest, SpdyRateLimitNormal) | |
TEST_F (SPDY3DownstreamSessionTest, SpdyRateLimitRst) | |
TEST_F (HTTPDownstreamSessionTest, WriteTimeout) | |
TEST_F (HTTPDownstreamSessionTest, WriteTimeoutPipeline) | |
TEST_F (HTTPDownstreamSessionTest, BodyPacketization) | |
TEST_F (HTTPDownstreamSessionTest, HttpMalformedPkt1) | |
TEST_F (HTTPDownstreamSessionTest, BigExplcitChunkWrite) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNonNative) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNonNativeIgnore) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNonNativePipeline) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNative3) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNative31) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativeH2) | |
TEST_F (HTTPDownstreamSessionUpgradeFlowControlTest, UpgradeH2Flowcontrol) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativeUnknown) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativeWhitespace) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativeJunk) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativeTxn2) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativePost) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativePostEarlyResp) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativePostEarlyPartialResp) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativeExtra) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativePost100) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeNativePost100Late) | |
TEST_F (SPDY3DownstreamSessionTest, SpdyPrio) | |
TEST_F (HTTPDownstreamSessionTest, HttpUpgradeGoawayDrain) | |
TEST_F (SPDY3DownstreamSessionTest, SpdyTimeout) | |
TEST_F (SPDY3DownstreamSessionTest, SpdyTimeoutWin) | |
TYPED_TEST_CASE_P (HTTPDownstreamTest) | |
TYPED_TEST_P (HTTPDownstreamTest, TestWritesDraining) | |
TYPED_TEST_P (HTTPDownstreamTest, TestBodySizeLimit) | |
TYPED_TEST_P (HTTPDownstreamTest, TestUniformPauseState) | |
TYPED_TEST_P (HTTPDownstreamTest, TestMaxTxns) | |
TEST_F (SPDY3DownstreamSessionTest, SpdyMaxConcurrentStreams) | |
REGISTER_TYPED_TEST_CASE_P (HTTPDownstreamTest, TestWritesDraining, TestBodySizeLimit, TestUniformPauseState, TestMaxTxns) | |
INSTANTIATE_TYPED_TEST_CASE_P (ParallelCodecs, HTTPDownstreamTest, ParallelCodecs) | |
TEST_F (SPDY31DownstreamTest, TestSessionFlowControl) | |
TEST_F (SPDY3DownstreamSessionTest, TestEOFOnBlockedStream) | |
TEST_F (SPDY31DownstreamTest, TestEOFOnBlockedSession) | |
TEST_F (SPDY3DownstreamSessionTest, NewTxnEgressPaused) | |
TEST_F (HTTP2DownstreamSessionTest, ZeroDeltaWindowUpdate) | |
TEST_F (HTTP2DownstreamSessionTest, PaddingFlowControl) | |
TEST_F (HTTP2DownstreamSessionTest, GracefulDrainOnTimeout) | |
TEST_F (HTTP2DownstreamSessionTest, ServerPush) | |
TEST_F (HTTP2DownstreamSessionTest, ServerPushAbortPaused) | |
TEST_F (HTTP2DownstreamSessionTest, TestPriorityWeightsTinyRatio) | |
TEST_F (HTTP2DownstreamSessionTest, TestPriorityDependentTransactions) | |
TEST_F (HTTP2DownstreamSessionTest, TestDisablePriorities) | |
TEST_F (HTTP2DownstreamSessionTest, TestPriorityWeights) | |
TEST_F (HTTP2DownstreamSessionTest, TestPriorityWeightsTinyWindow) | |
TEST_F (HTTP2DownstreamSessionTest, TestShortContentLength) | |
TEST_F (HTTP2DownstreamSessionTest, TestBadContentLengthUntieHandler) | |
TEST_F (HTTP2DownstreamSessionTest, TestLongContentLength) | |
TEST_F (HTTP2DownstreamSessionTest, TestMalformedContentLength) | |
TEST_F (HTTP2DownstreamSessionTest, TestHeadContentLength) | |
TEST_F (HTTP2DownstreamSessionTest, Test304ContentLength) | |
TEST_F (HTTPDownstreamSessionTest, HttpShortContentLength) | |
TEST_F (HTTP2DownstreamSessionTest, TestSessionStallByFlowControl) | |
TEST_F (HTTP2DownstreamSessionTest, TestTransactionStallByFlowControl) | |
TEST_F (HTTP2DownstreamSessionTest, TestTransactionNotStallByFlowControl) | |
TEST_F (HTTP2DownstreamSessionTest, TestSetEgressSettings) | |
Definition at line 2359 of file HTTPDownstreamSessionTest.cpp.
Referenced by TYPED_TEST_P().
Definition at line 436 of file HTTPDownstreamSessionTest.cpp.
typedef ::testing::Types<SPDY3CodecPair, SPDY3_1CodecPair, HTTP2CodecPair> ParallelCodecs |
Definition at line 2517 of file HTTPDownstreamSessionTest.cpp.
Definition at line 437 of file HTTPDownstreamSessionTest.cpp.
INSTANTIATE_TYPED_TEST_CASE_P | ( | ParallelCodecs | , |
HTTPDownstreamTest | , | ||
ParallelCodecs | |||
) |
REGISTER_TYPED_TEST_CASE_P | ( | HTTPDownstreamTest | , |
TestWritesDraining | , | ||
TestBodySizeLimit | , | ||
TestUniformPauseState | , | ||
TestMaxTxns | |||
) |
Referenced by TEST_F().
TEST | ( | HTTPDownstreamTest | , |
ParseErrorNoTxn | |||
) |
Definition at line 802 of file HTTPDownstreamSessionTest.cpp.
References testing::_, testing::Assign(), codec, EXPECT_CALL, testing::Invoke(), proxygen::kErrorParseHeader, proxygen::localAddr, folly::EventBase::loop(), proxygen::makeDownstreamParallelCodec(), proxygen::makeInternalTimeoutSet(), proxygen::mockTransportInfo, folly::gen::move, proxygen::newMockTransport(), proxygen::HTTPCodec::Callback::onError(), proxygen::peerAddr, proxygen::HTTPException::setCodecStatusCode(), proxygen::Exception::setProxygenError(), proxygen::HTTPDownstreamSession::startNow(), and folly::AsyncWriter::WriteCallback::writeSuccess().
TEST | ( | HTTPDownstreamTest | , |
ByteEventsDrained | |||
) |
Definition at line 853 of file HTTPDownstreamSessionTest.cpp.
References testing::AtLeast(), codec, EXPECT_CALL, proxygen::localAddr, folly::EventBase::loop(), proxygen::makeDownstreamParallelCodec(), proxygen::makeInternalTimeoutSet(), proxygen::mockTransportInfo, folly::gen::move, proxygen::newMockTransport(), proxygen::peerAddr, and proxygen::HTTPSession::setByteEventTracker().
TEST_F | ( | HTTP2DownstreamSessionEarlyShutdownTest | , |
EarlyShutdown | |||
) |
Definition at line 479 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, and g().
TEST_F | ( | HTTPDownstreamSessionTest | , |
ImmediateEof | |||
) |
Definition at line 497 of file HTTPDownstreamSessionTest.cpp.
References testing::_, and EXPECT_CALL.
TEST_F | ( | HTTPDownstreamSessionTest | , |
Http10NoHeaders | |||
) |
Definition at line 505 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, proxygen::getGetRequest(), and handler().
TEST_F | ( | HTTPDownstreamSessionTest | , |
Http10NoHeadersEof | |||
) |
Definition at line 526 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, and handler().
TEST_F | ( | HTTPDownstreamSessionTest | , |
SingleBytes | |||
) |
Definition at line 546 of file HTTPDownstreamSessionTest.cpp.
References proxygen::HTTPHeaders::exists(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, handler(), proxygen::HTTPHeaders::size(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
SingleBytesWithBody | |||
) |
Definition at line 575 of file HTTPDownstreamSessionTest.cpp.
References testing::_, proxygen::HTTPHeaders::exists(), EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, handler(), proxygen::HTTPHeaders::size(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
SplitBody | |||
) |
Definition at line 613 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, handler(), proxygen::HTTPHeaders::size(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
PostChunked | |||
) |
Definition at line 637 of file HTTPDownstreamSessionTest.cpp.
References testing::_, proxygen::HTTPHeaders::exists(), EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, handler(), proxygen::HTTPHeaders::size(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
MultiMessage | |||
) |
Definition at line 692 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
Connect | |||
) |
Definition at line 732 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, handler(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
ConnectRejected | |||
) |
Definition at line 758 of file HTTPDownstreamSessionTest.cpp.
References handler(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgrade | |||
) |
Definition at line 778 of file HTTPDownstreamSessionTest.cpp.
References testing::_, proxygen::HTTPHeaders::add(), EXPECT_CALL, proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), handler(), proxygen::HTTP_HEADER_CONNECTION, proxygen::HTTP_HEADER_UPGRADE, and testing::Invoke().
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpWithAckTiming | |||
) |
Definition at line 889 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, proxygen::HTTPTransaction::incrementPendingByteEvents(), testing::Invoke(), and uint64_t.
TEST_F | ( | HTTPDownstreamSessionTest | , |
TestOnContentMismatch | |||
) |
Definition at line 932 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpWithAckTimingPipeline | |||
) |
Definition at line 963 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, proxygen::HTTPTransaction::incrementPendingByteEvents(), testing::Invoke(), and uint64_t.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
ExheaderFromServer | |||
) |
Definition at line 1012 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, g(), proxygen::getGetRequest(), proxygen::getResponse(), std::tr1::make_tuple(), makeBuf(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
ExheaderFromClient | |||
) |
Definition at line 1082 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, g(), proxygen::getGetRequest(), proxygen::getResponse(), testing::Invoke(), proxygen::HTTPTransaction::setHandler(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
UnidirectionalExTransaction | |||
) |
Definition at line 1141 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_TRUE, g(), proxygen::getGetRequest(), proxygen::getResponse(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
PauseResumeControlStream | |||
) |
Definition at line 1174 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, g(), proxygen::getGetRequest(), proxygen::getResponse(), testing::Invoke(), proxygen::HTTPTransaction::setHandler(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
InvalidControlStream | |||
) |
Definition at line 1228 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, g(), proxygen::getGetRequest(), proxygen::getResponse(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
SetByteEventTracker | |||
) |
Definition at line 1264 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL, folly::gen::move, and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
TestTrackedByteEventTracker | |||
) |
Definition at line 1304 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, proxygen::HTTPTransaction::incrementPendingByteEvents(), testing::Invoke(), and uint64_t.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
Trailers | |||
) |
Definition at line 1331 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, g(), and handler().
TEST_F | ( | HTTPDownstreamSessionTest | , |
Trailers | |||
) |
Definition at line 1356 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
ExplicitChunks | |||
) |
Definition at line 1360 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpDrain | |||
) |
Definition at line 1397 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpDrainLongRunning | |||
) |
Definition at line 1432 of file HTTPDownstreamSessionTest.cpp.
References handler().
TEST_F | ( | HTTPDownstreamSessionTest | , |
EarlyAbort | |||
) |
Definition at line 1455 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, handler(), testing::Invoke(), testing::Return(), and transport_.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
HttpPausedBuffered | |||
) |
Definition at line 1479 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, folly::IOBufQueue::cacheChainLength(), proxygen::Exception::getProxygenError(), proxygen::kErrorStreamAbort, s, and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpWritesDrainingTimeout | |||
) |
Definition at line 1517 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, proxygen::Exception::getProxygenError(), proxygen::kErrorWriteTimeout, string, transport_, and proxygen::Exception::what().
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpRateLimitNormal | |||
) |
Definition at line 1542 of file HTTPDownstreamSessionTest.cpp.
References folly::ssl::cleanup(), EXPECT_GE, g(), folly::EventBaseManager::get(), int64_t, proxygen::millisecondsBetween(), folly::EventBaseManager::setEventBase(), transport_, and uint32_t.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
SpdyRateLimitNormal | |||
) |
Definition at line 1584 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_GE, g(), folly::EventBaseManager::get(), int64_t, proxygen::millisecondsBetween(), folly::EventBaseManager::setEventBase(), transport_, and uint32_t.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
SpdyRateLimitRst | |||
) |
This test will reset the connection while the server is waiting around to send more bytes (so as to keep under the rate limit).
Definition at line 1629 of file HTTPDownstreamSessionTest.cpp.
References folly::IOBufQueue::cacheChainLength(), folly::EventBaseManager::get(), folly::EventBaseManager::setEventBase(), streamID, transport_, and uint32_t.
TEST_F | ( | HTTPDownstreamSessionTest | , |
WriteTimeout | |||
) |
Definition at line 1665 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, proxygen::getGetRequest(), proxygen::Exception::getProxygenError(), proxygen::kErrorWriteTimeout, proxygen::HTTPMessage::setHTTPVersion(), string, transport_, and proxygen::Exception::what().
TEST_F | ( | HTTPDownstreamSessionTest | , |
WriteTimeoutPipeline | |||
) |
Definition at line 1695 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, proxygen::Exception::getProxygenError(), proxygen::kErrorWriteTimeout, string, transport_, and proxygen::Exception::what().
TEST_F | ( | HTTPDownstreamSessionTest | , |
BodyPacketization | |||
) |
Definition at line 1735 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, g(), proxygen::getGetRequest(), proxygen::HTTPMessage::setHTTPVersion(), proxygen::HTTPMessage::setWantsKeepalive(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpMalformedPkt1 | |||
) |
Definition at line 1759 of file HTTPDownstreamSessionTest.cpp.
References folly::data(), and string.
TEST_F | ( | HTTPDownstreamSessionTest | , |
BigExplcitChunkWrite | |||
) |
Definition at line 1769 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_GT, g(), handler(), makeBuf(), folly::gen::move, and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNonNative | |||
) |
Definition at line 1800 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL, proxygen::getUpgradeRequest(), and handler().
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNonNativeIgnore | |||
) |
Definition at line 1819 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getUpgradeRequest(), and handler().
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNonNativePipeline | |||
) |
Definition at line 1836 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, proxygen::getUpgradeRequest(), proxygen::HTTP_HEADER_UPGRADE, and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNative3 | |||
) |
Definition at line 1911 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNative31 | |||
) |
Definition at line 1916 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativeH2 | |||
) |
Definition at line 1921 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionUpgradeFlowControlTest | , |
UpgradeH2Flowcontrol | |||
) |
Definition at line 1933 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativeUnknown | |||
) |
Definition at line 1938 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativeWhitespace | |||
) |
Definition at line 1946 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativeJunk | |||
) |
Definition at line 1952 of file HTTPDownstreamSessionTest.cpp.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativeTxn2 | |||
) |
Definition at line 1958 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getGetRequest(), and proxygen::getUpgradeRequest().
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativePost | |||
) |
Definition at line 1984 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL, proxygen::getUpgradeRequest(), handler(), makeBuf(), and streamID.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativePostEarlyResp | |||
) |
Definition at line 2007 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getUpgradeRequest(), handler(), makeBuf(), and streamID.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativePostEarlyPartialResp | |||
) |
Definition at line 2026 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getUpgradeRequest(), handler(), makeBuf(), and streamID.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativeExtra | |||
) |
Definition at line 2050 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL, proxygen::getUpgradeRequest(), handler(), and transport_.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativePost100 | |||
) |
Definition at line 2076 of file HTTPDownstreamSessionTest.cpp.
References proxygen::HTTPHeaders::add(), EXPECT_CALL, proxygen::HTTPMessage::getHeaders(), proxygen::getUpgradeRequest(), handler(), proxygen::HTTP_HEADER_EXPECT, makeBuf(), and streamID.
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeNativePost100Late | |||
) |
Definition at line 2100 of file HTTPDownstreamSessionTest.cpp.
References proxygen::HTTPHeaders::add(), EXPECT_CALL, proxygen::HTTPMessage::getHeaders(), proxygen::getUpgradeRequest(), handler(), proxygen::HTTP_HEADER_EXPECT, makeBuf(), and streamID.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
SpdyPrio | |||
) |
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpUpgradeGoawayDrain | |||
) |
Definition at line 2133 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL, g(), proxygen::getUpgradeRequest(), handler(), makeBuf(), testing::Return(), and streamID.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
SpdyTimeout | |||
) |
Definition at line 2225 of file HTTPDownstreamSessionTest.cpp.
References folly::ssl::cleanup(), and transport_.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
SpdyTimeoutWin | |||
) |
Definition at line 2267 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, folly::ssl::cleanup(), proxygen::Exception::getProxygenError(), handler(), proxygen::kErrorWriteTimeout, streamID, string, TYPED_TEST_CASE_P(), and proxygen::Exception::what().
TEST_F | ( | SPDY3DownstreamSessionTest | , |
SpdyMaxConcurrentStreams | |||
) |
Definition at line 2480 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getGetRequest(), REGISTER_TYPED_TEST_CASE_P(), proxygen::HTTPMessage::setHTTPVersion(), proxygen::HTTPMessage::setWantsKeepalive(), and transport_.
TEST_F | ( | SPDY31DownstreamTest | , |
TestSessionFlowControl | |||
) |
Definition at line 2529 of file HTTPDownstreamSessionTest.cpp.
References testing::_, folly::ssl::cleanup(), EXPECT_CALL, and proxygen::http2::kInitialWindow.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
TestEOFOnBlockedStream | |||
) |
Definition at line 2540 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, and proxygen::HTTPException::getDirection().
TEST_F | ( | SPDY31DownstreamTest | , |
TestEOFOnBlockedSession | |||
) |
Definition at line 2565 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, proxygen::HTTPException::getDirection(), and transport_.
TEST_F | ( | SPDY3DownstreamSessionTest | , |
NewTxnEgressPaused | |||
) |
Definition at line 2605 of file HTTPDownstreamSessionTest.cpp.
References testing::_, folly::ssl::cleanup(), EXPECT_CALL, g(), proxygen::getGetRequest(), folly::INFO, testing::Invoke(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
ZeroDeltaWindowUpdate | |||
) |
Definition at line 2666 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, proxygen::HTTPException::getCodecStatusCode(), handler(), proxygen::http2::kFrameWindowUpdateSize, streamID, string, uint32_t, proxygen::Exception::what(), and folly::io::detail::Writable< Derived >::writeBE().
TEST_F | ( | HTTP2DownstreamSessionTest | , |
PaddingFlowControl | |||
) |
Definition at line 2692 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, g(), handler(), i, makeBuf(), streamID, and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
GracefulDrainOnTimeout | |||
) |
Definition at line 2728 of file HTTPDownstreamSessionTest.cpp.
References testing::_, count, EXPECT_CALL, EXPECT_GE, g(), proxygen::getCurrentTime(), testing::InvokeWithoutArgs(), max, and start.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
ServerPush | |||
) |
Definition at line 2769 of file HTTPDownstreamSessionTest.cpp.
References testing::_, ASSERT_NE, EXPECT_CALL, EXPECT_EQ, g(), proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), handler(), testing::Invoke(), std::tr1::make_tuple(), makeBuf(), proxygen::HTTPHeaders::set(), proxygen::HTTPMessage::setHTTP2Priority(), proxygen::HTTPMessage::setStatusCode(), proxygen::HTTPMessage::setStatusMessage(), proxygen::HTTPMessage::setURL(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
ServerPushAbortPaused | |||
) |
Definition at line 2840 of file HTTPDownstreamSessionTest.cpp.
References testing::_, ASSERT_NE, EXPECT_CALL, g(), proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), handler(), testing::Invoke(), makeBuf(), proxygen::HTTPHeaders::set(), proxygen::HTTPMessage::setStatusCode(), proxygen::HTTPMessage::setStatusMessage(), proxygen::HTTPMessage::setURL(), and transport_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestPriorityWeightsTinyRatio | |||
) |
Definition at line 2892 of file HTTPDownstreamSessionTest.cpp.
References proxygen::HTTPTransaction::PrioritySampleSummary::WeightedAverage::bySessionBytes_, proxygen::HTTPTransaction::PrioritySampleSummary::WeightedAverage::byTransactionBytes_, proxygen::HTTPTransaction::PrioritySampleSummary::contentions_, proxygen::HTTPTransaction::PrioritySampleSummary::depth_, EXPECT_EQ, EXPECT_GT, EXPECT_LT, proxygen::HTTPTransaction::PrioritySampleSummary::expected_weight_, proxygen::getGetRequest(), and proxygen::HTTPTransaction::PrioritySampleSummary::measured_weight_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestPriorityDependentTransactions | |||
) |
Definition at line 3029 of file HTTPDownstreamSessionTest.cpp.
References proxygen::HTTPTransaction::PrioritySampleSummary::WeightedAverage::bySessionBytes_, proxygen::HTTPTransaction::PrioritySampleSummary::WeightedAverage::byTransactionBytes_, proxygen::HTTPTransaction::PrioritySampleSummary::contentions_, proxygen::HTTPTransaction::PrioritySampleSummary::depth_, EXPECT_EQ, proxygen::HTTPTransaction::PrioritySampleSummary::expected_weight_, proxygen::getGetRequest(), and proxygen::HTTPTransaction::PrioritySampleSummary::measured_weight_.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestDisablePriorities | |||
) |
Definition at line 3107 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getGetRequest(), and proxygen::HTTPMessage::setHTTP2Priority().
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestPriorityWeights | |||
) |
Definition at line 3143 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, and makeBuf().
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestPriorityWeightsTinyWindow | |||
) |
Definition at line 3223 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, and i.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestShortContentLength | |||
) |
Definition at line 3280 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, proxygen::getPostRequest(), proxygen::Exception::getProxygenError(), proxygen::kErrorParseBody, makeBuf(), and streamID.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestBadContentLengthUntieHandler | |||
) |
If handler chooses to untie itself with transaction during onError, detachTransaction shouldn't be expected
Definition at line 3303 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getPostRequest(), makeBuf(), and streamID.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestLongContentLength | |||
) |
Definition at line 3327 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, proxygen::getPostRequest(), proxygen::Exception::getProxygenError(), proxygen::kErrorParseBody, makeBuf(), and streamID.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestMalformedContentLength | |||
) |
Definition at line 3347 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getPostRequest(), proxygen::HTTP_HEADER_CONTENT_LENGTH, makeBuf(), and streamID.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestHeadContentLength | |||
) |
Definition at line 3367 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getGetRequest().
TEST_F | ( | HTTP2DownstreamSessionTest | , |
Test304ContentLength | |||
) |
Definition at line 3386 of file HTTPDownstreamSessionTest.cpp.
References proxygen::getGetRequest().
TEST_F | ( | HTTPDownstreamSessionTest | , |
HttpShortContentLength | |||
) |
Definition at line 3405 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL, EXPECT_EQ, proxygen::getPostRequest(), proxygen::Exception::getProxygenError(), proxygen::HTTP_HEADER_TRANSFER_ENCODING, proxygen::kErrorParseBody, makeBuf(), and streamID.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestSessionStallByFlowControl | |||
) |
Definition at line 3431 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL.
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestTransactionStallByFlowControl | |||
) |
Definition at line 3476 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, EXPECT_CALL, proxygen::Exception::getProxygenError(), handler(), proxygen::kErrorWriteTimeout, streamID, string, and proxygen::Exception::what().
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestTransactionNotStallByFlowControl | |||
) |
Definition at line 3518 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_CALL, and handler().
TEST_F | ( | HTTP2DownstreamSessionTest | , |
TestSetEgressSettings | |||
) |
Definition at line 3551 of file HTTPDownstreamSessionTest.cpp.
References EXPECT_EQ, proxygen::HTTPSettings::getSetting(), settings, and proxygen::HTTPSetting::value.
TYPED_TEST_CASE_P | ( | HTTPDownstreamTest | ) |
Referenced by TEST_F().
TYPED_TEST_P | ( | HTTPDownstreamTest | , |
TestWritesDraining | |||
) |
Definition at line 2296 of file HTTPDownstreamSessionTest.cpp.
References ASSERT_EQ, ASSERT_TRUE, proxygen::getGetRequest(), proxygen::Exception::getProxygenError(), proxygen::kErrorEOF, version, and proxygen::Exception::what().
TYPED_TEST_P | ( | HTTPDownstreamTest | , |
TestBodySizeLimit | |||
) |
Definition at line 2320 of file HTTPDownstreamSessionTest.cpp.
References testing::_, folly::ssl::cleanup(), EXPECT_CALL, i, and uint32_t.
TYPED_TEST_P | ( | HTTPDownstreamTest | , |
TestUniformPauseState | |||
) |
Definition at line 2362 of file HTTPDownstreamSessionTest.cpp.
References folly::ssl::cleanup(), IF_HTTP2, makeBuf(), folly::gen::move, and transport_.
TYPED_TEST_P | ( | HTTPDownstreamTest | , |
TestMaxTxns | |||
) |
Definition at line 2438 of file HTTPDownstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, handler(), i, folly::gen::move, settings, and streamID.