#include <googletest_handler_adapter.h>
Public Member Functions | |
GoogleTestHandlerAdapter (EventHandler &handler) | |
void | OnTestProgramStart (const testing::UnitTest &) override |
void | OnEnvironmentsSetUpEnd (const testing::UnitTest &) override |
void | OnTestSuiteStart (const testing::TestSuite &) override |
void | OnTestStart (const testing::TestInfo &) override |
void | OnTestPartResult (const testing::TestPartResult &) override |
void | OnTestEnd (const testing::TestInfo &) override |
void | OnTestSuiteEnd (const testing::TestSuite &) override |
void | OnEnvironmentsTearDownEnd (const testing::UnitTest &unit_test) override |
void | OnTestProgramEnd (const testing::UnitTest &) override |
Adapts a custom main()
function to work with upstream GoogleTest without modification. Custom main()
functions are used for complex testing scenarios, such as on-device testing. Must be paired with a predefined event handler, such as pw::unit_test::GoogleTestStyleEventHandler
. See pw::unit_test::EventHandler
for an explanation of each event.