14 #ifndef SPHINX_TEST_PRINTER_HPP
15 #define SPHINX_TEST_PRINTER_HPP
17 #include <gtest/gtest.h>
30 virtual void OnTestStart(const ::testing::TestInfo& test_info)
32 printf(
"******* Test %s.%s starting.\n",
33 test_info.test_case_name(), test_info.name());
37 virtual void OnTestPartResult(
38 const ::testing::TestPartResult& test_part_result) {
39 printf(
"%s in %s:%d\n%s\n",
40 test_part_result.failed() ?
"******* Failure" :
"Success",
41 test_part_result.file_name(),
42 test_part_result.line_number(),
43 test_part_result.summary());
47 virtual void OnTestEnd(const ::testing::TestInfo& test_info) {
48 printf(
"******* Test %s.%s ending.\n",
49 test_info.test_case_name(), test_info.name());
59 #endif // SPHINX_TEST_PRINTER_HPP