tesseract
v5.3.3.20231005
cleanapi_test.cc
Go to the documentation of this file.
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 <
tesseract/baseapi.h
>
13
14
// Dummy enum in the global namespace that checks for collision with awkward
15
// names.
16
// If this test fails to compile, clean up the includes in tesseract/baseapi.h!
17
// They are not supposed to drag in definitions of any of the tesseract
18
// types included in this enum!
19
enum
NameTester
{
ABORT
,
OKAY
,
LOG
,
BLOB
,
ELIST
,
TBOX
,
TPOINT
,
WORD
};
20
21
#include "
gtest/gtest.h
"
22
23
namespace
tesseract
{
24
25
// Verifies that the global namespace is clean.
26
TEST
(CleanNamespaceTess, DummyTest) {
27
tesseract::TessBaseAPI
api;
28
}
29
30
}
// namespace tesseract
baseapi.h
NameTester
NameTester
Definition:
cleanapi_test.cc:19
BLOB
@ BLOB
Definition:
cleanapi_test.cc:19
WORD
@ WORD
Definition:
cleanapi_test.cc:19
TBOX
@ TBOX
Definition:
cleanapi_test.cc:19
ABORT
@ ABORT
Definition:
cleanapi_test.cc:19
OKAY
@ OKAY
Definition:
cleanapi_test.cc:19
ELIST
@ ELIST
Definition:
cleanapi_test.cc:19
TPOINT
@ TPOINT
Definition:
cleanapi_test.cc:19
LOG
@ LOG
Definition:
cleanapi_test.cc:19
gtest.h
tesseract
Definition:
baseapi.h:39
tesseract::TEST
TEST(TesseractInstanceTest, TestMultipleTessInstances)
Definition:
baseapi_test.cc:313
tesseract::TessBaseAPI
Definition:
baseapi.h:76
unittest
cleanapi_test.cc
Generated on Thu Oct 5 2023 22:10:27 for tesseract by
1.9.4