iodrivers_base
Public Member Functions | Public Attributes | List of all members
iodrivers_base::Fixture< Driver >::GTestMockContext Class Reference

#include <FixtureGTest.hpp>

Public Member Functions

 GTestMockContext (Fixture *fixture)
 
void tearDown ()
 
 ~GTestMockContext ()
 

Public Attributes

Fixturefixture
 

Constructor & Destructor Documentation

◆ GTestMockContext()

template<typename Driver >
iodrivers_base::Fixture< Driver >::GTestMockContext::GTestMockContext ( Fixture fixture)
inline

◆ ~GTestMockContext()

template<typename Driver >
iodrivers_base::Fixture< Driver >::GTestMockContext::~GTestMockContext ( )
inline

Member Function Documentation

◆ tearDown()

template<typename Driver >
void iodrivers_base::Fixture< Driver >::GTestMockContext::tearDown ( )
inline

GTEST FAIL assertion can only be used in void-returning functions. Constructors and Destructors are not considered void-returning functions, according to the C++ language specification, and so you may not use fatal assertions in them. Using a Fatal assertion on these method would leave the object in a partially state. I was then decided to use the tear down to finalize the tests in GTEST. In BOOST the teardown method can be normally called in the destructor method

Member Data Documentation

◆ fixture

template<typename Driver >
Fixture* iodrivers_base::Fixture< Driver >::GTestMockContext::fixture

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