SOFA API  1c8b807d
Open source framework for multi-physics simuation
sofa::testing::ExpectMessage Class Reference

#include <TestMessageHandler.h>

Detailed Description

Rise a gtest failure during the object destruction when the expected message have not been received. Better use the macro: EXPECT_MSG_EMIT(Error) as a more 'good looking' version of

sofa::helper::logging::ExpectMessage failure(sofa::helper::logging::Message::Error, FILE, LINE);

Public Member Functions

 ExpectMessage (helper::logging::Message::Type t, const char *filename="unknown", int lineno=0)
 
virtual ~ExpectMessage ()
 

Constructor details

◆ ExpectMessage()

sofa::testing::ExpectMessage::ExpectMessage ( helper::logging::Message::Type  t,
const char filename = "unknown",
int  lineno = 0 
)

◆ ~ExpectMessage()

sofa::testing::ExpectMessage::~ExpectMessage ( )
virtual