File tree 3 files changed +21
-13
lines changed
3 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ check_PROGRAMS = \
67
67
osd_test \
68
68
progress_test \
69
69
rect_test \
70
+ stats_test \
70
71
tesseracttests
71
72
72
73
TESTS = $(check_PROGRAMS )
@@ -123,6 +124,9 @@ progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
123
124
rect_test_SOURCES = rect_test.cc
124
125
rect_test_LDADD = $(GTEST_LIBS ) $(TESS_LIBS )
125
126
127
+ stats_test_SOURCES = stats_test.cc
128
+ stats_test_LDADD = $(GTEST_LIBS ) $(TESS_LIBS )
129
+
126
130
tesseracttests_SOURCES = ../tests/tesseracttests.cpp
127
131
tesseracttests_LDADD = $(GTEST_LIBS ) $(TESS_LIBS ) $(LEPTONICA_LIBS )
128
132
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ const char* FLAGS_test_tmpdir = ".";
22
22
class file : public tesseract ::File {
23
23
};
24
24
25
+ #define ABSL_ARRAYSIZE (arr ) (sizeof (arr) / sizeof (arr[0 ]))
25
26
#define ARRAYSIZE (arr ) (sizeof (arr) / sizeof (arr[0 ]))
26
27
#define CHECK (test ) ASSERT_HOST(test)
27
28
Original file line number Diff line number Diff line change 1
-
2
- #include " tesseract/ccstruct/statistc.h"
3
- #include " tesseract/ccutil/genericvector.h"
4
- #include " tesseract/ccutil/kdpair.h"
1
+ // (C) Copyright 2017, Google Inc.
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ // http://www.apache.org/licenses/LICENSE-2.0
6
+ // Unless required by applicable law or agreed to in writing, software
7
+ // distributed under the License is distributed on an "AS IS" BASIS,
8
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
9
+ // See the License for the specific language governing permissions and
10
+ // limitations under the License.
11
+
12
+ #include " statistc.h"
13
+ #include " genericvector.h"
14
+ #include " kdpair.h"
15
+
16
+ #include " include_gunit.h"
5
17
6
18
namespace {
7
19
@@ -45,12 +57,3 @@ TEST_F(STATSTest, TopNModes) {
45
57
}
46
58
47
59
} // namespace.
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
You can’t perform that action at this time.
0 commit comments