Pigweed
C/C++ API Reference
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions | List of all members
pw::unit_test::GoogleTestHandlerAdapter Class Reference
Inheritance diagram for pw::unit_test::GoogleTestHandlerAdapter:

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
 

Detailed Description

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.


The documentation for this class was generated from the following file: