proxygen
|
#include <folly/io/Cursor.h>
#include <folly/io/async/EventBase.h>
#include <folly/io/async/TimeoutManager.h>
#include <wangle/acceptor/ConnectionManager.h>
#include <folly/portability/GTest.h>
#include <proxygen/lib/http/codec/test/MockHTTPCodec.h>
#include <proxygen/lib/http/codec/HTTPCodecFactory.h>
#include <proxygen/lib/http/codec/test/TestUtils.h>
#include <proxygen/lib/http/session/HTTPUpstreamSession.h>
#include <proxygen/lib/http/session/test/MockByteEventTracker.h>
#include <proxygen/lib/http/session/test/HTTPSessionMocks.h>
#include <proxygen/lib/http/session/test/HTTPSessionTest.h>
#include <proxygen/lib/http/session/test/TestUtils.h>
#include <proxygen/lib/test/TestAsyncTransport.h>
#include <string>
#include <folly/io/async/test/MockAsyncTransport.h>
#include <vector>
Go to the source code of this file.
Classes | |
class | TestPriorityMapBuilder |
class | TestPriorityAdapter |
class | HTTPUpstreamTest< C > |
class | TimeoutableHTTPUpstreamTest< C > |
class | HTTP2UpstreamSessionWithVirtualNodesTest |
class | HTTP2UpstreamSessionWithPriorityTree |
class | HTTPUpstreamRecvStreamTest |
class | NoFlushUpstreamSessionTest |
class | MockHTTPUpstreamTest |
class | MockHTTP2UpstreamTest |
class | TestAbortPost< stage > |
Typedefs | |
using | HTTPUpstreamSessionTest = HTTPUpstreamTest< HTTP1xCodecPair > |
using | SPDY3UpstreamSessionTest = HTTPUpstreamTest< SPDY3CodecPair > |
using | HTTP2UpstreamSessionTest = HTTPUpstreamTest< HTTP2CodecPair > |
using | HTTPUpstreamTimeoutTest = TimeoutableHTTPUpstreamTest< HTTP1xCodecPair > |
typedef TestAbortPost< 0 > | TestAbortPost0 |
typedef TestAbortPost< 1 > | TestAbortPost1 |
typedef TestAbortPost< 2 > | TestAbortPost2 |
typedef TestAbortPost< 3 > | TestAbortPost3 |
typedef TestAbortPost< 4 > | TestAbortPost4 |
typedef TestAbortPost< 5 > | TestAbortPost5 |
using | AllTypes = ::testing::Types< HTTP1xCodecPair, SPDY3CodecPair > |
using AllTypes = ::testing::Types<HTTP1xCodecPair, SPDY3CodecPair> |
Definition at line 2696 of file HTTPUpstreamSessionTest.cpp.
Definition at line 405 of file HTTPUpstreamSessionTest.cpp.
Definition at line 403 of file HTTPUpstreamSessionTest.cpp.
Definition at line 1269 of file HTTPUpstreamSessionTest.cpp.
Definition at line 404 of file HTTPUpstreamSessionTest.cpp.
typedef TestAbortPost<0> TestAbortPost0 |
Definition at line 2258 of file HTTPUpstreamSessionTest.cpp.
typedef TestAbortPost<1> TestAbortPost1 |
Definition at line 2259 of file HTTPUpstreamSessionTest.cpp.
typedef TestAbortPost<2> TestAbortPost2 |
Definition at line 2260 of file HTTPUpstreamSessionTest.cpp.
typedef TestAbortPost<3> TestAbortPost3 |
Definition at line 2261 of file HTTPUpstreamSessionTest.cpp.
typedef TestAbortPost<4> TestAbortPost4 |
Definition at line 2262 of file HTTPUpstreamSessionTest.cpp.
typedef TestAbortPost<5> TestAbortPost5 |
Definition at line 2263 of file HTTPUpstreamSessionTest.cpp.
INSTANTIATE_TYPED_TEST_CASE_P | ( | AllTypesPrefix | , |
HTTPUpstreamTest | , | ||
AllTypes | |||
) |
REGISTER_TYPED_TEST_CASE_P | ( | HTTPUpstreamTest | , |
ImmediateEof | |||
) |
Referenced by TEST_F().
TEST_F | ( | SPDY3UpstreamSessionTest | , |
ServerPush | |||
) |
Definition at line 407 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::coalesce(), folly::IOBuf::data(), EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::SPDYCodec::generateBody(), proxygen::SPDYCodec::generateHeader(), proxygen::SPDYCodec::generatePushPromise(), proxygen::HTTPMessage::getHeaders(), handler(), proxygen::HTTP_HEADER_HOST, testing::Invoke(), folly::IOBuf::length(), makeBuf(), folly::IOBufQueue::move(), folly::gen::move, gmock_output_test::output, proxygen::HTTPHeaders::set(), proxygen::HTTPTransaction::setHandler(), proxygen::HTTPMessage::setStatusCode(), proxygen::HTTPMessage::setStatusMessage(), and proxygen::HTTPMessage::setURL().
TEST_F | ( | SPDY3UpstreamSessionTest | , |
IngressGoawayAbortUncreatedStreams | |||
) |
Definition at line 469 of file HTTPUpstreamSessionTest.cpp.
References ASSERT_EQ, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::coalesce(), folly::IOBuf::data(), EXPECT_EQ, EXPECT_TRUE, proxygen::SPDYCodec::generateGoaway(), proxygen::Exception::getProxygenError(), handler(), proxygen::Exception::hasProxygenError(), proxygen::kErrorStreamUnacknowledged, folly::IOBuf::length(), string, and proxygen::Exception::what().
TEST_F | ( | SPDY3UpstreamSessionTest | , |
IngressGoawaySessionError | |||
) |
Definition at line 508 of file HTTPUpstreamSessionTest.cpp.
References ASSERT_EQ, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::coalesce(), folly::IOBuf::data(), EXPECT_EQ, EXPECT_TRUE, proxygen::SPDYCodec::generateGoaway(), proxygen::Exception::getProxygenError(), handler(), proxygen::Exception::hasProxygenError(), proxygen::kErrorStreamUnacknowledged, folly::IOBuf::length(), string, and proxygen::Exception::what().
TEST_F | ( | SPDY3UpstreamSessionTest | , |
TestUnderLimitOnWriteError | |||
) |
Definition at line 548 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_EQ, proxygen::getPostRequest(), handler(), and makeBuf().
TEST_F | ( | SPDY3UpstreamSessionTest | , |
TestOverlimitResume | |||
) |
Definition at line 572 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_EQ, proxygen::getPostRequest(), and makeBuf().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
TestPriority | |||
) |
Definition at line 622 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, proxygen::getGetRequest(), testing::Invoke(), makeServerCodec(), and uint32_t.
TEST_F | ( | HTTP2UpstreamSessionTest | , |
TestSettingsAck | |||
) |
Definition at line 695 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::cacheChainLength(), EXPECT_CALL, EXPECT_EQ, and makeServerCodec().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
TestSettingsInfoCallbacks | |||
) |
Definition at line 715 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::cacheChainLength(), EXPECT_CALL, and makeServerCodec().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
TestSetControllerInitHeaderIndexingStrat | |||
) |
Definition at line 744 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, proxygen::HTTP2Codec::getHeaderIndexingStrategy(), handler(), and testing::Return().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
ExheaderFromServer | |||
) |
Definition at line 777 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::cacheChainLength(), EXPECT_CALL, EXPECT_EQ, proxygen::getGetRequest(), proxygen::getResponse(), testing::Invoke(), makeServerCodec(), and proxygen::HTTPTransaction::setHandler().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
InvalidControlStream | |||
) |
Definition at line 826 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::cacheChainLength(), EXPECT_CALL, EXPECT_EQ, proxygen::getGetRequest(), proxygen::getResponse(), and makeServerCodec().
TEST_F | ( | HTTP2UpstreamSessionWithVirtualNodesTest | , |
VirtualNodes | |||
) |
Definition at line 928 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, handler(), i, testing::Invoke(), and uint8_t.
TEST_F | ( | HTTP2UpstreamSessionWithPriorityTree | , |
PriorityTree | |||
) |
Definition at line 972 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, handler(), i, testing::Invoke(), and uint8_t.
TEST_F | ( | HTTPUpstreamSessionTest | , |
BasicRequest | |||
) |
Definition at line 1049 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
TwoRequests | |||
) |
Definition at line 1054 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
10Requests | |||
) |
Definition at line 1060 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
TestFirstHeaderByteEventTracker | |||
) |
Definition at line 1067 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, handler(), proxygen::HTTPTransaction::incrementPendingByteEvents(), testing::Invoke(), and uint64_t.
TEST_F | ( | HTTPUpstreamSessionTest | , |
Http10Keepalive | |||
) |
Definition at line 1132 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
BasicTrailers | |||
) |
Definition at line 1137 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, and handler().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
BasicTrailers | |||
) |
Definition at line 1162 of file HTTPUpstreamSessionTest.cpp.
References folly::IOBufQueue::cacheChainLength(), folly::IOBuf::coalesce(), folly::IOBuf::data(), EXPECT_EQ, proxygen::HTTPMessage::getHeaders(), handler(), folly::IOBuf::length(), makeBuf(), makeServerCodec(), folly::IOBufQueue::move(), folly::gen::move, gmock_output_test::output, proxygen::HTTPHeaders::set(), and proxygen::HTTPMessage::setStatusCode().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
HeadersThenBodyThenHeaders | |||
) |
Definition at line 1201 of file HTTPUpstreamSessionTest.cpp.
References ASSERT_EQ, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::coalesce(), folly::IOBuf::data(), EXPECT_EQ, EXPECT_TRUE, proxygen::HTTPMessage::getHeaders(), proxygen::Exception::getProxygenError(), handler(), proxygen::Exception::hasProxygenError(), proxygen::kErrorIngressStateTransition, folly::IOBuf::length(), makeBuf(), makeServerCodec(), folly::IOBufQueue::move(), folly::gen::move, gmock_output_test::output, proxygen::HTTPHeaders::set(), proxygen::HTTPMessage::setStatusCode(), string, and proxygen::Exception::what().
TEST_F | ( | HTTPUpstreamSessionTest | , |
TwoRequestsWithPause | |||
) |
Definition at line 1243 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, and handler().
TEST_F | ( | HTTPUpstreamTimeoutTest | , |
WriteTimeoutAfterResponse | |||
) |
Definition at line 1270 of file HTTPUpstreamSessionTest.cpp.
References ASSERT_EQ, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::HTTPException::getDirection(), proxygen::getPostRequest(), proxygen::Exception::getProxygenError(), handler(), proxygen::Exception::hasProxygenError(), proxygen::kErrorWriteTimeout, string, and proxygen::Exception::what().
TEST_F | ( | HTTPUpstreamSessionTest | , |
SetTransactionTimeout | |||
) |
Definition at line 1304 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_EQ, EXPECT_TRUE, and handler().
TEST_F | ( | HTTPUpstreamSessionTest | , |
ReadTimeout | |||
) |
Definition at line 1319 of file HTTPUpstreamSessionTest.cpp.
References wangle::ConnectionManager::makeUnique().
TEST_F | ( | HTTPUpstreamSessionTest | , |
100ContinueKeepalive | |||
) |
Definition at line 1328 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), handler(), proxygen::HTTP_HEADER_EXPECT, and proxygen::HTTPHeaders::set().
TEST_F | ( | HTTPUpstreamSessionTest | , |
417Keepalive | |||
) |
Definition at line 1361 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), handler(), proxygen::HTTP_HEADER_EXPECT, and proxygen::HTTPHeaders::set().
TEST_F | ( | HTTPUpstreamSessionTest | , |
101Upgrade | |||
) |
Definition at line 1388 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), handler(), proxygen::HTTP_HEADER_UPGRADE, and proxygen::HTTPHeaders::set().
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgradeNativeH2 | |||
) |
Definition at line 1473 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgradeNativeUnknown | |||
) |
Definition at line 1478 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgradeNativeWhitespace | |||
) |
Definition at line 1483 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgradeNativeJunk | |||
) |
Definition at line 1489 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgrade101Unexpected | |||
) |
Definition at line 1494 of file HTTPUpstreamSessionTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_EQ, EXPECT_TRUE, and handler().
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgrade101MissingUpgrade | |||
) |
Definition at line 1510 of file HTTPUpstreamSessionTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_EQ, EXPECT_TRUE, proxygen::getUpgradeRequest(), and handler().
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgrade101BogusHeader | |||
) |
Definition at line 1524 of file HTTPUpstreamSessionTest.cpp.
References testing::_, dummy(), EXPECT_CALL, EXPECT_EQ, EXPECT_TRUE, proxygen::getUpgradeRequest(), and handler().
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgradePost100 | |||
) |
Definition at line 1540 of file HTTPUpstreamSessionTest.cpp.
References dummy(), EXPECT_EQ, handler(), makeBuf(), and folly::gen::move.
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgradePost100Http2 | |||
) |
Definition at line 1571 of file HTTPUpstreamSessionTest.cpp.
References dummy(), EXPECT_EQ, handler(), makeBuf(), and folly::gen::move.
TEST_F | ( | HTTPUpstreamSessionTest | , |
HttpUpgradeOnTxn2 | |||
) |
Definition at line 1600 of file HTTPUpstreamSessionTest.cpp.
References dummy(), EXPECT_EQ, and proxygen::getUpgradeRequest().
TEST_F | ( | HTTPUpstreamRecvStreamTest | , |
UpgradeFlowControl | |||
) |
Definition at line 1641 of file HTTPUpstreamSessionTest.cpp.
References testing::_, dummy(), EXPECT_CALL, proxygen::HTTP2Codec::getDefaultWindowSize(), testing::Invoke(), proxygen::HTTPParallelCodec::setCallback(), and settings.
TEST_F | ( | NoFlushUpstreamSessionTest | , |
SessionPausedStartPaused | |||
) |
Definition at line 1690 of file HTTPUpstreamSessionTest.cpp.
References proxygen::getGetRequest(), and makeBuf().
TEST_F | ( | NoFlushUpstreamSessionTest | , |
DeleteTxnOnUnpause | |||
) |
Definition at line 1714 of file HTTPUpstreamSessionTest.cpp.
References proxygen::getGetRequest(), and makeBuf().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
ServerPush | |||
) |
Definition at line 1798 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::cacheChainLength(), folly::IOBuf::coalesce(), folly::IOBuf::data(), EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::MockHTTPHandler::expectBody(), proxygen::MockHTTPHandler::expectDetachTransaction(), proxygen::MockHTTPHandler::expectEOM(), proxygen::MockHTTPHandler::expectHeaders(), proxygen::HTTPMessage::getHeaders(), handler(), proxygen::HTTP_HEADER_HOST, testing::Invoke(), folly::IOBuf::length(), makeBuf(), makeServerCodec(), folly::IOBufQueue::move(), folly::gen::move, gmock_output_test::output, proxygen::HTTPHeaders::set(), proxygen::HTTPTransaction::setHandler(), proxygen::HTTPMessage::setStatusCode(), and proxygen::HTTPMessage::setURL().
TEST_F | ( | MockHTTP2UpstreamTest | , |
ParseErrorNoTxn | |||
) |
Definition at line 1887 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::append(), EXPECT_CALL, proxygen::getPostRequest(), handler(), testing::Invoke(), proxygen::kErrorParseHeader, testing::Return(), proxygen::HTTPException::setCodecStatusCode(), proxygen::Exception::setProxygenError(), and fizz::detail::writeBuf().
TEST_F | ( | MockHTTPUpstreamTest | , |
0MaxOutgoingTxns | |||
) |
TEST_F | ( | MockHTTPUpstreamTest | , |
OutgoingTxnSettings | |||
) |
Definition at line 1936 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_FALSE, and EXPECT_TRUE.
TEST_F | ( | MockHTTPUpstreamTest | , |
IngressGoawayDrain | |||
) |
Definition at line 1954 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, handler(), proxygen::makeResponse(), and folly::gen::move.
TEST_F | ( | MockHTTPUpstreamTest | , |
Goaway | |||
) |
Definition at line 1989 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_EQ, EXPECT_FALSE, proxygen::MockHTTPHandler::expectDetachTransaction(), proxygen::MockHTTPHandler::expectEOM(), proxygen::MockHTTPHandler::expectHeaders(), proxygen::MockHTTPHandler::expectTransaction(), handler(), i, proxygen::makeResponse(), folly::gen::move, and proxygen::HTTPHandlerBase::sendRequest().
TEST_F | ( | MockHTTPUpstreamTest | , |
GoawayPreHeaders | |||
) |
Definition at line 2025 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::append(), ASSERT_TRUE, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, proxygen::MockHTTPHandler::expectDetachTransaction(), proxygen::MockHTTPHandler::expectEOM(), proxygen::MockHTTPHandler::expectHeaders(), proxygen::MockHTTPHandler::expectTransaction(), proxygen::HTTPTransaction::getID(), handler(), testing::Invoke(), proxygen::makeResponse(), folly::gen::move, proxygen::HTTPHandlerBase::sendRequest(), string, proxygen::HTTPHandlerBase::txn_, and fizz::detail::writeBuf().
TEST_F | ( | MockHTTPUpstreamTest | , |
NoWindowUpdateOnDrain | |||
) |
Definition at line 2067 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBufQueue::append(), dummy(), EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_LT, handler(), testing::Invoke(), makeBuf(), proxygen::makeResponse(), min, folly::gen::move, testing::Return(), streamID, string, uint32_t, and fizz::detail::writeBuf().
TEST_F | ( | MockHTTPUpstreamTest | , |
GetWithBody | |||
) |
Definition at line 2137 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, proxygen::getGetRequest(), proxygen::HTTPMessage::getHeaders(), handler(), proxygen::HTTP_HEADER_CONTENT_LENGTH, makeBuf(), and proxygen::HTTPHeaders::set().
TEST_F | ( | MockHTTPUpstreamTest | , |
HeaderWithEom | |||
) |
Definition at line 2157 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_TRUE, proxygen::getGetRequest(), and handler().
TEST_F | ( | TestAbortPost1 | , |
Test | |||
) |
Definition at line 2265 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | TestAbortPost2 | , |
Test | |||
) |
Definition at line 2266 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | TestAbortPost3 | , |
Test | |||
) |
Definition at line 2267 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | TestAbortPost4 | , |
Test | |||
) |
Definition at line 2268 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | TestAbortPost5 | , |
Test | |||
) |
Definition at line 2269 of file HTTPUpstreamSessionTest.cpp.
TEST_F | ( | MockHTTPUpstreamTest | , |
AbortUpgrade | |||
) |
Definition at line 2271 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, proxygen::getPostRequest(), handler(), makeBuf(), proxygen::makeResponse(), folly::gen::move, and streamID.
TEST_F | ( | MockHTTPUpstreamTest | , |
DrainBeforeSendHeaders | |||
) |
Definition at line 2303 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, handler(), and proxygen::makeResponse().
TEST_F | ( | MockHTTP2UpstreamTest | , |
ReceiveDoubleGoaway | |||
) |
Definition at line 2324 of file HTTPUpstreamSessionTest.cpp.
References testing::_, ASSERT_EQ, EXPECT_CALL, EXPECT_EQ, EXPECT_TRUE, proxygen::getGetRequest(), proxygen::Exception::getProxygenError(), proxygen::Exception::hasProxygenError(), proxygen::kErrorStreamUnacknowledged, string, and proxygen::Exception::what().
TEST_F | ( | MockHTTP2UpstreamTest | , |
ServerPushInvalidAssoc | |||
) |
Definition at line 2364 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::getGetRequest(), handler(), proxygen::makeResponse(), folly::gen::move, and streamID.
TEST_F | ( | MockHTTP2UpstreamTest | , |
ServerPushAfterFin | |||
) |
Definition at line 2406 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::getGetRequest(), handler(), testing::InvokeWithoutArgs(), proxygen::makeResponse(), folly::gen::move, and streamID.
TEST_F | ( | MockHTTP2UpstreamTest | , |
ServerPushHandlerInstallFail | |||
) |
Definition at line 2452 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, proxygen::getGetRequest(), handler(), testing::Invoke(), folly::gen::move, proxygen::HTTPTransaction::setHandler(), and streamID.
TEST_F | ( | MockHTTP2UpstreamTest | , |
ServerPushUnhandledAssoc | |||
) |
Definition at line 2502 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, EXPECT_TRUE, proxygen::getGetRequest(), handler(), folly::gen::move, and streamID.
TEST_F | ( | MockHTTPUpstreamTest | , |
HeadersThenBodyThenHeaders | |||
) |
Definition at line 2536 of file HTTPUpstreamSessionTest.cpp.
References testing::_, ASSERT_EQ, EXPECT_CALL, EXPECT_EQ, EXPECT_TRUE, proxygen::getGetRequest(), proxygen::Exception::getProxygenError(), handler(), proxygen::Exception::hasProxygenError(), proxygen::kErrorIngressStateTransition, makeBuf(), proxygen::makeResponse(), folly::gen::move, string, and proxygen::Exception::what().
TEST_F | ( | MockHTTP2UpstreamTest | , |
DelayUpstreamWindowUpdate | |||
) |
Definition at line 2561 of file HTTPUpstreamSessionTest.cpp.
References testing::_, EXPECT_CALL, proxygen::getGetRequest(), handler(), and testing::Return().
TEST_F | ( | MockHTTPUpstreamTest | , |
ForceShutdownInSetTransaction | |||
) |
Definition at line 2579 of file HTTPUpstreamSessionTest.cpp.
References ASSERT_EQ, EXPECT_EQ, EXPECT_TRUE, proxygen::Exception::getProxygenError(), handler(), proxygen::Exception::hasProxygenError(), proxygen::kErrorDropped, string, and proxygen::Exception::what().
TEST_F | ( | HTTP2UpstreamSessionTest | , |
TestReplaySafetyCallback | |||
) |
Definition at line 2596 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_CALL, ON_CALL, testing::Return(), and transport_.
TEST_F | ( | HTTP2UpstreamSessionTest | , |
TestAlreadyReplaySafe | |||
) |
Definition at line 2619 of file HTTPUpstreamSessionTest.cpp.
References EXPECT_CALL, testing::Return(), and transport_.
TEST_F | ( | HTTP2UpstreamSessionTest | , |
TestChainedBufIngress | |||
) |
Definition at line 2632 of file HTTPUpstreamSessionTest.cpp.
References testing::_, folly::IOBuf::copyBuffer(), EXPECT_CALL, and folly::gen::move.
TEST_F | ( | HTTP2UpstreamSessionTest | , |
AttachDetach | |||
) |
Definition at line 2645 of file HTTPUpstreamSessionTest.cpp.
References folly::IOBufQueue::cacheChainLength(), folly::HHWheelTimer::DEFAULT_TICK_INTERVAL, EXPECT_EQ, handler(), i, folly::TimeoutManager::INTERNAL, folly::EventBase::loopOnce(), makeBuf(), makeServerCodec(), folly::IOBufQueue::move(), folly::HHWheelTimer::newTimer(), gmock_output_test::output, REGISTER_TYPED_TEST_CASE_P(), proxygen::HTTPMessage::setStatusCode(), and uint64_t.
TYPED_TEST_CASE_P | ( | HTTPUpstreamTest | ) |
TYPED_TEST_P | ( | HTTPUpstreamTest | , |
ImmediateEof | |||
) |