mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2025-06-11 12:43:17 +08:00
unittest: Fix and enable cleanapi_test
Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
parent
0dc5c8ef3f
commit
68db6aa5df
@ -53,6 +53,7 @@ AM_CPPFLAGS += -isystem $(top_srcdir)/googletest/googletest/include \
|
||||
check_PROGRAMS = \
|
||||
apiexample_test \
|
||||
bitvector_test \
|
||||
cleanapi_test \
|
||||
progress_test \
|
||||
intsimdmatrix_test \
|
||||
matrix_test \
|
||||
@ -71,6 +72,9 @@ apiexample_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
|
||||
bitvector_test_SOURCES = bitvector_test.cc
|
||||
bitvector_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
|
||||
|
||||
cleanapi_test_SOURCES = cleanapi_test.cc
|
||||
cleanapi_test_LDADD = $(GTEST_LIBS) $(TESS_LIBS)
|
||||
|
||||
progress_test_SOURCES = progress_test.cc
|
||||
progress_test_LDFLAGS = $(OPENCL_LDFLAGS) $(LEPTONICA_LIBS)
|
||||
progress_test_LDADD = $(GTEST_LIBS) $(GMOCK_LIBS) $(TESS_LIBS) $(LEPTONICA_LIBS)
|
||||
|
@ -1,6 +1,15 @@
|
||||
//
|
||||
// (C) Copyright 2017, Google Inc.
|
||||
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||
// you may not use this file except in compliance with the License.
|
||||
// You may obtain a copy of the License at
|
||||
// http://www.apache.org/licenses/LICENSE-2.0
|
||||
// Unless required by applicable law or agreed to in writing, software
|
||||
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
// See the License for the specific language governing permissions and
|
||||
// limitations under the License.
|
||||
|
||||
#include "tesseract/api/baseapi.h"
|
||||
#include "baseapi.h"
|
||||
|
||||
// Dummy enum in the global namespace that checks for collision with awkward
|
||||
// names.
|
||||
@ -18,6 +27,9 @@ enum NameTester {
|
||||
WORD
|
||||
};
|
||||
|
||||
#define ERRCODE_H // avoid redefinition of ABORT in errcode.h
|
||||
#include "include_gunit.h"
|
||||
|
||||
namespace {
|
||||
|
||||
// Verifies that the global namespace is clean.
|
||||
@ -26,4 +38,3 @@ TEST(CleanNamespaceTess, DummyTest) {
|
||||
}
|
||||
|
||||
} // namespace.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user