File tree 2 files changed +20
-3
lines changed
2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,7 @@ check_PROGRAMS = \
71
71
tablefind_test \
72
72
tablerecog_test \
73
73
tabvector_test \
74
+ tfile_test \
74
75
tesseracttests
75
76
76
77
TESTS = $(check_PROGRAMS )
@@ -139,6 +140,9 @@ tablerecog_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
139
140
tabvector_test_SOURCES = tabvector_test.cc
140
141
tabvector_test_LDADD = $(GTEST_LIBS ) $(TESS_LIBS )
141
142
143
+ tfile_test_SOURCES = tfile_test.cc
144
+ tfile_test_LDADD = $(GTEST_LIBS ) $(TESS_LIBS )
145
+
142
146
tesseracttests_SOURCES = ../tests/tesseracttests.cpp
143
147
tesseracttests_LDADD = $(GTEST_LIBS ) $(TESS_LIBS ) $(LEPTONICA_LIBS )
144
148
Original file line number Diff line number Diff line change 1
- #include " tesseract/ccutil/genericvector.h"
2
- #include " tesseract/ccutil/serialis.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 " genericvector.h"
13
+ #include " serialis.h"
14
+
15
+ #include " include_gunit.h"
3
16
4
17
using tesseract::TFile;
5
18
@@ -122,7 +135,7 @@ TEST_F(TfileTest, Serialize) {
122
135
TEST_F (TfileTest, FGets) {
123
136
// This test verifies that Tfile can interleave FGets with binary data.
124
137
MathData m1;
125
- string line_str = " This is a textline with a newline\n " ;
138
+ std:: string line_str = " This is a textline with a newline\n " ;
126
139
m1.Setup ();
127
140
GenericVector<char > data;
128
141
TFile fpw;
You can’t perform that action at this time.
0 commit comments