proxygen
|
Classes | |
class | AutomaticCodecTest |
class | CompressionCorruptionTest |
class | CompressionTest |
class | CompressionVarintTest |
class | ConstantDataHolder |
class | DataHolder |
class | RandomDataHolder |
class | StreamingCompressionTest |
class | StreamingUnitTest |
class | TerminalCodecTest |
Variables | |
constexpr size_t | dataSizeLog2 = 27 |
RandomDataHolder | randomDataHolder (dataSizeLog2) |
ConstantDataHolder | constantDataHolder (dataSizeLog2) |
|
static |
Definition at line 144 of file CompressionTest.cpp.
References folly::io::hasCodec(), i, folly::io::NUM_CODEC_TYPES, and type.
Referenced by TEST_P().
|
static |
Definition at line 157 of file CompressionTest.cpp.
References folly::io::hasStreamCodec(), i, folly::io::NUM_CODEC_TYPES, and type.
Referenced by TEST_P().
|
static |
Definition at line 462 of file CompressionTest.cpp.
References folly::io::BZIP2.
Referenced by folly::io::test::StreamingUnitTest::hasFlush(), and folly::io::test::StreamingCompressionTest::hasFlush().
|
static |
Definition at line 819 of file CompressionTest.cpp.
References folly::IOBufQueue::append(), buffer(), folly::io::StreamCodec::compressStream(), folly::IOBuf::create(), folly::Range< Iter >::empty(), EXPECT_TRUE, folly::IOBufQueue::move(), folly::gen::move, folly::io::StreamCodec::NONE, and gmock_output_test::output.
Referenced by folly::io::test::StreamingCompressionTest::runCompressStreamTest(), folly::io::test::StreamingCompressionTest::runFlushTest(), and folly::io::test::StreamingCompressionTest::runResetStreamTest().
Definition at line 83 of file CompressionTest.cpp.
References folly::hash::fnv64_buf(), folly::hash::FNV_64_HASH_START, h, folly::range(), and uint64_t.
Referenced by folly::io::test::StreamingCompressionTest::runCompressStreamTest(), folly::io::test::StreamingCompressionTest::runFlushTest(), folly::io::test::StreamingCompressionTest::runResetStreamTest(), folly::io::test::CompressionTest::runSimpleIOBufTest(), folly::io::test::CompressionVarintTest::runSimpleTest(), folly::io::test::CompressionCorruptionTest::runSimpleTest(), folly::io::test::AutomaticCodecTest::runSimpleTest(), folly::io::test::StreamingCompressionTest::runUncompressStreamTest(), and TEST_P().
folly::io::test::INSTANTIATE_TEST_CASE_P | ( | CompressionTest | , |
CompressionTest | , | ||
testing::Combine(testing::Values(-1, 0, 1, 12, 22, 25, 27), testing::Values(1, 2, 3, 8, 65), testing::ValuesIn(availableCodecs())) | |||
) |
folly::io::test::INSTANTIATE_TEST_CASE_P | ( | CompressionVarintTest | , |
CompressionVarintTest | , | ||
testing::Combine(testing::Values(0, 1, 12, 22, 25, 27), testing::ValuesIn(supportedCodecs({CodecType::LZ4_VARINT_SIZE, CodecType::LZMA2_VARINT_SIZE,}))) | |||
) |
folly::io::test::INSTANTIATE_TEST_CASE_P | ( | CompressionCorruptionTest | , |
CompressionCorruptionTest | , | ||
testing::ValuesIn(supportedCodecs({CodecType::SNAPPY, CodecType::ZLIB, CodecType::LZMA2, CodecType::ZSTD, CodecType::LZ4_FRAME, CodecType::BZIP2,})) | |||
) |
folly::io::test::INSTANTIATE_TEST_CASE_P | ( | StreamingUnitTest | , |
StreamingUnitTest | , | ||
testing::ValuesIn(availableStreamCodecs()) | |||
) |
folly::io::test::INSTANTIATE_TEST_CASE_P | ( | StreamingCompressionTest | , |
StreamingCompressionTest | , | ||
testing::Combine(testing::Values(0, 1, 12, 22, 27), testing::Values(12, 17, 20), testing::ValuesIn(availableStreamCodecs())) | |||
) |
folly::io::test::INSTANTIATE_TEST_CASE_P | ( | AutomaticCodecTest | , |
AutomaticCodecTest | , | ||
testing::ValuesIn(availableCodecs()) | |||
) |
folly::io::test::INSTANTIATE_TEST_CASE_P | ( | TerminalCodecTest | , |
TerminalCodecTest | , | ||
testing::ValuesIn(autoUncompressionCodecTypes) | |||
) |
Definition at line 325 of file CompressionTest.cpp.
References uint64_t.
Referenced by folly::io::test::CompressionVarintTest::runSimpleTest().
|
static |
Definition at line 134 of file CompressionTest.cpp.
References folly::test::begin(), folly::test::end(), and folly::io::hasCodec().
Referenced by TEST_P().
folly::io::test::TEST | ( | CompressionTestNeedsUncompressedLength | , |
Simple | |||
) |
Definition at line 170 of file CompressionTest.cpp.
References folly::io::BZIP2, EXPECT_EQ, folly::io::getCodec(), folly::io::GZIP, folly::io::hasCodec(), folly::io::LZ4, folly::io::LZ4_FRAME, folly::io::LZ4_VARINT_SIZE, folly::io::LZMA2, folly::io::LZMA2_VARINT_SIZE, folly::io::NO_COMPRESSION, folly::io::SNAPPY, type, folly::io::ZLIB, and folly::io::ZSTD.
Referenced by TEST().
folly::io::test::TEST | ( | LZMATest | , |
UncompressBadVarint | |||
) |
Definition at line 369 of file CompressionTest.cpp.
References buffer(), codec, folly::IOBuf::create(), EXPECT_THROW, folly::io::getStreamCodec(), folly::io::hasStreamCodec(), folly::kMaxVarintLength64, folly::io::LZMA2_VARINT_SIZE, gmock_output_test::output, and string.
folly::io::test::TEST | ( | StreamingUnitTest | , |
needsDataLength | |||
) |
Definition at line 479 of file CompressionTest.cpp.
References EXPECT_EQ, folly::io::getStreamCodec(), folly::io::GZIP, folly::io::hasStreamCodec(), folly::io::LZMA2, folly::io::LZMA2_VARINT_SIZE, type, folly::io::ZLIB, and folly::io::ZSTD.
folly::io::test::TEST | ( | ValidPrefixesTest | , |
CustomCodec | |||
) |
Definition at line 1325 of file CompressionTest.cpp.
References EXPECT_TRUE, folly::io::getAutoUncompressionCodec(), folly::gen::move, folly::io::NO_COMPRESSION, and folly::none.
folly::io::test::TEST | ( | CheckCompatibleTest | , |
SimplePrefixSecond | |||
) |
Definition at line 1343 of file CompressionTest.cpp.
References EXPECT_THROW_IF_DEBUG, folly::io::getAutoUncompressionCodec(), folly::gen::move, and folly::io::NO_COMPRESSION.
folly::io::test::TEST | ( | CheckCompatibleTest | , |
SimplePrefixFirst | |||
) |
Definition at line 1351 of file CompressionTest.cpp.
References EXPECT_THROW_IF_DEBUG, folly::io::getAutoUncompressionCodec(), folly::gen::move, and folly::io::NO_COMPRESSION.
folly::io::test::TEST | ( | CheckCompatibleTest | , |
Empty | |||
) |
Definition at line 1359 of file CompressionTest.cpp.
References EXPECT_THROW_IF_DEBUG, folly::io::getAutoUncompressionCodec(), folly::gen::move, and folly::io::NO_COMPRESSION.
folly::io::test::TEST | ( | CheckCompatibleTest | , |
ZstdPrefix | |||
) |
Definition at line 1366 of file CompressionTest.cpp.
References EXPECT_THROW_IF_DEBUG, folly::io::getAutoUncompressionCodec(), folly::gen::move, and folly::io::ZSTD.
folly::io::test::TEST | ( | CheckCompatibleTest | , |
ZstdDuplicate | |||
) |
Definition at line 1373 of file CompressionTest.cpp.
References EXPECT_THROW_IF_DEBUG, folly::io::getAutoUncompressionCodec(), folly::gen::move, and folly::io::ZSTD.
folly::io::test::TEST | ( | CheckCompatibleTest | , |
ZlibIsPrefix | |||
) |
Definition at line 1380 of file CompressionTest.cpp.
References codec, codec_, constantDataHolder, folly::io::test::DataHolder::data(), folly::Range< Iter >::data(), EXPECT_EQ, EXPECT_GT, EXPECT_THROW_IF_DEBUG, folly::io::getAutoUncompressionCodec(), folly::io::getCodec(), folly::io::getStreamCodec(), folly::io::GZIP, INSTANTIATE_TEST_CASE_P(), folly::gen::move, randomDataHolder, string, TEST(), test(), TEST_P(), folly::IOBuf::wrapBuffer(), folly::io::ZLIB, and folly::io::ZSTD.
folly::io::test::TEST_P | ( | CompressionTest | , |
RandomData | |||
) |
Definition at line 286 of file CompressionTest.cpp.
References randomDataHolder.
Referenced by TEST().
folly::io::test::TEST_P | ( | CompressionTest | , |
ConstantData | |||
) |
Definition at line 290 of file CompressionTest.cpp.
References constantDataHolder.
folly::io::test::TEST_P | ( | CompressionTest | , |
RandomDataString | |||
) |
Definition at line 294 of file CompressionTest.cpp.
References randomDataHolder.
folly::io::test::TEST_P | ( | CompressionTest | , |
ConstantDataString | |||
) |
Definition at line 298 of file CompressionTest.cpp.
References availableCodecs(), constantDataHolder, and INSTANTIATE_TEST_CASE_P().
folly::io::test::TEST_P | ( | CompressionVarintTest | , |
RandomData | |||
) |
Definition at line 351 of file CompressionTest.cpp.
References randomDataHolder.
folly::io::test::TEST_P | ( | CompressionVarintTest | , |
ConstantData | |||
) |
Definition at line 355 of file CompressionTest.cpp.
References constantDataHolder, INSTANTIATE_TEST_CASE_P(), folly::io::LZ4_VARINT_SIZE, folly::io::LZMA2_VARINT_SIZE, and supportedCodecs().
folly::io::test::TEST_P | ( | CompressionCorruptionTest | , |
RandomData | |||
) |
Definition at line 439 of file CompressionTest.cpp.
References randomDataHolder.
folly::io::test::TEST_P | ( | CompressionCorruptionTest | , |
ConstantData | |||
) |
Definition at line 443 of file CompressionTest.cpp.
References folly::io::BZIP2, constantDataHolder, INSTANTIATE_TEST_CASE_P(), folly::io::LZ4_FRAME, folly::io::LZMA2, folly::io::SNAPPY, supportedCodecs(), folly::io::ZLIB, and folly::io::ZSTD.
folly::io::test::TEST_P | ( | StreamingUnitTest | , |
maxCompressedLength | |||
) |
folly::io::test::TEST_P | ( | StreamingUnitTest | , |
getUncompressedLength | |||
) |
Definition at line 505 of file CompressionTest.cpp.
References codec_, folly::IOBuf::create(), folly::io::test::DataHolder::data(), folly::empty(), EXPECT_ANY_THROW, EXPECT_EQ, randomDataHolder, uint64_t, and folly::IOBuf::wrapBuffer().
folly::io::test::TEST_P | ( | StreamingUnitTest | , |
emptyData | |||
) |
Definition at line 525 of file CompressionTest.cpp.
References buffer(), codec_, folly::IOBuf::copyBuffer(), folly::IOBuf::create(), folly::io::StreamCodec::END, EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::io::StreamCodec::FLUSH, gmock_output_test::output, and folly::Range< Iter >::size().
folly::io::test::TEST_P | ( | StreamingUnitTest | , |
noForwardProgress | |||
) |
Definition at line 594 of file CompressionTest.cpp.
References codec_, folly::IOBuf::create(), folly::io::StreamCodec::END, EXPECT_FALSE, EXPECT_THROW, folly::io::StreamCodec::FLUSH, folly::io::StreamCodec::NONE, and gmock_output_test::output.
folly::io::test::TEST_P | ( | StreamingUnitTest | , |
stateTransitions | |||
) |
Definition at line 657 of file CompressionTest.cpp.
References availableStreamCodecs(), codec_, folly::IOBuf::create(), folly::empty(), folly::io::StreamCodec::END, folly::symbolizer::test::expect(), EXPECT_FALSE, EXPECT_THROW, EXPECT_TRUE, folly::io::StreamCodec::FLUSH, INSTANTIATE_TEST_CASE_P(), folly::io::StreamCodec::NONE, gmock_output_test::output, and folly::Range< Iter >::size().
folly::io::test::TEST_P | ( | StreamingCompressionTest | , |
resetStream | |||
) |
Definition at line 877 of file CompressionTest.cpp.
References constantDataHolder, and randomDataHolder.
folly::io::test::TEST_P | ( | StreamingCompressionTest | , |
compressStream | |||
) |
Definition at line 902 of file CompressionTest.cpp.
References constantDataHolder, and randomDataHolder.
folly::io::test::TEST_P | ( | StreamingCompressionTest | , |
uncompressStream | |||
) |
Definition at line 943 of file CompressionTest.cpp.
References constantDataHolder, and randomDataHolder.
folly::io::test::TEST_P | ( | StreamingCompressionTest | , |
testFlush | |||
) |
Definition at line 979 of file CompressionTest.cpp.
References availableStreamCodecs(), folly::io::BZIP2, constantDataHolder, folly::io::GZIP, INSTANTIATE_TEST_CASE_P(), folly::io::LZ4_FRAME, folly::io::LZMA2, randomDataHolder, folly::io::ZLIB, and folly::io::ZSTD.
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
RandomData | |||
) |
Definition at line 1065 of file CompressionTest.cpp.
References randomDataHolder.
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
ConstantData | |||
) |
Definition at line 1069 of file CompressionTest.cpp.
References constantDataHolder.
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
ValidPrefixes | |||
) |
Definition at line 1073 of file CompressionTest.cpp.
References codec_, folly::IOBuf::COPY_BUFFER, folly::io::test::DataHolder::data(), EXPECT_FALSE, EXPECT_TRUE, and prefix().
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
NeedsUncompressedLength | |||
) |
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
maxUncompressedLength | |||
) |
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
DefaultCodec | |||
) |
Definition at line 1096 of file CompressionTest.cpp.
References folly::IOBuf::cloneCoalescedAsValue(), codec_, folly::IOBuf::computeChainDataLength(), constantDataHolder, folly::IOBuf::copyBuffer(), folly::io::test::DataHolder::data(), EXPECT_EQ, EXPECT_TRUE, folly::io::getAutoUncompressionCodec(), folly::io::getCodec(), folly::io::test::DataHolder::hash(), hashIOBuf(), folly::gen::move, prefix(), prefix_, string, folly::IOBuf::trimStart(), type, uint64_t, folly::io::USER_DEFINED, folly::IOBuf::wrapBuffer(), and folly::io::ZSTD.
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
CustomCodec | |||
) |
Definition at line 1164 of file CompressionTest.cpp.
References codec_, constantDataHolder, folly::io::test::DataHolder::data(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::io::getAutoUncompressionCodec(), folly::io::test::DataHolder::hash(), hashIOBuf(), folly::gen::move, uint64_t, folly::IOBuf::wrapBuffer(), and folly::io::ZSTD.
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
CustomDefaultCodec | |||
) |
Definition at line 1194 of file CompressionTest.cpp.
References codec_, constantDataHolder, folly::io::test::DataHolder::data(), EXPECT_EQ, EXPECT_FALSE, EXPECT_TRUE, folly::io::getAutoUncompressionCodec(), folly::io::getCodec(), folly::io::test::DataHolder::hash(), hashIOBuf(), folly::io::LZ4_FRAME, folly::gen::move, folly::io::NO_COMPRESSION, folly::none, uint64_t, and folly::IOBuf::wrapBuffer().
folly::io::test::TEST_P | ( | AutomaticCodecTest | , |
canUncompressOneBytes | |||
) |
Definition at line 1225 of file CompressionTest.cpp.
References availableCodecs(), codec_, folly::IOBuf::copyBuffer(), folly::IOBuf::CREATE, EXPECT_FALSE, INSTANTIATE_TEST_CASE_P(), folly::gen::move, folly::none, string, type, uint64_t, and uncompressed_.
folly::io::test::TEST_P | ( | TerminalCodecTest | , |
uncompressIfDefaultThrows | |||
) |
Definition at line 1288 of file CompressionTest.cpp.
References codec_, EXPECT_ANY_THROW, EXPECT_EQ, EXPECT_TRUE, folly::io::getAutoUncompressionCodec(), string, folly::io::USER_DEFINED, and folly::IOBuf::wrapBuffer().
folly::io::test::TEST_P | ( | TerminalCodecTest | , |
terminalOverridesDefaults | |||
) |
Definition at line 1312 of file CompressionTest.cpp.
References codec_, EXPECT_EQ, folly::io::getAutoUncompressionCodec(), INSTANTIATE_TEST_CASE_P(), and string.
|
static |
Definition at line 840 of file CompressionTest.cpp.
References folly::IOBufQueue::append(), buffer(), folly::IOBuf::create(), folly::IOBufQueue::move(), folly::gen::move, gmock_output_test::output, folly::IOBufQueue::tailroom(), and folly::io::StreamCodec::uncompressStream().
Referenced by folly::io::test::StreamingCompressionTest::runFlushTest(), and folly::io::test::StreamingCompressionTest::runUncompressStreamTest().
ConstantDataHolder folly::io::test::constantDataHolder(dataSizeLog2) |
constexpr size_t folly::io::test::dataSizeLog2 = 27 |
Definition at line 129 of file CompressionTest.cpp.
RandomDataHolder folly::io::test::randomDataHolder(dataSizeLog2) |