19 #include <glog/logging.h> 26 namespace symbolizer {
32 ssize_t n = strlen(str);
38 size_t expectedLen = strlen(expected);
53 "This is a long line. It is longer than the other lines.\n" 55 "Incomplete last line");
58 CHECK_ERR(lseek(fd, 0, SEEK_SET));
77 CHECK_ERR(lseek(fd, 0, SEEK_SET));
81 expect(lr,
"Hello world\n");
82 expect(lr,
"This is a long line. It is longer than the other lines.\n");
84 expect(lr,
"Incomplete last line");
#define EXPECT_EQ(val1, val2)
constexpr size_type size() const
—— Concurrent Priority Queue Implementation ——
State readLine(StringPiece &line)
void writeAll(int fd, const char *str)
ssize_t writeFull(int fd, const void *buf, size_t count)
void expect(LineReader &lr, const char *expected)