tesseract
5.0.0-alpha-619-ge9db
|
Go to the documentation of this file.
13 #ifndef TESSERACT_UNITTEST_INCLUDE_GUNIT_H_
14 #define TESSERACT_UNITTEST_INCLUDE_GUNIT_H_
18 #include "gtest/gtest.h"
27 File::WriteStringToFileOrDie(contents, filename);
32 return File::ReadFileToString(filename, out);
53 #define ARRAYSIZE(arr) (sizeof(arr) / sizeof(arr[0]))
57 #define CHECK(test) ASSERT_HOST(test)
58 #define CHECK_EQ(test, value) CHECK((test) == (value))
59 #define CHECK_GT(test, value) CHECK((test) > (value))
60 #define CHECK_LT(test, value) CHECK((test) < (value))
61 #define CHECK_LE(test, value) CHECK((test) <= (value))
62 #define CHECK_OK(test) CHECK(test)
65 #endif // TESSERACT_UNITTEST_INCLUDE_GUNIT_H_
static std::string JoinPath(const std::string &s1, const std::string &s2)
static std::string JoinPath(const std::string &s1, const std::string &s2, const std::string &s3)
static bool GetContents(const std::string &filename, std::string *out, int)
static std::string JoinPath(const std::string &prefix, const std::string &suffix)
static bool SetContents(const std::string &name, const std::string &contents, bool)
const char * FLAGS_test_tmpdir
static bool WriteStringToFile(const std::string &contents, const std::string &filename)