tesseract
4.0.0-beta.1-59-g2cc4
log.h
Go to the documentation of this file.
1
// File: log.h
3
// Description: Include for custom log message for unittest for tesseract.
4
// based on //https://stackoverflow.com/questions/16491675/how-to-send-custom-message-in-google-c-testing-framework
5
//
6
// Licensed under the Apache License, Version 2.0 (the "License");
7
// you may not use this file except in compliance with the License.
8
// You may obtain a copy of the License at
9
// http://www.apache.org/licenses/LICENSE-2.0
10
// Unless required by applicable law or agreed to in writing, software
11
// distributed under the License is distributed on an "AS IS" BASIS,
12
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
// See the License for the specific language governing permissions and
14
// limitations under the License.
16
#ifndef TESSERACT_UNITTEST_LOG_H_
17
#define TESSERACT_UNITTEST_LOG_H_
18
19
#include <iostream>
20
21
static
class
LOG {
public
: LOG() {}
22
std::ostream& info() {
23
std::cout <<
"[ LOG MSG ] "
;
24
return
std::cout;
25
}
26
} log;
27
28
#endif // TESSERACT_UNITTEST_LOG_H_
unittest
log.h
Generated on Wed Mar 28 2018 20:00:38 for tesseract by
1.8.13