Move posix tests from gtest-extra-test to a separate test

This commit is contained in:
vitaut
2015-06-24 09:16:03 -07:00
parent 9769f4b9ed
commit 0a7e5141c1
8 changed files with 455 additions and 404 deletions

View File

@ -29,6 +29,8 @@
#include <cstdio>
#include <string>
#include "posix.h"
enum {BUFFER_SIZE = 256};
#ifdef _MSC_VER
@ -49,3 +51,8 @@ void safe_sprintf(char (&buffer)[SIZE], const char *format, ...) {
void increment(char *s);
std::string get_system_error(int error_code);
extern const char FILE_CONTENT[];
// Opens a buffered file for reading.
fmt::BufferedFile open_buffered_file(FILE **fp = 0);