tesseract  5.0.0-alpha-619-ge9db
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!
20 
21 #define ERRCODE_H // avoid redefinition of ABORT in errcode.h
22 #include "include_gunit.h"
23 
24 namespace {
25 
26 // Verifies that the global namespace is clean.
27 TEST(CleanNamespaceTess, DummyTest) { tesseract::TessBaseAPI api; }
28 
29 } // namespace.
TBOX
Definition: cleanapi_test.cc:19
BLOB
Definition: cleanapi_test.cc:19
include_gunit.h
OKAY
Definition: cleanapi_test.cc:19
baseapi.h
ELIST
Definition: cleanapi_test.cc:19
tesseract::TessBaseAPI
Definition: baseapi.h:98
WORD
Definition: cleanapi_test.cc:19
TPOINT
Definition: cleanapi_test.cc:19
ABORT
Definition: cleanapi_test.cc:19
LOG
Definition: cleanapi_test.cc:19
NameTester
NameTester
Definition: cleanapi_test.cc:19