9 #include <gmock/gmock.h> 10 #include <gtest/gtest.h> 17 using namespace folly;
54 detail::writeBuf<detail::bits24>(buf, appender);
55 EXPECT_EQ(buf->length() + 3, out->computeChainDataLength());
65 detail::writeBuf<detail::bits24>(buf, appender), std::runtime_error);
74 detail::writeBuf<uint16_t>(buf, appender1);
75 EXPECT_EQ(2 + buf->length(), out1->computeChainDataLength());
79 detail::writeBuf<uint64_t>(buf, appender2);
80 EXPECT_EQ(8 + buf->length(), out2->computeChainDataLength());
#define EXPECT_THROW(statement, expected_exception)
static std::unique_ptr< IOBuf > create(std::size_t capacity)
#define EXPECT_EQ(val1, val2)
—— Concurrent Priority Queue Implementation ——
testing::Types< PerfectIndexMapTestsTemplateParams< HTTPHeaderCode, HTTP_HEADER_OTHER, HTTP_HEADER_NONE, HTTPCommonHeaders::hash, false, true, HTTPHeaderCodeCommonOffset, HTTPCommonHeaders::num_header_codes >, PerfectIndexMapTestsTemplateParams< HTTPHeaderCode, HTTP_HEADER_OTHER, HTTP_HEADER_NONE, HTTPCommonHeaders::hash, true, true, HTTPHeaderCodeCommonOffset, HTTPCommonHeaders::num_header_codes >, PerfectIndexMapTestsTemplateParams< HTTPHeaderCode, HTTP_HEADER_OTHER, HTTP_HEADER_NONE, HTTPCommonHeaders::hash, true, false, HTTPHeaderCodeCommonOffset, HTTPCommonHeaders::num_header_codes >, PerfectIndexMapTestsTemplateParams< HTTPHeaderCode, HTTP_HEADER_OTHER, HTTP_HEADER_NONE, HTTPCommonHeaders::hash, false, false, HTTPHeaderCodeCommonOffset, HTTPCommonHeaders::num_header_codes > > TestTypes
void writeBits24(T len, folly::io::Appender &out)
uint32_t readBits24(folly::io::Cursor &cursor)
const internal::AnythingMatcher _
TEST(SequencedExecutor, CPUThreadPoolExecutor)