Add a simple buffered stream with no sync

This commit is contained in:
Victor Zverovich
2020-06-28 06:34:28 -07:00
parent ba363b3a24
commit f69b6eaabd
3 changed files with 81 additions and 2 deletions
+2 -1
View File
@@ -141,7 +141,8 @@ class SuppressAssert {
std::string read(fmt::file& f, size_t count);
# define EXPECT_READ(file, expected_content) \
EXPECT_EQ(expected_content, read(file, std::strlen(expected_content)))
EXPECT_EQ(expected_content, \
read(file, fmt::string_view(expected_content).size()))
#else
# define EXPECT_WRITE(file, statement, expected_output) SUCCEED()