proxygen
|
#include <folly/portability/GTest.h>
#include <limits>
#include <proxygen/lib/http/HTTPHeaderSize.h>
#include <proxygen/lib/http/HTTPMessage.h>
#include <proxygen/lib/http/codec/FlowControlFilter.h>
#include <proxygen/lib/http/codec/HTTPChecks.h>
#include <proxygen/lib/http/codec/test/MockHTTPCodec.h>
#include <proxygen/lib/http/codec/test/TestUtils.h>
#include <random>
Go to the source code of this file.
Classes | |
class | MockFlowControlCallback |
class | FilterTest |
class | HTTPChecksTest |
class | FlowControlFilterTest< initSize > |
Typedefs | |
using | DefaultFlowControl = FlowControlFilterTest< 0 > |
using | BigWindow = FlowControlFilterTest< 1000000 > |
Functions | |
MATCHER (IsFlowException,"") | |
TEST_F (DefaultFlowControl, FlowControlConstruct) | |
TEST_F (DefaultFlowControl, SendUpdate) | |
TEST_F (BigWindow, RecvTooMuch) | |
TEST_F (BigWindow, RemoteIncrease) | |
TEST_F (HTTPChecksTest, SendTraceBodyDeath) | |
TEST_F (HTTPChecksTest, SendGetBody) | |
TEST_F (HTTPChecksTest, RecvTraceBody) | |
using BigWindow = FlowControlFilterTest<1000000> |
Definition at line 100 of file FilterTests.cpp.
using DefaultFlowControl = FlowControlFilterTest<0> |
Definition at line 99 of file FilterTests.cpp.
MATCHER | ( | IsFlowException | , |
"" | |||
) |
Definition at line 102 of file FilterTests.cpp.
References proxygen::FLOW_CONTROL_ERROR.
TEST_F | ( | DefaultFlowControl | , |
FlowControlConstruct | |||
) |
Definition at line 109 of file FilterTests.cpp.
References ASSERT_EQ, EXPECT_CALL, EXPECT_DEATH_NO_CORE, proxygen::makeBuf(), and proxygen::HTTPCodec::NoPadding.
TEST_F | ( | DefaultFlowControl | , |
SendUpdate | |||
) |
Definition at line 138 of file FilterTests.cpp.
References testing::_, callback_, codec_, EXPECT_CALL, proxygen::makeBuf(), and testing::Return().
TEST_F | ( | BigWindow | , |
RecvTooMuch | |||
) |
Definition at line 154 of file FilterTests.cpp.
References testing::_, ASSERT_EQ, ASSERT_FALSE, ASSERT_GT, ASSERT_TRUE, callback_, EXPECT_CALL, testing::Invoke(), proxygen::makeBuf(), and string.
TEST_F | ( | BigWindow | , |
RemoteIncrease | |||
) |
Definition at line 179 of file FilterTests.cpp.
References testing::_, ASSERT_EQ, ASSERT_FALSE, callback_, EXPECT_CALL, testing::Invoke(), proxygen::makeBuf(), max, proxygen::HTTPCodec::NoPadding, and string.
TEST_F | ( | HTTPChecksTest | , |
SendTraceBodyDeath | |||
) |
Definition at line 215 of file FilterTests.cpp.
References EXPECT_DEATH_NO_CORE, proxygen::getPostRequest(), and proxygen::HTTPMessage::setMethod().
TEST_F | ( | HTTPChecksTest | , |
SendGetBody | |||
) |
Definition at line 224 of file FilterTests.cpp.
References testing::_, codec_, EXPECT_CALL, proxygen::getPostRequest(), and proxygen::HTTPMessage::setMethod().
TEST_F | ( | HTTPChecksTest | , |
RecvTraceBody | |||
) |
Definition at line 236 of file FilterTests.cpp.
References testing::_, ASSERT_EQ, ASSERT_TRUE, callback_, EXPECT_CALL, testing::Invoke(), proxygen::makePostRequest(), and folly::gen::move.