template<typename test_service_t, char const * component_name, char const * service_name,
mysql_component_t * component_instance>
class TestHarnessSuite_templ< test_service_t, component_name, service_name, component_instance >
Implements a Gmock Test suite class to test a component.
Load the component under test and fetches a reference to it.
It can also load an optional local test harness component, should the component under test require extra services the minimal chassis doesn't provide. Usually the harness is test oriented and mocks the services so that the test can run.
- Parameters
-
test_service_t | The service type of the service to test |
component_name | The name of the component to load, or nullptr to avoid loading extra components |
service_name | The name of the service to instantiate, or nullptr to avoid fetching service refs |
component_instance | The instance of the test harness component to load with the minchassis, or nullptr if none |
- See also
- Component unit testing using the minimal chasiss.