We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b65b4af commit db07a69Copy full SHA for db07a69
unittest/include_gunit.h
@@ -19,10 +19,23 @@
19
20
const char* FLAGS_test_tmpdir = ".";
21
22
-class file : public tesseract::File {};
+class file : public tesseract::File {
23
+public:
24
+ static bool GetContents(const std::string& filename, std::string* out, int) {
25
+ return File::ReadFileToString(filename, out);
26
+ }
27
28
+ static int Defaults() {
29
+ return 0;
30
31
+};
32
+
33
+#if !defined(ABSL_ARRAYSIZE)
34
#define ABSL_ARRAYSIZE(arr) (sizeof(arr) / sizeof(arr[0]))
35
+#endif
36
#define ARRAYSIZE(arr) (sizeof(arr) / sizeof(arr[0]))
37
#define CHECK(test) ASSERT_HOST(test)
38
+#define CHECK_GT(test, value) ASSERT_HOST((test) > (value))
39
+#define CHECK_OK(test) ASSERT_HOST(test)
40
41
#endif // TESSERACT_UNITTEST_INCLUDE_GUNIT_H_
0 commit comments