|
proxygen
|
#include <folly/io/async/EventBase.h>#include <proxygen/lib/http/codec/SPDYConstants.h>#include <proxygen/lib/http/codec/test/MockHTTPCodec.h>#include <proxygen/lib/http/codec/test/TestUtils.h>#include <proxygen/lib/http/session/test/HTTPSessionMocks.h>#include <proxygen/lib/http/session/test/HTTPTransactionMocks.h>#include <proxygen/lib/test/TestAsyncTransport.h>#include <folly/io/async/test/MockAsyncTransport.h>Go to the source code of this file.
Classes | |
| class | DownstreamTransactionTest |
Functions | |
| TEST_F (DownstreamTransactionTest, SimpleCallbackForwarding) | |
| TEST_F (DownstreamTransactionTest, RegularWindowUpdate) | |
| TEST_F (DownstreamTransactionTest, NoWindowUpdate) | |
| TEST_F (DownstreamTransactionTest, WindowIncrease) | |
| TEST_F (DownstreamTransactionTest, WindowDecrease) | |
| TEST_F (DownstreamTransactionTest, ParseErrorCbs) | |
| TEST_F (DownstreamTransactionTest, DetachFromNotify) | |
| TEST_F (DownstreamTransactionTest, DeferredEgress) | |
| TEST_F (DownstreamTransactionTest, InternalError) | |
| TEST_F (DownstreamTransactionTest, UnpausedFlowControlViolation) | |
| TEST_F | ( | DownstreamTransactionTest | , |
| SimpleCallbackForwarding | |||
| ) |
Test that the the transaction properly forwards callbacks to the handler and that it interacts with its transport as expected.
Definition at line 113 of file DownstreamTransactionTest.cpp.
References proxygen::DOWNSTREAM, proxygen::makeGetRequest(), and transport_.
| TEST_F | ( | DownstreamTransactionTest | , |
| RegularWindowUpdate | |||
| ) |
Testing that we're sending a window update for simple requests
Definition at line 129 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, EXPECT_CALL, proxygen::spdy::kInitialWindow, proxygen::makeGetRequest(), transport_, and uint32_t.
| TEST_F | ( | DownstreamTransactionTest | , |
| NoWindowUpdate | |||
| ) |
Definition at line 150 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, EXPECT_CALL, proxygen::spdy::kInitialWindow, proxygen::makeBuf(), proxygen::makeGetRequest(), proxygen::makeResponse(), transport_, and uint32_t.
| TEST_F | ( | DownstreamTransactionTest | , |
| WindowIncrease | |||
| ) |
Testing window increase using window update; we're actually using this in production to avoid bumping the window using the SETTINGS frame
Definition at line 181 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, EXPECT_CALL, proxygen::spdy::kInitialWindow, proxygen::makeGetRequest(), transport_, and uint32_t.
| TEST_F | ( | DownstreamTransactionTest | , |
| WindowDecrease | |||
| ) |
Testing that we're not sending window update when per-stream window size is smaller than the initial window size
Definition at line 213 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, EXPECT_CALL, proxygen::spdy::kInitialWindow, proxygen::makeGetRequest(), transport_, and uint32_t.
| TEST_F | ( | DownstreamTransactionTest | , |
| ParseErrorCbs | |||
| ) |
Definition at line 238 of file DownstreamTransactionTest.cpp.
References testing::_, ASSERT_EQ, proxygen::DOWNSTREAM, dummy(), EXPECT_CALL, proxygen::HTTPException::getDirection(), proxygen::HTTPException::INGRESS, testing::Invoke(), proxygen::makeBuf(), string, transport_, and proxygen::Exception::what().
| TEST_F | ( | DownstreamTransactionTest | , |
| DetachFromNotify | |||
| ) |
Definition at line 276 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, dummy(), EXPECT_CALL, EXPECT_EQ, proxygen::HTTPMessage::getStatusCode(), handler(), proxygen::HTTPException::INGRESS_AND_EGRESS, testing::Invoke(), testing::InvokeWithoutArgs(), proxygen::makeBuf(), proxygen::makeGetRequest(), proxygen::makeResponse(), and transport_.
| TEST_F | ( | DownstreamTransactionTest | , |
| DeferredEgress | |||
| ) |
Definition at line 314 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, dummy(), EXPECT_CALL, EXPECT_EQ, proxygen::HTTPMessage::getStatusCode(), proxygen::HTTPException::INGRESS_AND_EGRESS, testing::Invoke(), proxygen::makeBuf(), proxygen::makeGetRequest(), proxygen::makeResponse(), testing::Return(), and transport_.
| TEST_F | ( | DownstreamTransactionTest | , |
| InternalError | |||
| ) |
Definition at line 371 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, dummy(), EXPECT_CALL, EXPECT_EQ, proxygen::HTTPMessage::getStatusCode(), handler(), proxygen::HTTPException::INGRESS_AND_EGRESS, proxygen::INTERNAL_ERROR, testing::Invoke(), proxygen::makeGetRequest(), proxygen::makeResponse(), and transport_.
| TEST_F | ( | DownstreamTransactionTest | , |
| UnpausedFlowControlViolation | |||
| ) |
Definition at line 404 of file DownstreamTransactionTest.cpp.
References testing::_, proxygen::DOWNSTREAM, EXPECT_CALL, proxygen::FLOW_CONTROL_ERROR, handler(), proxygen::spdy::kInitialWindow, proxygen::makeBuf(), proxygen::makePostRequest(), and transport_.