17#include "pw_preprocessor/compiler.h"
18#include "pw_unit_test/event_handler.h"
22#define PW_UNIT_TEST_GOOGLETEST_RUN_ALL_TESTS_START \
23 "[==========] Running all tests."
24#define PW_UNIT_TEST_GOOGLETEST_RUN_ALL_TESTS_END \
25 "[==========] Done running all tests."
27#define PW_UNIT_TEST_GOOGLETEST_TEST_PROGRAM_START \
28 "[==========] Running %d tests from %d test suite%s."
30#define PW_UNIT_TEST_GOOGLETEST_TEST_PROGRAM_END \
31 "[==========] %d / %d tests from %d test suite%s ran."
33#define PW_UNIT_TEST_GOOGLETEST_ENVIRONMENTS_SETUP_END \
34 "[----------] Global test environments setup."
36#define PW_UNIT_TEST_GOOGLETEST_ENVIRONMENTS_TEAR_DOWN_END \
37 "[----------] Global test environments tear-down."
39#define PW_UNIT_TEST_GOOGLETEST_TEST_SUITE_START \
40 "[----------] %d tests from %s."
42#define PW_UNIT_TEST_GOOGLETEST_TEST_SUITE_END "[----------] %d tests from %s."
44#define PW_UNIT_TEST_GOOGLETEST_PASSED_SUMMARY "[ PASSED ] %d test(s)."
45#define PW_UNIT_TEST_GOOGLETEST_DISABLED_SUMMARY "[ DISABLED ] %d test(s)."
46#define PW_UNIT_TEST_GOOGLETEST_FAILED_SUMMARY "[ FAILED ] %d test(s)."
48#define PW_UNIT_TEST_GOOGLETEST_CASE_START "[ RUN ] %s.%s"
49#define PW_UNIT_TEST_GOOGLETEST_CASE_OK "[ OK ] %s.%s"
50#define PW_UNIT_TEST_GOOGLETEST_CASE_FAILED "[ FAILED ] %s.%s"
51#define PW_UNIT_TEST_GOOGLETEST_CASE_DISABLED "[ DISABLED ] %s.%s"
81 bool verbose()
const {
return verbose_; }
84 virtual void Write(
const char* content) = 0;
Definition: event_handler.h:115
Definition: googletest_style_event_handler.h:61
void TestProgramEnd(const ProgramSummary &program_summary) override
Called after all test activities have ended.
void RunAllTestsStart() override
Called before all tests are run.
void TestSuiteStart(const TestSuite &test_suite) override
Called before the test suite starts.
void TestSuiteEnd(const TestSuite &test_suite) override
Called after the test suite ends.
void EnvironmentsSetUpEnd() override
Called after environment setup for each iteration of tests ends.
void EnvironmentsTearDownEnd() override
Called after environment teardown for each iteration of tests ends.
void RunAllTestsEnd(const RunTestsSummary &run_tests_summary) override
Called after all tests are run.
void TestCaseExpect(const TestCase &test_case, const TestExpectation &expectation) override
void TestProgramStart(const ProgramSummary &program_summary) override
Called before any test activity starts.
void TestCaseStart(const TestCase &test_case) override
Called when a new test case is started.
void TestCaseEnd(const TestCase &test_case, TestResult result) override
void TestCaseDisabled(const TestCase &test_case) override
Called when a disabled test case is encountered.
#define PW_PRINTF_FORMAT(format_index, parameter_index)
Definition: compiler.h:86
Provides basic helpers for reading and writing UTF-8 encoded strings.
Definition: alignment.h:27
Definition: event_handler.h:66
Definition: event_handler.h:52
Definition: event_handler.h:27
Definition: event_handler.h:38
Definition: event_handler.h:77