proxygen
|
#include <folly/Conv.h>
#include <folly/ScopeGuard.h>
#include <folly/io/IOBuf.h>
#include <folly/portability/GMock.h>
#include <folly/portability/GTest.h>
#include <proxygen/httpserver/filters/ZlibServerFilter.h>
#include <proxygen/lib/utils/ZlibStreamCompressor.h>
#include <proxygen/httpserver/Mocks.h>
#include <proxygen/httpserver/ResponseBuilder.h>
Go to the source code of this file.
Classes | |
class | ZlibServerFilterTest |
Functions | |
MATCHER_P (IOBufEquals, expected, folly::to< std::string >("IOBuf is ", negation?"not ":"","'", expected,"'")) | |
TEST_F (ZlibServerFilterTest, NonchunkedCompression) | |
TEST_F (ZlibServerFilterTest, ChunkedCompression) | |
TEST_F (ZlibServerFilterTest, ParameterizedContenttype) | |
TEST_F (ZlibServerFilterTest, MixedcaseContenttype) | |
TEST_F (ZlibServerFilterTest, MultipleAcceptedEncodings) | |
TEST_F (ZlibServerFilterTest, MultipleAcceptedEncodingsQvalues) | |
TEST_F (ZlibServerFilterTest, NoCompressibleAcceptedEncodings) | |
TEST_F (ZlibServerFilterTest, MissingAcceptedEncodings) | |
TEST_F (ZlibServerFilterTest, UncompressibleContenttype) | |
TEST_F (ZlibServerFilterTest, UncompressibleContenttypeParam) | |
TEST_F (ZlibServerFilterTest, TooSmallToCompress) | |
TEST_F (ZlibServerFilterTest, SmallChunksCompress) | |
TEST_F (ZlibServerFilterTest, MinimumCompressSizeEqualToRequestSize) | |
TEST_F (ZlibServerFilterTest, NoResponseBody) | |
MATCHER_P | ( | IOBufEquals | , |
expected | , | ||
folly::to< std::string > | "IOBuf is ", negation?"not ":"","'", expected,"'" | ||
) |
TEST_F | ( | ZlibServerFilterTest | , |
NonchunkedCompression | |||
) |
Definition at line 212 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
ChunkedCompression | |||
) |
Definition at line 224 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, chunks, and string.
TEST_F | ( | ZlibServerFilterTest | , |
ParameterizedContenttype | |||
) |
Definition at line 237 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
MixedcaseContenttype | |||
) |
Definition at line 249 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
MultipleAcceptedEncodings | |||
) |
Definition at line 262 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
MultipleAcceptedEncodingsQvalues | |||
) |
Definition at line 274 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
NoCompressibleAcceptedEncodings | |||
) |
Definition at line 286 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
MissingAcceptedEncodings | |||
) |
Definition at line 298 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
UncompressibleContenttype | |||
) |
Definition at line 311 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
UncompressibleContenttypeParam | |||
) |
Definition at line 323 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
TooSmallToCompress | |||
) |
Definition at line 336 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
SmallChunksCompress | |||
) |
Definition at line 350 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, chunks, and string.
TEST_F | ( | ZlibServerFilterTest | , |
MinimumCompressSizeEqualToRequestSize | |||
) |
Definition at line 367 of file ZlibServerFilterTest.cpp.
References ASSERT_NO_FATAL_FAILURE, folly::IOBuf::copyBuffer(), and string.
TEST_F | ( | ZlibServerFilterTest | , |
NoResponseBody | |||
) |
Definition at line 382 of file ZlibServerFilterTest.cpp.
References testing::_, ASSERT_NO_FATAL_FAILURE, proxygen::HTTPMessage::checkForHeaderToken(), testing::DoAll(), EXPECT_CALL, EXPECT_FALSE, EXPECT_TRUE, folly::pushmi::operators::filter, proxygen::HTTPMessage::getHeaders(), proxygen::HTTPMessage::getIsChunked(), proxygen::ResponseBuilder::header(), proxygen::HTTP_HEADER_ACCEPT_ENCODING, proxygen::HTTP_HEADER_CONTENT_ENCODING, proxygen::HTTP_HEADER_CONTENT_TYPE, int32_t, testing::Invoke(), testing::Return(), proxygen::ResponseBuilder::send(), proxygen::ResponseBuilder::sendWithEOM(), proxygen::HTTPHeaders::set(), proxygen::HTTPMessage::setURL(), proxygen::ResponseBuilder::status(), string, and uint32_t.