19 #include <glog/logging.h> 29 using namespace folly;
45 FILE* fp = fdopen(fds[1],
"wb");
54 ssize_t n =
readFull(fds[0], buf,
sizeof(buf));
64 " \"hello\": \"world\",\n" 66 " \"y\": {\"a\" : 42}\n" 92 void testFormatSeq() {
104 testFormatSeq<fbvector<int>>();
108 testFormatSeq<small_vector<int, 2>>();
113 gflags::ParseCommandLineFlags(&argc, &argv,
true);
#define EXPECT_THROW(statement, expected_exception)
dynamic parseJson(StringPiece range)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
std::string sformat(StringPiece fmt, Args &&...args)
#define EXPECT_EQ(val1, val2)
ssize_t readFull(int fd, void *buf, size_t count)
—— Concurrent Priority Queue Implementation ——
void writeTo(FILE *fp, const BaseFormatter< Derived, containerMode, Args... > &formatter)
detail::DefaultValueWrapper< Container, Value > defaulted(const Container &c, const Value &v)
std::string svformat(StringPiece fmt, Container &&container)
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
Formatter< false, Args... > format(StringPiece fmt, Args &&...args)
constexpr auto kIsWindows
TEST(SequencedExecutor, CPUThreadPoolExecutor)
GMockOutputTest ExpectedCall FILE
void pipe(CPUExecutor cpu, IOExecutor io)