More tests.

This commit is contained in:
Victor Zverovich
2014-06-10 06:21:41 -07:00
parent ed19147441
commit 546b62e74f
4 changed files with 39 additions and 16 deletions
-12
View File
@@ -29,7 +29,6 @@
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdarg>
#include <cstring>
#include <fstream>
#include <iomanip>
@@ -109,17 +108,6 @@ struct WriteChecker {
#define CHECK_WRITE_WCHAR(value) \
EXPECT_PRED_FORMAT1(WriteChecker<wchar_t>(), value)
#ifdef _MSC_VER
# define vsnprintf vsprintf_s
#endif
void SPrintf(char *buffer, const char *format, ...) {
std::va_list args;
va_start(args, format);
vsnprintf(buffer, BUFFER_SIZE, format, args);
va_end(args);
}
std::string ReadFile(StringRef filename) {
std::ifstream out(filename.c_str());
std::stringstream content;